From 7050b5ddfebbea4c5738f62a9a6e43747fd6c274 Mon Sep 17 00:00:00 2001 From: hannagracec Date: Mon, 19 Feb 2024 22:55:01 -0700 Subject: [PATCH 1/4] added under construction placeholder --- src/app/page.tsx | 6 ++++-- src/components/PagePlaceholder.jsx | 33 ++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 src/components/PagePlaceholder.jsx diff --git a/src/app/page.tsx b/src/app/page.tsx index f0d4daeb..51a9ee5c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,7 +1,9 @@ +import PagePlaceholder from "@/components/PagePlaceholder"; + export default function Home() { return ( -
- Hackathon Management Tool | Landing Page +
+
); } diff --git a/src/components/PagePlaceholder.jsx b/src/components/PagePlaceholder.jsx new file mode 100644 index 00000000..224e71e3 --- /dev/null +++ b/src/components/PagePlaceholder.jsx @@ -0,0 +1,33 @@ +import { FaInstagram, FaLinkedin } from "react-icons/fa"; + +const PlaceholderContainer = + "flex flex-col w-full h-screen items-center justify-center"; + +const PagePlaceholder = () => { + return ( +
+

+ Under construction, stay tuned on social media for more! +

+
+ + + + + + +
+
+ ); +}; + +export default PagePlaceholder; From 9140f5f2bcf22a83376d875adf38202b3a7898a8 Mon Sep 17 00:00:00 2001 From: hannagracec Date: Wed, 21 Feb 2024 15:28:51 -0700 Subject: [PATCH 2/4] added conditional rendering --- src/components/PagePlaceholder.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/PagePlaceholder.jsx b/src/components/PagePlaceholder.jsx index 224e71e3..303bfbef 100644 --- a/src/components/PagePlaceholder.jsx +++ b/src/components/PagePlaceholder.jsx @@ -1,11 +1,17 @@ import { FaInstagram, FaLinkedin } from "react-icons/fa"; -const PlaceholderContainer = +import { enableLandingPage } from "@/featureFlags"; + +const PagePlaceholderStyles = "flex flex-col w-full h-screen items-center justify-center"; const PagePlaceholder = () => { + if (!enableLandingPage) { + return null; + } + return ( -
+

Under construction, stay tuned on social media for more!

From de438392c769a215188429df0f13384f9359fed6 Mon Sep 17 00:00:00 2001 From: hannagracec Date: Wed, 21 Feb 2024 20:12:15 -0700 Subject: [PATCH 3/4] moved conditional rendering to return statement --- src/components/PagePlaceholder.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/PagePlaceholder.jsx b/src/components/PagePlaceholder.jsx index 303bfbef..0f2dd922 100644 --- a/src/components/PagePlaceholder.jsx +++ b/src/components/PagePlaceholder.jsx @@ -6,11 +6,7 @@ const PagePlaceholderStyles = "flex flex-col w-full h-screen items-center justify-center"; const PagePlaceholder = () => { - if (!enableLandingPage) { - return null; - } - - return ( + return enableLandingPage ? (

Under construction, stay tuned on social media for more! @@ -33,7 +29,7 @@ const PagePlaceholder = () => {

- ); + ) : null; }; export default PagePlaceholder; From 8a30c18bca473dea4abfabb3b7a4f2c5945ff69b Mon Sep 17 00:00:00 2001 From: hannagracec Date: Fri, 23 Feb 2024 19:39:57 -0700 Subject: [PATCH 4/4] moved conditional rendering to page.tsx --- src/app/page.tsx | 6 ++---- src/components/PagePlaceholder.jsx | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 40e2c155..f850a0f2 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,11 +1,9 @@ import JudgingCriteria from "@/components/LandingPage/JudgingCriteria"; import PagePlaceholder from "@/components/PagePlaceholder"; +import { enableLandingPage } from "@/featureFlags"; export default function Home() { return ( -
- - -
+
{enableLandingPage ? : }
); } diff --git a/src/components/PagePlaceholder.jsx b/src/components/PagePlaceholder.jsx index 0f2dd922..960b89c3 100644 --- a/src/components/PagePlaceholder.jsx +++ b/src/components/PagePlaceholder.jsx @@ -1,12 +1,10 @@ import { FaInstagram, FaLinkedin } from "react-icons/fa"; -import { enableLandingPage } from "@/featureFlags"; - const PagePlaceholderStyles = "flex flex-col w-full h-screen items-center justify-center"; const PagePlaceholder = () => { - return enableLandingPage ? ( + return (

Under construction, stay tuned on social media for more! @@ -29,7 +27,7 @@ const PagePlaceholder = () => {

- ) : null; + ); }; export default PagePlaceholder;