Skip to content

Commit

Permalink
Merge pull request #97 from MichiganDataScienceTeam/redesign-home-screen
Browse files Browse the repository at this point in the history
redesign-home
  • Loading branch information
Weile-Zheng authored Sep 15, 2024
2 parents 16b735f + 6913802 commit 7269f8f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
22 changes: 13 additions & 9 deletions components/hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ import Wave from "@/components/wave";

export default function Hero({ children, title }) {
return (
<div className="md:text-left text-center hero">
<div className="container mx-auto px-2">
{title ? (
<h1 className="mb-2 md:mb-5 lg:text-5xl text-4xl font-bold text-center">
{title}
</h1>
) : null}
{children}
<div>
<div className="md:text-left text-center hero">
<div className="container mx-auto px-2">
{title ? (
<h1 className="mb-2 md:mb-5 lg:text-5xl text-4xl font-bold text-center">
{title}
</h1>
) : null}
{children}
</div>
<div className="absolute bottom-0 w-full">
<Wave />
</div>
</div>
<Wave></Wave>
</div>
);
}
2 changes: 0 additions & 2 deletions pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import Layout from "@/components/layout";
import SponsorSection from "@/components/sponsorSection";
import CompanySection from "@/components/companySection";
import Timeline from "@/components/timeline";
import Wave from "@/components/wave";
import Wave180 from "@/components/wave180";
import CommunityImages from "@/components/communityImages";
import loadStaticData from "@/shared/static";
import Image from "next/image";
Expand Down
4 changes: 4 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#3e9644 303.75deg,
#896ae4 387.03deg
);
padding-top: 10%;
padding-bottom: 20%;
margin-bottom: 6%;
height: 90vh;
}

.gradient-text {
Expand Down

0 comments on commit 7269f8f

Please sign in to comment.