Skip to content

Commit

Permalink
Hero (#4)
Browse files Browse the repository at this point in the history
* Hero

* Put navbar on layout

* Fix minor error
  • Loading branch information
GresosJ authored Jul 26, 2023
1 parent ead16d5 commit 0e5c207
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 5 deletions.
8 changes: 7 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
import Hero from "@/components/Hero";

export default function Home() {
return <main className=""></main>;
return (
<main className="bg-background px-20">
<Hero />
</main>
);
}
26 changes: 26 additions & 0 deletions components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import Image from "next/image";
import logo from "@/public/cesium.svg";

export default function Hero() {
return (
<div className="mt-32 flex items-center justify-center gap-36">
<div className="w-[530px] flex-col items-center justify-center">
<div className="mb-6 text-8xl font-semibold">CeSIUM</div>
<div className="text-2xl font-semibold">
Centro de Estudante de Engenharia Informática da Universidade do Minho
</div>
</div>
<div className="relative">
<Image src={logo} alt="" width={300} height={343} priority />
<Image
className="absolute left-1/2 top-1/2 h-full w-full -translate-x-1/2 -translate-y-1/2 scale-150 transform rounded-lg object-cover opacity-40 blur-3xl filter"
src={logo}
alt=""
width={300}
height={343}
priority
/>
</div>
</div>
);
}
6 changes: 3 additions & 3 deletions components/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import Image from "next/image";

import logo from "@/public/cesium.png";
import logo from "@/public/cesium-lettering.png";
import Link from "next/link";

const navbar: string[] = ["HOME", "TEAM", "LOGS", "EVENTS", "ABOUT US"];

export default function Navbar() {
return (
<div className="flex items-center justify-between px-16">
<Image src={logo} alt="" width={150} height={200} priority unoptimized />
<div className="flex items-center justify-between px-20">
<Image src={logo} alt="" width={150} height={200} priority />
<div className="flex w-[50%] items-center justify-between">
{navbar.map((title) => (
<Link
Expand Down
File renamed without changes
1 change: 1 addition & 0 deletions public/cesium.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: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ module.exports = {
"5xl": ["3rem", { lineHeight: "3.5rem" }],
"6xl": ["4rem", { lineHeight: "1" }],
"7xl": ["5rem", { lineHeight: "1" }],
"8xl": ["6rem", { lineHeight: "1" }],
"8xl": ["7rem", { lineHeight: "1" }],
"9xl": ["8rem", { lineHeight: "1" }],
},
extend: {
Expand All @@ -40,6 +40,7 @@ module.exports = {
800: "#ED8661",
900: "#ED8661",
},
background: "EDE9E8",
},
},
},
Expand Down

0 comments on commit 0e5c207

Please sign in to comment.