Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import Container from "../components/container";
import MoreStories from "../components/more-stories";
import HeroPost from "../components/hero-post";
import Intro from "../components/intro";
import Layout from "../components/layout";
import { getAllPosts } from "../lib/api";
import Head from "next/head";

import { CallToAction, Blog, Services } from "../sections";
import { CallToAction, Blog, Services, HowWeWork } from "../sections";

export default function Index({ allPosts }) {
return (
Expand All @@ -18,6 +16,7 @@ export default function Index({ allPosts }) {
<Container>
<Intro />
</Container>
<HowWeWork />
<Services />
<Blog posts={allPosts} />
<CallToAction />
Expand Down
Binary file added public/images/pp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions sections/Blog/Blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ export default function Blog({ posts }) {
return (
<section className={styles.container}>
<div className={styles.title}>
<h2>Reading Recomendation</h2>
<h2>Reading Recommendation</h2>
<p>Read our latest posts</p>
</div>

<div className={styles.grid}>
{posts.map(({ title, coverImage, date, excerpt, slug, author }) => {
return (
<div className={styles.postContainer}>
<div key={slug} className={styles.postContainer}>
<PostPreview
title={title}
coverImage={coverImage}
Expand Down
72 changes: 72 additions & 0 deletions sections/HowWeWork/HowWeWork.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import styles from "./HowWeWork.module.css";

export default function HowWeWork() {
return (
<section className={styles.container}>
<div className={styles.waveContainer}>
<svg
className={styles.wave}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 508 52.917"
preserveAspectRatio="none"
>
<path
d="M0 0s40.955 23.283 63.5 23.283S104.455 0 127 0s40.955 23.283 63.5 23.283S231.455 0 254 0s40.955 23.283 63.5 23.283S358.455 0 381 0s40.955 23.283 63.5 23.283S508 0 508 0v52.917H0z"
fill="purple"
></path>
</svg>
<svg
className={styles.wave}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 508 52.917"
preserveAspectRatio="none"
>
<path
d="M0 0s40.955 23.283 63.5 23.283S104.455 0 127 0s40.955 23.283 63.5 23.283S231.455 0 254 0s40.955 23.283 63.5 23.283S358.455 0 381 0s40.955 23.283 63.5 23.283S508 0 508 0v52.917H0z"
fill="purple"
></path>
</svg>
<svg
className={styles.wave}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 508 52.917"
preserveAspectRatio="none"
>
<path
d="M0 0s40.955 23.283 63.5 23.283S104.455 0 127 0s40.955 23.283 63.5 23.283S231.455 0 254 0s40.955 23.283 63.5 23.283S358.455 0 381 0s40.955 23.283 63.5 23.283S508 0 508 0v52.917H0z"
fill="purple"
></path>
</svg>
</div>
<div className={styles.title}>
<h3>How we work</h3>
<p>
With software expertise at Codú, you can rest assured you are in good
hands at every stage of the process.
</p>
</div>
<div className={styles.grid}>
<div className={styles.card}>
The definition helps us to know your vision and business needs before
we can propose a software solution to you. Every business has its own
unique needs, so at Codú, we spend time to understand your business.
</div>
<div className={styles.card}>
The definition helps us to know your vision and business needs before
we can propose a software solution to you. Every business has its own
unique needs, so at Codú, we spend time to understand your business.
</div>
<div className={styles.card}>
The definition helps us to know your vision and business needs before
we can propose a software solution to you. Every business has its own
unique needs, so at Codú, we spend time to understand your business.
</div>
<div className={styles.card}>
The definition helps us to know your vision and business needs before
we can propose a software solution to you. Every business has its own
unique needs, so at Codú, we spend time to understand your business.
</div>
</div>
</section>
);
}
83 changes: 83 additions & 0 deletions sections/HowWeWork/HowWeWork.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
.container {
background: var(--white);
padding: 100px 0;
position: relative;
margin-top: 200px;
}

.waveContainer {
position: absolute;
background: var(--wave);
height: 15vh;
bottom: 99%;
left: 0;
right: 0;
clip-path: inset(-250% 0 0 0);
}
.wave {
--speed: 5;
--waveHeight: 10vh;
height: var(--waveHeight);
position: absolute;
bottom: 90%;
width: 200vw;
opacity: 0.25;
-webkit-animation: wave calc(var(--speed, 0) * 3s) infinite linear;
animation: wave calc(var(--speed, 0) * 3s) infinite linear;
}
.wave path {
fill: var(--wave);
}
.wave:nth-of-type(2) {
--waveHeight: 8vh;
--speed: 8;
width: 400vw;
opacity: 0.5;
}
.wave:nth-of-type(3) {
--waveHeight: 7vh;
--speed: 10;
width: 300vw;
opacity: 1;
}
@-webkit-keyframes wave {
to {
-webkit-transform: translate(-100vw, 0);
transform: translate(-100vw, 0);
}
}
@keyframes wave {
to {
-webkit-transform: translate(-100vw, 0);
transform: translate(-100vw, 0);
}
}

.title {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.title > p {
text-align: center;
}

.grid {
display: grid;
grid-template-columns: 350px 350px 350px 350px;
gap: 30px;
justify-content: center;
}

.card {
background-color: var(--white);
box-shadow: var(--shadow-3);
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
height: 400px;
padding: 30px;
}
19 changes: 15 additions & 4 deletions sections/Services/Services.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useState } from "react";
import Image from "next/image";

import { motion, AnimatePresence } from "framer-motion";
import { wrap } from "@popmotion/popcorn";
Expand Down Expand Up @@ -40,26 +41,36 @@ export default function Services() {
return Math.abs(offset) * velocity;
};

const onPanelSelect = (i) => {
setPanel((oldPanel) => {
const [oldIndex] = oldPanel;
return [i, oldIndex > i ? -1 : 1];
});
};

const displayPanel = (key) => {
return (
<div className={styles.servicesContainer}>
<div className={styles.service}>
<div className={styles.summaryContainer}>
<div className={styles.summary}>
<div className={styles.cornerImageContainer}>
<Image src="/images/pp.png" height={155} width={245} />
</div>
<h4>{data[key].title}</h4>
<p>{data[key].summary}</p>
</div>
</div>
<div className={styles.details}>
{data[key].details.map((item) => (
<>
<div key={item.title}>
<h4>{item.title}</h4>
<ul>
{item.points.map((point) => (
<li>{point}</li>
<li key={point}>{point}</li>
))}
</ul>
</>
</div>
))}
</div>
</div>
Expand All @@ -81,7 +92,7 @@ export default function Services() {
<button
key={button}
className={i === index ? styles.active : ""}
onClick={() => setPanel([i, -1])}
onClick={() => onPanelSelect(i)}
>
{button}
</button>
Expand Down
13 changes: 11 additions & 2 deletions sections/Services/Services.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,27 @@
.service {
display: grid;
grid-template-columns: 1fr 1fr;
position: relative;
}

.summaryContainer {
display: flex;
align-items: center;
position: relative;
}

.summary {
background: #210d37;
padding: 100px 40px 40px;
padding: 100px 60px 60px;
border-radius: 50px 0 0 50px;
box-shadow: var(--shadow-3);
position: relative;
}

.cornerImageContainer {
position: absolute;
top: -50px;
left: -30px;
}

.details {
Expand All @@ -86,6 +95,6 @@
background: var(--white);
border-radius: 20px;
min-height: 400px;
padding: 20px;
padding: 60px;
box-shadow: var(--shadow-3);
}
6 changes: 3 additions & 3 deletions sections/Services/ServicesData.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const data = [
],
},
{
title: "Definition",
title: "Definition0",
points: [
"User definition and audience profiling",
"User flow creation",
Expand All @@ -28,15 +28,15 @@ export const data = [
"Planning is crucial to a successful product build and launch. Our job in this step is to help your product vision become clear and easy to communicate. From thinking about the user experience to building an entire visual language for your product.",
details: [
{
title: "Definition",
title: "Definition1",
points: [
"User definition and audience profiling",
"User flow creation",
"UX research and analysis",
],
},
{
title: "Definition",
title: "Definition2",
points: [
"User definition and audience profiling",
"User flow creation",
Expand Down
1 change: 1 addition & 0 deletions sections/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as CallToAction } from "./CallToAction/CallToAction";
export { default as Blog } from "./Blog/Blog";
export { default as Services } from "./Services/Services";
export { default as HowWeWork } from "./HowWeWork/HowWeWork";
6 changes: 5 additions & 1 deletion styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--white: #ffffff;

/* Usage */
--background: var(--lightGrey);
--background: var(--pink);
--lineColor: var(--grey);
--textColor: var(--black);
--hColor: var(--black);
Expand Down Expand Up @@ -44,6 +44,9 @@
/* Containers */
--containerMaxWidth: 100%;
--containerHorizontalPadding: 1.25rem;

/* Waves */
--wave: hsl(0, 0%, 100%);
}

/* Breakpoints */
Expand Down Expand Up @@ -78,6 +81,7 @@ body {
line-height: 1.65;
background: var(--background);
color: var(--textColor);
overflow-x: hidden;
}

*:focus {
Expand Down