Skip to content

Commit

Permalink
Merge pull request #10 from climaxmba/WEB-11
Browse files Browse the repository at this point in the history
chore: add video placeholder (WEB-11)
  • Loading branch information
TheDThompsonDev authored Mar 8, 2024
2 parents 6972375 + 88434ba commit 46116de
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
Binary file added public/assets/dsdHeroBg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions src/app/components/heroSection/heroSection.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@800&display=swap");

.heroSection {
display: flex;
flex-wrap: wrap;
gap: 1rem;
justify-content: space-between;
padding: 5rem 3rem;
margin: 3rem 0;
background-image: url("/assets/dsdHeroBg.png");
background-repeat: no-repeat;
background-position: bottom right;
background-size: contain;
}

.videoPlaceholder {
font-family: "Raleway", sans-serif;
text-align: center;
font-weight: 700;
font-size: 36px;
height: 320px;
width: 460px;
background-color: lightgrey;
color: black;
display: flex;
align-items: center;
justify-content: center;
}
25 changes: 25 additions & 0 deletions src/app/components/heroSection/heroSection.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
"use client";

import React from "react";
import styles from "./heroSection.module.css";

interface HeroSection {
label: {
lblHome: string;
lblCommunity: string;
lblContact: string;
lblMeetup: string;
lblBanner: string;
lblWorkshops: string;
lblSupport: string;
lblCohorts: string;
};
}

export default function HeroSection({ label }: HeroSection) {
return (
<div className={styles.heroSection}>
<div className={styles.videoPlaceholder}>Video playing here</div>
</div>
);
}
2 changes: 2 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import CardsSection from "./components/cardsSection/cardsSection";
import BannerSection from "./components/bannerSection/bannerSection";
import HeroSection from "./components/heroSection/heroSection";
import Navbar from "./components/navbar/navbar";
import styles from "./page.module.css";

Expand All @@ -24,6 +25,7 @@ export default function Home() {
return (
<main className={styles.main}>
<Navbar label={labelMap} />
<HeroSection label={labelMap} />
<BannerSection label={labelMap} />
<CardsSection label={labelMap} />
</main>
Expand Down

0 comments on commit 46116de

Please sign in to comment.