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
7 changes: 3 additions & 4 deletions components/layout.js → components/Layout/Layout.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import Alert from "../components/alert";
import Meta from "../components/meta";
import Alert from "../alert";
import Meta from "../meta";

import { Footer } from "../components";
import { Footer } from "../../components";

export default function Layout({ preview, children }) {
return (
<>
<Meta />
<div className="min-h-screen">
<Alert preview={preview} />
<main>{children}</main>
</div>
<Footer />
Expand Down
1 change: 1 addition & 0 deletions components/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as Footer } from "./Footer/Footer";
export { default as Container } from "./Container/Container";
export { default as PostPreview } from "./PostPreview/PostPreview";
export { default as Layout } from "./Layout/Layout";
9 changes: 3 additions & 6 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import Container from "../components/container";
import Intro from "../components/intro";
import Layout from "../components/layout";
import { getAllPosts } from "../lib/api";
import Head from "next/head";

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

export default function Index({ allPosts }) {
return (
Expand All @@ -13,9 +12,7 @@ export default function Index({ allPosts }) {
<Head>
<title>Codú</title>
</Head>
<Container>
<Intro />
</Container>
<Hero />
<HowWeWork />
<Services />
<Blog posts={allPosts} />
Expand Down
4 changes: 3 additions & 1 deletion pages/posts/[slug].js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ import Container from "../../components/container";
import PostBody from "../../components/post-body";
import Header from "../../components/header";
import PostHeader from "../../components/post-header";
import Layout from "../../components/layout";

import { getPostBySlug, getAllPosts } from "../../lib/api";
import PostTitle from "../../components/post-title";
import Head from "next/head";
import { CMS_NAME } from "../../lib/constants";
import markdownToHtml from "../../lib/markdownToHtml";

import { Layout } from "../../components";

export default function Post({ post, morePosts, preview }) {
const router = useRouter();
if (!router.isFallback && !post?.slug) {
Expand Down
Binary file added public/images/card2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/wave--infinite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 0 additions & 11 deletions sections/Blog/Blog.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@
position: relative;
}

.container::before {
content: "";
background-image: url("/images/blogtop.svg");
background-size: cover;
position: absolute;
left: 0;
right: 0;
height: 350px;
top: -348px;
}

.container::after {
content: "";
background-image: url("/images/blogbottom.svg");
Expand Down
22 changes: 22 additions & 0 deletions sections/Hero/Hero.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import styles from "./Hero.module.css";

export default function () {
return (
<section className={styles.container}>
<h1>Grow your business</h1>
<p>
<span className={styles.highlight}>Designs</span> products and
experience for users.
</p>
<button className={styles.buttonSecondary} type="button">
Contact us today
</button>

<div className={[styles.waveContainer, styles.waveContainerBottom]}>
<div className={styles.wave} />
<div className={styles.wave} />
<div className={styles.wave} />
</div>
</section>
);
}
85 changes: 85 additions & 0 deletions sections/Hero/Hero.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
.container {
background: var(--blue);
padding: 200px;
position: relative;
}

.container > * {
color: var(--white);
}

.container > p {
line-height: 0.8rem;
font-size: 1.5rem;
}

.highlight {
color: var(--pink);
}

.buttonSecondary {
background: transparent;
color: var(--buttonTextColor);
appearance: none;
border: none;
border-radius: 60px;
height: 50px;
box-shadow: none;
border: 2px solid white;
min-width: 200px;
transition: 0.3s all ease-in-out;
}

.waveContainer {
position: absolute;
left: 0;
right: 0;
height: 12vh;
overflow: hidden;
}

.waveContainerBottom {
bottom: -1%;
}

.waveContainerTop {
top: -1%;
transform: rotate(180deg);
}

.wave {
animation: wave calc(var(--speed, 0) * 1s) infinite linear;
background-image: url("/images/wave--infinite.svg");
background-size: 50% 100%;
bottom: -5%;
height: calc(var(--height, 0) * 1vh);
left: 0;
opacity: var(--opacity);
position: absolute;
right: 0;
width: calc(var(--width, 0) * 1vw);
overflow: visible;
}
@keyframes wave {
to {
transform: translate(-50%, 0);
}
}
.wave:nth-of-type(1) {
--height: 12;
--opacity: 0.3;
--speed: 30;
--width: 800;
}
.wave:nth-of-type(2) {
--height: 12;
--opacity: 0.6;
--speed: 45;
--width: 800;
}
.wave:nth-of-type(3) {
--height: 6;
--opacity: 1;
--speed: 15;
--width: 400;
}
112 changes: 61 additions & 51 deletions sections/HowWeWork/HowWeWork.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,9 @@
import Image from "next/image";
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>
Expand All @@ -46,25 +12,69 @@ export default function HowWeWork() {
</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 className={styles.cardContainer}>
<Image
src="/images/card2.png"
alt={`card icon for second card`}
className={styles.cardIcon}
height={158}
width={181}
/>
<h4>Plan</h4>
<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>
<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 className={styles.cardContainer}>
<Image
src="/images/card2.png"
alt={`card icon for second card`}
className={styles.cardIcon}
height={158}
width={181}
/>
<h4>Design</h4>
<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>
<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 className={styles.cardContainer}>
<Image
src="/images/card2.png"
alt={`card icon for second card`}
className={styles.cardIcon}
height={158}
width={181}
/>
<h4>Build</h4>
<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>
<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 className={styles.cardContainer}>
<Image
src="/images/card2.png"
alt={`card icon for second card`}
className={styles.cardIcon}
height={158}
width={181}
/>
<h4>Deliver</h4>
<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>
</div>
</section>
Expand Down
Loading