From 132141a5cc27d5abea9bb1c96cea02c8d84bfe86 Mon Sep 17 00:00:00 2001 From: Thomas Hammon Date: Wed, 25 Sep 2024 15:17:48 -0500 Subject: [PATCH 1/6] added method conferance banner --- public/images/icons/exit-cross.png | Bin 0 -> 278 bytes src/components/Banner/banner.jsx | 35 +++++++++++ src/components/Banner/banner.module.scss | 77 +++++++++++++++++++++++ src/components/Layout.tsx | 4 ++ styles/base/typography.scss | 1 + 5 files changed, 117 insertions(+) create mode 100644 public/images/icons/exit-cross.png create mode 100644 src/components/Banner/banner.jsx create mode 100644 src/components/Banner/banner.module.scss diff --git a/public/images/icons/exit-cross.png b/public/images/icons/exit-cross.png new file mode 100644 index 0000000000000000000000000000000000000000..442f6a7dd93bf98ffd5318af39ed160c0859e91f GIT binary patch literal 278 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP>``W z$lZxy-8q?;Kn_c~qpu?a!^VE@KZ&eB{%TJb$B+ufy8#Dz4;k>-u(M^{*VPC*9dm$X zgJ5K1pajE8p+~;f47_DaJ2)O~dw=irzRl;aF`jnHEMLBM?YCKaQHigM&&=HM@x^Yr zCqZh5I@2CR_bl9Sb>Wt+{k}`Y@($m6Z}y85}Sb4q9e0Q@6x8UO$Q literal 0 HcmV?d00001 diff --git a/src/components/Banner/banner.jsx b/src/components/Banner/banner.jsx new file mode 100644 index 0000000..4639a0f --- /dev/null +++ b/src/components/Banner/banner.jsx @@ -0,0 +1,35 @@ +import React from "react"; +import styles from './banner.module.scss'; + + +export default function Banner(){ + + const [displayBanner, setDisplayBanner] = React.useState(true) + + const display = displayBanner ? styles.banner : styles.hidden; + + function toggleBanner(){ + setDisplayBanner(prevState => !prevState) + } + + return ( +
+
+

Method Conference

+
+
+

Join us for a full day of code & learning.

+

Saturday, October 12, 2024, @ eFactory

+
+
+ + + + +
+
+ ) + +} \ No newline at end of file diff --git a/src/components/Banner/banner.module.scss b/src/components/Banner/banner.module.scss new file mode 100644 index 0000000..feaada9 --- /dev/null +++ b/src/components/Banner/banner.module.scss @@ -0,0 +1,77 @@ +@import '@/styles/utils/all'; + +.container{ + display: flex; + justify-content: space-between; + + width: 12em; +} + +.hidden { + display: none; +} + +.banner { + display: flex; + + height: 120px; + width: 98%; + + margin: .5em; + padding: 0em 2em; + + border-radius: 1em; + background-color: #E9F5FF; + + + justify-content: space-between; + align-items: center; + + text-align: center; +} + +.textArea{ + margin: 0em 1em; +} + +.textBold{ + font-family: "Source Sans 3", sans-serif; + font-size: 1.5em; + font-weight: bold; + color: #0094FF; +} + +.text{ + font-family: "Source Sans 3", sans-serif; + font-size: 1.5em; + color: #0094FF; +} + +.button{ + border: none; + + padding: 1rem 2rem; + + background-color: #0094FF; + color: #FFFFFF; + + min-width: 150px; +} + +.exit{ + height: 1em; +} + +.exitButton{ + border: none; + background-color: #E9F5FF; +} + +@media (max-width:600px) { + .banner{ + flex-direction: column; + justify-content: space-around; + + height: 20vh; + } +} \ No newline at end of file diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index ea533ff..1fc9178 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,5 +1,7 @@ +import React from 'react'; import { Footer } from '@/components/Footer/Footer'; import { Navbar } from '@/components/Navbar/Navbar'; +import Banner from '@/components/Banner/banner.jsx' import styles from './layout.module.scss'; interface ILayout { @@ -7,10 +9,12 @@ interface ILayout { } export function Layout({ children }: ILayout): JSX.Element { + return (
+ {children}