Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

home page design edits #21

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
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
6 changes: 3 additions & 3 deletions app/components/what-we-do.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ export default function WhatWeDo({
variant: "compact" | "full-width";
}) {
return (
<div>
<h2 className="text-3xl font-semibold text-white">What We Do</h2>
<div className={"py-8 md:mt-8 lg:py-12 lg:pb-20"}>
<h2 className="text-5xl font-semibold text-white">What We Do</h2>

<div
className={clsx(
"mt-6 grid gap-6",
"mt-10 grid gap-6",
variant === "compact" && "md:grid-cols-2"
)}
>
Expand Down
5 changes: 4 additions & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import WhatWeDo from "@/app/components/what-we-do";
import Button from "@/components/button";
import Hero from "@/components/hero";
import OurMission from "@/components/OurMission";
import WhoWeAre from "@/components/WhoWeAre";



export default function HomePage() {
return (
<div>
Expand All @@ -13,7 +15,7 @@ export default function HomePage() {
Jumbo<span className="text-brand">Code</span>
</>
}
subtitle={<>Empowering students, Elevating non-profits.</>}
subtitle={<><b>Empowering students, Elevating non-profits.</b></>} //to-do: needs to be white
buttons={
<>
<Button text="What we do" href="/about" variant="secondary" />
Expand All @@ -24,6 +26,7 @@ export default function HomePage() {

<WhoWeAre />
<OurMission />
<WhatWeDo variant="compact" />
</div>
);
}
4 changes: 2 additions & 2 deletions components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default function Button({
<Element
href={href}
className={clsx(
"block max-w-max px-4 py-2 rounded-lg font-semibold",
"flex items-center gap-2",
"block max-w-max px-4 py-2.5 rounded-lg font-semibold",
"flex items-center gap-2.5",
"hover:ring-2 hover:ring-offset-2 hover:ring-offset-black transition-shadow duration-200",
variant === "primary" && "bg-brand text-gray-900 hover:ring-brand",
variant === "secondary" && "bg-white text-gray-900 hover:ring-white",
Expand Down
4 changes: 2 additions & 2 deletions components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export default function Hero({
}) {
return (
<div className="py-24 sm:py-48">
<h1 className="text-white font-semibold text-4xl">{title}</h1>
<h1 className="text-white font-semibold text-5xl">{title}</h1>

<h2 className="mt-4 text-white/70 text-xl font-medium max-w-screen-md">
<h2 className="mt-4 text-white/70 text-2xl">
{subtitle}
</h2>

Expand Down