Skip to content

Commit

Permalink
Merge pull request #19 from 1xINTERNET/feature/14-update-navigation-a…
Browse files Browse the repository at this point in the history
…nd-create-sections

#14: Update Navbar links & create 'how to help' and 'about us' sections
  • Loading branch information
john1xi authored Jun 21, 2024
2 parents 153c5dc + 44ad39b commit dfc3d0a
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 6 deletions.
18 changes: 18 additions & 0 deletions src/components/AboutUs.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
---

<div class="text-center">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis,
reprehenderit. Iste quae molestias in, numquam reprehenderit ipsa aliquid
corporis assumenda vero ab necessitatibus inventore obcaecati commodi
placeat ipsum rem nesciunt!
</p>
<p>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Doloribus
exercitationem eos dolorem fugiat deleniti atque vitae provident dolorum
libero perspiciatis. Adipisci fuga nostrum voluptatem nobis odio. Rerum
temporibus asperiores maxime.
</p>
</div>
18 changes: 18 additions & 0 deletions src/components/HowToHelp.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
---

<div class="text-center">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Debitis,
reprehenderit. Iste quae molestias in, numquam reprehenderit ipsa aliquid
corporis assumenda vero ab necessitatibus inventore obcaecati commodi
placeat ipsum rem nesciunt!
</p>
<p>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Doloribus
exercitationem eos dolorem fugiat deleniti atque vitae provident dolorum
libero perspiciatis. Adipisci fuga nostrum voluptatem nobis odio. Rerum
temporibus asperiores maxime.
</p>
</div>
8 changes: 3 additions & 5 deletions src/components/NavigationBar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,16 @@ import HashtagWhyULoveFootball from "@components/HashtagWhyULoveFootball.astro";
<a href="#our-goal" class="block text-green">Our Goal</a>
</li>
<li>
<a href="#how-to-support" class="block text-green">How to Support</a>
<a href="#videos" class="block text-green">Videos</a>
</li>
<li>
<a href="#partners" class="block text-green">Partners</a>
</li>
<li>
<a href="#social-media-news" class="block text-green"
>Social Media News</a
>
<a href="#how-to-help" class="block text-green">How to help</a>
</li>
<li>
<a href="/media-requests" class="block text-green">Media Requests</a>
<a href="#about-us" class="block text-green">About us</a>
</li>
</ul>
</div>
Expand Down
9 changes: 9 additions & 0 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import PartnerLinks from "../components/PartnerLinks.astro";
import PrimaryLink from "../components/PrimaryLink.astro";
import Section from "../components/Section.astro";
import VideoPlayer from "../components/VideoPlayer.astro";
import HowToHelp from "../components/HowToHelp.astro";
import AboutUs from "../components/AboutUs.astro";
---

<Layout title="Welcome to Whyuluvfootball">
Expand All @@ -27,6 +29,7 @@ import VideoPlayer from "../components/VideoPlayer.astro";
backgroundColor="blue"
eyebrow="Videos"
heading="I love football because..."
id="videos"
>
<VideoPlayer />
</Section>
Expand All @@ -46,6 +49,12 @@ import VideoPlayer from "../components/VideoPlayer.astro";
<PrimaryLink href="mailto:[email protected]" text="Become a partner" />
</div>
</Section>
<Section backgroundColor="blue" eyebrow="How to help" id="how-to-help">
<HowToHelp />
</Section>
<Section backgroundColor="green" eyebrow="About us" id="about-us">
<AboutUs />
</Section>
<Section
backgroundColor="blue"
contentImage="/images/goal.jpeg"
Expand Down
6 changes: 5 additions & 1 deletion src/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
font-display: swap;
}

html {
@apply scroll-smooth;
}

h1 {
@apply text-[64px] leading-[78px];
}
Expand All @@ -55,7 +59,7 @@

body,
p {
@apply text-[18px] leading-6;
@apply text-[18px] leading-6 mb-4 last:mb-0;
}

@media only screen and (max-width: 640px) {
Expand Down

0 comments on commit dfc3d0a

Please sign in to comment.