Skip to content

Commit

Permalink
update: all website done. No mobile responsive & no project animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Drixares committed Sep 25, 2024
1 parent 9c315a8 commit bee87cd
Show file tree
Hide file tree
Showing 25 changed files with 528 additions and 135 deletions.
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@
"lint": "next lint"
},
"dependencies": {
"clsx": "^2.1.1",
"next": "14.2.13",
"react": "^18",
"react-dom": "^18",
"next": "14.2.13"
"tailwind-merge": "^2.5.2"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.13",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"eslint": "^8",
"eslint-config-next": "14.2.13"
"typescript": "^5"
}
}
}
7 changes: 7 additions & 0 deletions public/img/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/img/dino-gray.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions public/img/dino.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/matteo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/michel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/img/nicolas.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/app/font.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { Gasoek_One, Montserrat } from "next/font/google";

export const montserrat = Montserrat({ subsets: ['latin'] })
export const gasoekOne = Gasoek_One({
subsets: ['latin'],
weight: "400"
})
Binary file removed src/app/fonts/GeistMonoVF.woff
Binary file not shown.
Binary file removed src/app/fonts/GeistVF.woff
Binary file not shown.
28 changes: 8 additions & 20 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,14 @@
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
html, body {
background-color: #070707;
}
18 changes: 4 additions & 14 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
import type { Metadata } from "next";
import localFont from "next/font/local";
import { montserrat } from "./font";
import "./globals.css";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});

export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: "404 Devinci",
description: "Website of the 404 Devinci association.",
};

export default function RootLayout({
Expand All @@ -26,7 +16,7 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
className={montserrat.className}
>
{children}
</body>
Expand Down
108 changes: 13 additions & 95 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,101 +1,19 @@
import Image from "next/image";
import AboutSection from "@/components/sections/about";
import FaqSection from "@/components/sections/faq";
import Footer from "@/components/sections/footer";
import Header from "@/components/sections/header";
import ProjectsSection from "@/components/sections/projects";
import TeamSection from "@/components/sections/team";

export default function Home() {
return (
<div className="grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]">
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="https://nextjs.org/icons/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
src/app/page.tsx
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>

<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="https://nextjs.org/icons/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="https://nextjs.org/icons/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
<div className="text-gray-50">
<Header />
<ProjectsSection />
<AboutSection />
<TeamSection />
<FaqSection />
<Footer />
</div>
);
}
37 changes: 37 additions & 0 deletions src/components/arrow.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import cn from "@/utils/function";

interface ArrowProps {
color?: 50 | 900;
rotate?: boolean;
}



const Arrow = ({ color, rotate }: ArrowProps) => {

const hexaColor = color === 50
? '#f9fafb'
: '#111827';

return (
<svg
width="10"
height="12"
viewBox="0 0 10 12"
fill="none"
xmlns="http://www.w3.org/2000/svg"
className={cn(
rotate && ' -rotate-90'
)}>
<mask id="path-1-inside-1_195_37" fill="white">
<path d="M0 1.01831H10V11.0183H0L0 1.01831Z"/>
</mask>
<path d="M10 11.0183V12.0183H11V11.0183H10ZM9 1.01831V11.0183H11V1.01831H9ZM10 10.0183H0L0 12.0183H10V10.0183Z" fill={hexaColor} mask="url(#path-1-inside-1_195_37)"/>
<path d="M0.422852 1.06903L9 10.0002" stroke={hexaColor} />
</svg>


);
}

export default Arrow;
79 changes: 79 additions & 0 deletions src/components/content.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
import { gasoekOne } from "@/app/font"
import cn from "@/utils/function"
import Arrow from "./arrow"

export default function Content() {
return (
<div className='max-w-[1700px] mx-auto py-8 px-5 lg:px-10 h-full w-full flex flex-col justify-between'>
<Nav />
<BottomFooter />
</div>
)
}


const BottomFooter = () => {
return (
<div className="flex flex-col gap-8">
<h2 className={cn(
gasoekOne.className,
'uppercase text-8xl text-gray-900'
)}>
404 Devinci
</h2>
<div className="w-full h-[1px] bg-gray-900" />
<div className='flex items-center justify-between text-gray-900'>
<p>2024 © All Rights Reserved</p>
<p>Legal notices</p>
</div>
</div>
)
}

const Nav = () => {
return (
<div className="w-full flex justify-between">
<div className="flex flex-col gap-3 text-gray-900">
<h3 className="uppercase text-xl font-semibold">Social media</h3>
<div className="flex flex-col">
<div>
<a
href="https://www.linkedin.com/company/la-404-devinci/"
target="_blank"
className="inline-flex items-center gap-2 group"
>
Linkedin
<div className="group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition">
<Arrow rotate />
</div>
</a>
</div>
<div>
<a
href="https://instagram.com/la404.devinci"
target="_blank"
className="inline-flex items-center gap-2 group"
>
Instagram
<div className="group-hover:translate-x-0.5 group-hover:-translate-y-0.5 transition">
<Arrow rotate />
</div>
</a>
</div>
</div>
</div>

<div className="w-56 h-16 rounded-full border border-black flex items-center
justify-center text-gray-900 text-xl relative group overflow-hidden"
>
<a href="mailto:[email protected]" className="z-10">
[email protected]
</a>
<div className="absolute -bottom-full left-1/2 -translate-x-1/2 h-full rounded-[100%]
bg-blue-400 w-full group-hover:w-[140%] group-hover:bottom-1/2 group-hover:translate-y-1/2
transition-all duration-500 group-hover:h-[130%]" />
</div>

</div>
)
}
Loading

0 comments on commit bee87cd

Please sign in to comment.