diff --git a/frontend/index.html b/frontend/index.html index 54219dd..1dd4518 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -6,7 +6,7 @@ - + The VoD System diff --git a/frontend/src/components/NoAccessPage.tsx b/frontend/src/components/NoAccessPage.tsx new file mode 100644 index 0000000..14126d4 --- /dev/null +++ b/frontend/src/components/NoAccessPage.tsx @@ -0,0 +1,17 @@ +import {Lock} from "lucide-react"; + +const NoAccessPage = () => { + return ( +
+ +

+ Log in to see this page +

+

+ Sign in with Google to view your clips and account details. +

+
+ ); +} + +export default NoAccessPage; \ No newline at end of file diff --git a/frontend/src/index.css b/frontend/src/index.css index 13fda01..fe6a963 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -3,7 +3,7 @@ @theme { /* Fonts */ - --font-heading: "Newsreader", serif; + /*--font-heading: "Newsreader", serif; */ --font-body: "IBM Plex Sans", sans-serif; --font-data: "IBM Plex Mono", monospace; @@ -12,6 +12,7 @@ --color-sidebar: #F2EEE6; --color-card: #FDFBF7; --color-accent: #A85A38; + --color-accent-hover: #94492A; /* Colour Fonts */ --color-text-primary: #2B2620; @@ -34,4 +35,10 @@ body { background-color: var(--color-background); + font-family: "IBM Plex Sans", sans-serif; +} + +@utility font-heading { + font-family: "Newsreader", serif; + font-weight: 400; } \ No newline at end of file diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 9588864..ee7959a 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -1,15 +1,35 @@ +import {useAuth} from "../utils/AuthContext.tsx"; +import NoAccessPage from "../components/NoAccessPage.tsx"; +import {Link} from "react-router-dom"; + const Home = () => { + const { user } = useAuth(); const now = new Date(); const formatted: string = new Intl.DateTimeFormat('en-IE', { - weekday: 'short', + weekday: 'long', day: 'numeric', - month: 'short', + month: 'long', }).format(now); + if (user == null) { + return () + } + return ( -
-

{formatted}

+
+
+
+

{formatted.toLocaleUpperCase()}

+

Good evening, {user.name.split(" ", 1)}

+
+ + + + +
); };