-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b20e83
commit 0ec48e0
Showing
22 changed files
with
466 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
-.txt | ||
-.png | ||
-.woff2 | ||
-.md | ||
/fonts/ | ||
/server/ | ||
/public/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.hero-header { | ||
width: 90vw; | ||
padding: 2vh 5vw; | ||
margin-bottom: 8vh; | ||
background: rgba(230, 230, 230, 0.5); | ||
backdrop-filter: blur(5px) | ||
} | ||
|
||
.hero-header>p { | ||
width: 50%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from "react"; | ||
import IHeroHeaderProps from "./Interface/IHeroHeaderProps"; | ||
import "./HeroHeader.css"; | ||
|
||
const HeroHeader: React.FC<IHeroHeaderProps> = ({heading, description}) => { | ||
return ( | ||
<div className="hero-header"> | ||
<h1>{heading}</h1> | ||
<p>{description}</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default HeroHeader; |
8 changes: 8 additions & 0 deletions
8
client/src/components/HeroHeader/Interface/IHeroHeaderProps.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from "react"; | ||
|
||
interface IHeroHeaderProps { | ||
heading: string; | ||
description: string | JSX.Element | ||
} | ||
|
||
export default IHeroHeaderProps; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { ReactNode } from "react"; | ||
|
||
interface Link { | ||
name: string; | ||
icon?: ReactNode; | ||
to: string; | ||
isLocked?: boolean; | ||
onClick?: () => void; | ||
} | ||
|
||
interface NavbarItem extends Link { | ||
sublinks?: Link[]; | ||
} | ||
|
||
interface INavbarState { | ||
name: string; | ||
links: Link[]; | ||
links: NavbarItem[]; | ||
currentlyHoveredNavbarLinkName: string | null; | ||
lastScrollY: number; | ||
isNavbarHidden: boolean; | ||
hideNavBarScrollSensitivity: number; | ||
navBarDetached: boolean; | ||
dropdownMenuLinkDisplay: ReactNode[] | ||
} | ||
|
||
interface Link { | ||
name: string; | ||
to: string | null; | ||
icon?: ReactNode; | ||
onClick?: () => void; | ||
sublinks?: { | ||
name: string; | ||
to: string; | ||
onClick?: () => void | ||
}[] | ||
dropdownMenuLinkDisplay: ReactNode[]; | ||
} | ||
|
||
export { INavbarState, Link }; | ||
export { INavbarState, Link, NavbarItem }; |
6 changes: 3 additions & 3 deletions
6
client/src/components/Navbar/LoginButton/Interface/ILoginButtonState.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { Link } from "../../Interface/INavbarState"; | ||
import { NavbarItem } from "../../Interface/INavbarState"; | ||
|
||
export default interface ILoginButtonState { | ||
loginButtonLoggedInState: Link; | ||
loginButtonLoggedOffState: Link | ||
loginButtonLoggedInState: NavbarItem; | ||
loginButtonLoggedOffState: NavbarItem | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.