From cb7853877ac63fda239b8b90933209c5587b72a8 Mon Sep 17 00:00:00 2001 From: Tamal Das Date: Sun, 7 Jan 2024 14:23:54 +0530 Subject: [PATCH] chore: refactored folder structure --- .github/ISSUE_TEMPLATE/bug.yml | 63 ++++ .github/ISSUE_TEMPLATE/config.yml | 4 + .github/ISSUE_TEMPLATE/docs.yml | 56 +++ .github/ISSUE_TEMPLATE/feature_request.yml | 63 ++++ .github/ISSUE_TEMPLATE/other.yml | 47 +++ src/App.jsx | 4 +- src/components/about/About.jsx | 36 -- .../about/About.jsx} | 68 +--- src/components/{ => private}/about/About.scss | 0 .../collaborators/Collaborators.jsx | 22 +- .../collaborators/Collaborators.scss | 0 src/components/{ => private}/faq/FAQ.jsx | 0 src/components/{ => private}/faq/FAQ.scss | 0 src/components/private/index.js | 11 + .../{ => private}/landing/Landing.jsx | 11 +- .../{ => private}/landing/Landing.scss | 0 .../{ => private}/mentors/Mentors.jsx | 4 +- .../{ => private}/mentors/Mentors.scss | 0 src/components/private/prizes/Prizes.jsx | 34 ++ .../{ => private}/prizes/Prizes.scss | 0 .../{ => private}/sponsors/Sponsors.jsx | 6 +- .../{ => private}/sponsors/Sponsors.scss | 0 .../singlesponsors/SingleSponsors.jsx | 0 .../singlesponsors/SingleSponsors.scss | 0 .../testimonials/Testimonials.jsx | 2 +- .../testimonials/Testimonials.scss | 0 src/components/{ => private}/themes/Theme.jsx | 4 +- .../{ => private}/themes/Theme.scss | 0 .../{ => private}/timeline/Timeline.jsx | 4 +- .../{ => private}/timeline/Timeline.scss | 0 src/components/prizes/Prizes.jsx | 351 ------------------ src/components/{ => shared}/button/Button.jsx | 0 .../{ => shared}/button/Button.scss | 0 .../{ => shared}/comingsoon/ComingSoon.jsx | 0 .../{ => shared}/comingsoon/ComingSoon.scss | 0 src/components/{ => shared}/footer/Footer.jsx | 4 +- .../{ => shared}/footer/Footer.scss | 0 src/components/shared/index.js | 5 + .../{ => shared}/marquee/Marquee.jsx | 0 .../{ => shared}/marquee/Marquee.scss | 0 src/components/{ => shared}/navbar/Navbar.jsx | 2 +- .../{ => shared}/navbar/Navbar.scss | 0 src/pages/home/Home.jsx | 27 +- 43 files changed, 336 insertions(+), 492 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/docs.yml create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 .github/ISSUE_TEMPLATE/other.yml delete mode 100644 src/components/about/About.jsx rename src/components/{about/AboutTamal.jsx => private/about/About.jsx} (68%) rename src/components/{ => private}/about/About.scss (100%) rename src/components/{ => private}/collaborators/Collaborators.jsx (63%) rename src/components/{ => private}/collaborators/Collaborators.scss (100%) rename src/components/{ => private}/faq/FAQ.jsx (100%) rename src/components/{ => private}/faq/FAQ.scss (100%) create mode 100644 src/components/private/index.js rename src/components/{ => private}/landing/Landing.jsx (81%) rename src/components/{ => private}/landing/Landing.scss (100%) rename src/components/{ => private}/mentors/Mentors.jsx (96%) rename src/components/{ => private}/mentors/Mentors.scss (100%) create mode 100644 src/components/private/prizes/Prizes.jsx rename src/components/{ => private}/prizes/Prizes.scss (100%) rename src/components/{ => private}/sponsors/Sponsors.jsx (83%) rename src/components/{ => private}/sponsors/Sponsors.scss (100%) rename src/components/{ => private/sponsors}/singlesponsors/SingleSponsors.jsx (100%) rename src/components/{ => private/sponsors}/singlesponsors/SingleSponsors.scss (100%) rename src/components/{ => private}/testimonials/Testimonials.jsx (96%) rename src/components/{ => private}/testimonials/Testimonials.scss (100%) rename src/components/{ => private}/themes/Theme.jsx (86%) rename src/components/{ => private}/themes/Theme.scss (100%) rename src/components/{ => private}/timeline/Timeline.jsx (87%) rename src/components/{ => private}/timeline/Timeline.scss (100%) delete mode 100644 src/components/prizes/Prizes.jsx rename src/components/{ => shared}/button/Button.jsx (100%) rename src/components/{ => shared}/button/Button.scss (100%) rename src/components/{ => shared}/comingsoon/ComingSoon.jsx (100%) rename src/components/{ => shared}/comingsoon/ComingSoon.scss (100%) rename src/components/{ => shared}/footer/Footer.jsx (97%) rename src/components/{ => shared}/footer/Footer.scss (100%) create mode 100644 src/components/shared/index.js rename src/components/{ => shared}/marquee/Marquee.jsx (100%) rename src/components/{ => shared}/marquee/Marquee.scss (100%) rename src/components/{ => shared}/navbar/Navbar.jsx (98%) rename src/components/{ => shared}/navbar/Navbar.scss (100%) diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml new file mode 100644 index 0000000..bb83635 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -0,0 +1,63 @@ +name: 🐞 Bug +description: Report an issue to help improve the project. +title: "Bug: Write a small description here" +labels: + [ + "status: todo ⏳", + "🐞 bug" + ] +body: + - type: textarea + id: description + attributes: + label: Description + description: Write a detailed description of the issue that you faced. + validations: + required: true + - type: textarea + id: solution + attributes: + label: Proposed Solution + description: Write a solution which you think can fix this issue. + validations: + required: true + - type: textarea + id: screenshots + attributes: + label: Screenshots + description: Please add screenshots/videos if applicable + validations: + required: false + + - type: dropdown + id: browser + attributes: + label: "Browser 🥦" + description: "What browser are you using ?" + options: + - Google Chrome + - Brave + - Microsoft Edge + - Mozilla Firefox + - Safari + - Opera + - Other + validations: + required: true + + - type: checkboxes + id: no-duplicate-issues + attributes: + label: "Checklist ✅" + options: + - label: "I checked and didn't find similar [issue](https://github.com/hack4bengal/s3/issues)" + required: true + + - label: "I am willing to work on this issue (blank for no)." + required: false + + - type: markdown + attributes: + value: | + In case of emergencies contact me on [Twitter](https://twitter.com/tamalCodes) + diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3a75dfe --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,4 @@ +blank_issues_enabled: false + contact_links: + - name: 🙋🏾🙋🏼‍ Need help/emergencies ? + url: https://twitter.com/tamalCodes diff --git a/.github/ISSUE_TEMPLATE/docs.yml b/.github/ISSUE_TEMPLATE/docs.yml new file mode 100644 index 0000000..d3d3ede --- /dev/null +++ b/.github/ISSUE_TEMPLATE/docs.yml @@ -0,0 +1,56 @@ +name: 📄 Documentation issue +description: Found an issue in the documentation? You can use this one! +title: "Docs: Write a small description here" +labels: + [ + "status: todo ⏳", + "📚 docs" + ] +body: + - type: textarea + id: description + attributes: + label: Description + description: Write a detailed description of the changes you are proposing. + validations: + required: true + - type: textarea + id: screenshots + attributes: + label: Screenshots + description: Please add screenshots/videos if applicable + validations: + required: false + - type: dropdown + id: browser + attributes: + label: "🥦 Browser" + description: "What browser are you using ?" + options: + - Google Chrome + - Brave + - Microsoft Edge + - Mozilla Firefox + - Safari + - Opera + - Other + validations: + required: true + + - type: checkboxes + id: no-duplicate-issues + attributes: + label: "Checklist ✅" + options: + - label: "I checked and didn't find similar [issue](https://github.com/hack4bengal/s3/issues)" + required: true + + - label: "I am willing to work on this issue (blank for no)" + required: false + + - type: markdown + attributes: + value: | + In case of emergencies contact me on [Twitter](https://twitter.com/tamalCodes) + + diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..b2546d5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,63 @@ + name: 💡 Feature Request + description: Have a new idea/feature ? Please suggest! + title: "Feature: Write a small description here" + labels: + [ + "status: todo ⏳", + "💡 feature" + ] + body: + - type: textarea + id: description + attributes: + label: Description + description: Write a detailed description of the feature you propose. + validations: + required: true + - type: textarea + id: solution + attributes: + label: Proposed Solution + description: What needs to be done to implement this feature? + validations: + required: true + - type: textarea + id: screenshots + attributes: + label: Screenshots + description: Please add screenshots/videos if applicable + validations: + required: false + + - type: dropdown + id: browser + attributes: + label: "🥦 Browser" + description: "What browser are you using ?" + options: + - Google Chrome + - Brave + - Microsoft Edge + - Mozilla Firefox + - Safari + - Opera + - Other + validations: + required: true + + - type: checkboxes + id: no-duplicate-issues + attributes: + label: "Checklist ✅" + options: + - label: "I checked and didn't find similar [issue](https://github.com/hack4bengal/s3/issues)" + required: true + + - label: "I am willing to work on this issue (blank for no)" + required: false + + - type: markdown + attributes: + value: | + In case of emergencies contact me on [Twitter](https://twitter.com/tamalCodes) + diff --git a/.github/ISSUE_TEMPLATE/other.yml b/.github/ISSUE_TEMPLATE/other.yml new file mode 100644 index 0000000..ab1c1c5 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/other.yml @@ -0,0 +1,47 @@ +name: Other +description: Use this for any other issues. Please do NOT create blank issues +title: "📂Other: Write a small description here" +labels: + [ + "status: todo ⏳" + ] +body: + - type: textarea + id: issuedescription + attributes: + label: What would you like to share? + description: Provide a clear and concise explanation of your issue. + validations: + required: true + - type: dropdown + id: browser + attributes: + label: "🥦 Browser" + description: "What browser are you using ?" + options: + - Google Chrome + - Brave + - Microsoft Edge + - Mozilla Firefox + - Safari + - Opera + - Other + validations: + required: true + + - type: checkboxes + id: no-duplicate-issues + attributes: + label: "Checklist ✅" + options: + - label: "I checked and didn't find similar [issue](https://github.com/hack4bengal/s3/issues)" + required: true + + - label: "I am willing to work on this issue (blank for no)" + required: false + + - type: markdown + attributes: + value: | + In case of emergencies contact Tamal on [Twitter](https://twitter.com/tamalCodes) + diff --git a/src/App.jsx b/src/App.jsx index 8fbbd8c..8c15885 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,12 +1,12 @@ import React from "react"; import { Route, BrowserRouter as Router, Routes } from "react-router-dom"; -import Footer from "./components/footer/Footer"; + import Brand from "./pages/brand/Brand"; import CodeofConduct from "./pages/coc/CodeofConduct"; import Discord from "./pages/discord/Discord"; import Home from "./pages/home/Home"; -import Navbar from "./components/navbar/Navbar"; +import { Footer, Navbar } from "./components/shared"; import "./styles/Globals.scss"; const App = () => { diff --git a/src/components/about/About.jsx b/src/components/about/About.jsx deleted file mode 100644 index d4ac87b..0000000 --- a/src/components/about/About.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react"; -import Tiger from "../../assets/images/LandingImages/Tiger.png"; -import "./About.scss"; - -const About = () => { - const aboutRef = React.useRef(null); - return ( -
-
- -
-

Hack4Bengal

-
-

About Us

-

-

- -
- Hack4Bengal believes in building for the future, empowering people - irrespective of their fields, to showcase their skills and creativity - for solving real-life problems. -

-

- What started with three enthusiastic people in the year 2021, is now a - community of over 2000 developers. Hack4Bengal has been growing from - strength to strength and our aim is to go beyond the horizons and - impact millions of tech talents by providing them with a platform to - enhance their skills, collaborate and create. This time Hack4Bengal is - back to leverage your expertise in the offline mode. See you there! -

-
-
- ); -}; - -export default About; diff --git a/src/components/about/AboutTamal.jsx b/src/components/private/about/About.jsx similarity index 68% rename from src/components/about/AboutTamal.jsx rename to src/components/private/about/About.jsx index 5d01b2a..d2b0f5a 100644 --- a/src/components/about/AboutTamal.jsx +++ b/src/components/private/about/About.jsx @@ -1,16 +1,16 @@ import React from "react"; import Marquee from "react-fast-marquee"; -import six from "../../assets/images/AboutImages/35.jpg"; -import eight from "../../assets/images/AboutImages/43.jpg"; -import five from "../../assets/images/AboutImages/5.jpg"; -import four from "../../assets/images/AboutImages/7.jpg"; -import three from "../../assets/images/AboutImages/five.jpg"; -import two from "../../assets/images/AboutImages/four.jpg"; -import seven from "../../assets/images/AboutImages/six.jpg"; +import six from "../../../assets/images/AboutImages/35.jpg"; +import eight from "../../../assets/images/AboutImages/43.jpg"; +import five from "../../../assets/images/AboutImages/5.jpg"; +import four from "../../../assets/images/AboutImages/7.jpg"; +import three from "../../../assets/images/AboutImages/five.jpg"; +import two from "../../../assets/images/AboutImages/four.jpg"; +import seven from "../../../assets/images/AboutImages/six.jpg"; import "./About.scss"; -const AboutTamal = ({ refs }) => { +const About = ({ refs }) => { return ( <>
@@ -130,59 +130,9 @@ const AboutTamal = ({ refs }) => {
- - {/*
-
-

Our Journey so far

- -
-
-

500+

- Hackers -
-
-

50+

- Partners -
- -
-

36+

- Hack hours -
- -
-

85+

- Events -
- -
-

220+

- Projects -
-
-

40+

- Mentors -
-
-
- -
- - - - - -
-
*/} ); }; -export default AboutTamal; +export default About; diff --git a/src/components/about/About.scss b/src/components/private/about/About.scss similarity index 100% rename from src/components/about/About.scss rename to src/components/private/about/About.scss diff --git a/src/components/collaborators/Collaborators.jsx b/src/components/private/collaborators/Collaborators.jsx similarity index 63% rename from src/components/collaborators/Collaborators.jsx rename to src/components/private/collaborators/Collaborators.jsx index 257056e..2f55bcb 100644 --- a/src/components/collaborators/Collaborators.jsx +++ b/src/components/private/collaborators/Collaborators.jsx @@ -1,6 +1,6 @@ -import React, { useState, useEffect } from "react"; +import React, { useEffect, useState } from "react"; +import collaboratorsContent from "../../../assets/data/CollaboratorsContent"; import "./Collaborators.scss"; -import collaboratorsContent from "../../assets/data/CollaboratorsContent"; // import ComingSoon from "../comingsoon/ComingSoon"; const Collaborators = ({ refs }) => { @@ -21,21 +21,19 @@ const Collaborators = ({ refs }) => { return (
-

{windowWidth > 1280 ? collaboratorsContent.title.back.main : collaboratorsContent.title.back.alt}

+

+ {windowWidth > 1280 + ? collaboratorsContent.title.back.main + : collaboratorsContent.title.back.alt} +

{collaboratorsContent.title.main}

{/* */}
- { - collaboratorsContent.collaborators.map( - (collaborator, index) => { - return ( - - ) - } - ) - } + {collaboratorsContent.collaborators.map((collaborator, index) => { + return ; + })}
diff --git a/src/components/collaborators/Collaborators.scss b/src/components/private/collaborators/Collaborators.scss similarity index 100% rename from src/components/collaborators/Collaborators.scss rename to src/components/private/collaborators/Collaborators.scss diff --git a/src/components/faq/FAQ.jsx b/src/components/private/faq/FAQ.jsx similarity index 100% rename from src/components/faq/FAQ.jsx rename to src/components/private/faq/FAQ.jsx diff --git a/src/components/faq/FAQ.scss b/src/components/private/faq/FAQ.scss similarity index 100% rename from src/components/faq/FAQ.scss rename to src/components/private/faq/FAQ.scss diff --git a/src/components/private/index.js b/src/components/private/index.js new file mode 100644 index 0000000..2f1457b --- /dev/null +++ b/src/components/private/index.js @@ -0,0 +1,11 @@ +export { default as About } from "./about/About"; +export { default as Collaborators } from "./collaborators/Collaborators"; +export { default as Faq } from "./faq/Faq"; +export { default as Landing } from "./landing/Landing"; +export { default as Mentors } from "./mentors/Mentors"; +export { default as Prizes } from "./prizes/Prizes"; +export { default as Sponsors } from "./sponsors/Sponsors"; +export { default as SingleSponsors } from "./sponsors/singlesponsors/SingleSponsors"; +export { default as Testimonials } from "./testimonials/Testimonials"; +export { default as Theme } from "./themes/Theme"; +export { default as Timeline } from "./timeline/Timeline"; diff --git a/src/components/landing/Landing.jsx b/src/components/private/landing/Landing.jsx similarity index 81% rename from src/components/landing/Landing.jsx rename to src/components/private/landing/Landing.jsx index 6ba0aab..82f4fb6 100644 --- a/src/components/landing/Landing.jsx +++ b/src/components/private/landing/Landing.jsx @@ -1,9 +1,8 @@ import React from "react"; -import blob_left from "../../assets/images/LandingImages/blob_left.png"; -import blob_right from "../../assets/images/LandingImages/blob_right.png"; -import victoria from "../../assets/images/LandingImages/victoria.png"; -import Button from "../button/Button"; -import Marquee from "../marquee/Marquee"; +import blob_left from "../../../assets/images/LandingImages/blob_left.png"; +import blob_right from "../../../assets/images/LandingImages/blob_right.png"; +import victoria from "../../../assets/images/LandingImages/victoria.png"; +import { Button } from "../../shared"; import "./Landing.scss"; const Landing = ({ refs }) => { @@ -50,7 +49,7 @@ const Landing = ({ refs }) => { - {window.innerWidth > 600 && } + {/* {window.innerWidth > 600 && } */} ); diff --git a/src/components/landing/Landing.scss b/src/components/private/landing/Landing.scss similarity index 100% rename from src/components/landing/Landing.scss rename to src/components/private/landing/Landing.scss diff --git a/src/components/mentors/Mentors.jsx b/src/components/private/mentors/Mentors.jsx similarity index 96% rename from src/components/mentors/Mentors.jsx rename to src/components/private/mentors/Mentors.jsx index cfb0518..4099fe7 100644 --- a/src/components/mentors/Mentors.jsx +++ b/src/components/private/mentors/Mentors.jsx @@ -1,7 +1,7 @@ -import React, { useState, useEffect } from "react"; +import React, { useEffect, useState } from "react"; import Marquee from "react-fast-marquee"; import { FaLinkedinIn, FaXTwitter } from "react-icons/fa6"; -import { mentorContent } from "../../assets/data/MentorsContent"; +import { mentorContent } from "../../../assets/data/MentorsContent"; import "./Mentors.scss"; function Mentors({ refs }) { diff --git a/src/components/mentors/Mentors.scss b/src/components/private/mentors/Mentors.scss similarity index 100% rename from src/components/mentors/Mentors.scss rename to src/components/private/mentors/Mentors.scss diff --git a/src/components/private/prizes/Prizes.jsx b/src/components/private/prizes/Prizes.jsx new file mode 100644 index 0000000..50fa81a --- /dev/null +++ b/src/components/private/prizes/Prizes.jsx @@ -0,0 +1,34 @@ +import React, { useEffect, useState } from "react"; +import { ComingSoon } from "../../shared"; +import "./Prizes.scss"; + +const Prizes = ({ refs }) => { + const [windowWidth, setWindowWidth] = useState(window.innerWidth); + + useEffect(() => { + const handleResize = () => { + setWindowWidth(window.innerWidth); + }; + + window.addEventListener("resize", handleResize); + + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); + + return ( + <> +
+
+

Awards

+

{windowWidth > 700 && "Hackathon"} Prizes

+
+ + +
+ + ); +}; + +export default Prizes; diff --git a/src/components/prizes/Prizes.scss b/src/components/private/prizes/Prizes.scss similarity index 100% rename from src/components/prizes/Prizes.scss rename to src/components/private/prizes/Prizes.scss diff --git a/src/components/sponsors/Sponsors.jsx b/src/components/private/sponsors/Sponsors.jsx similarity index 83% rename from src/components/sponsors/Sponsors.jsx rename to src/components/private/sponsors/Sponsors.jsx index ba79f7e..586e64f 100644 --- a/src/components/sponsors/Sponsors.jsx +++ b/src/components/private/sponsors/Sponsors.jsx @@ -1,7 +1,7 @@ -import React, { useState, useEffect } from "react"; -import sponsors from "../../assets/data/SponsorsContent"; -import SingleSponsors from "../singlesponsors/SingleSponsors"; +import React, { useEffect, useState } from "react"; +import sponsors from "../../../assets/data/SponsorsContent"; import "./Sponsors.scss"; +import SingleSponsors from "./singlesponsors/SingleSponsors"; const Sponsors = ({ refs }) => { const [windowWidth, setWindowWidth] = useState(window.innerWidth); diff --git a/src/components/sponsors/Sponsors.scss b/src/components/private/sponsors/Sponsors.scss similarity index 100% rename from src/components/sponsors/Sponsors.scss rename to src/components/private/sponsors/Sponsors.scss diff --git a/src/components/singlesponsors/SingleSponsors.jsx b/src/components/private/sponsors/singlesponsors/SingleSponsors.jsx similarity index 100% rename from src/components/singlesponsors/SingleSponsors.jsx rename to src/components/private/sponsors/singlesponsors/SingleSponsors.jsx diff --git a/src/components/singlesponsors/SingleSponsors.scss b/src/components/private/sponsors/singlesponsors/SingleSponsors.scss similarity index 100% rename from src/components/singlesponsors/SingleSponsors.scss rename to src/components/private/sponsors/singlesponsors/SingleSponsors.scss diff --git a/src/components/testimonials/Testimonials.jsx b/src/components/private/testimonials/Testimonials.jsx similarity index 96% rename from src/components/testimonials/Testimonials.jsx rename to src/components/private/testimonials/Testimonials.jsx index 324ada1..6230c20 100644 --- a/src/components/testimonials/Testimonials.jsx +++ b/src/components/private/testimonials/Testimonials.jsx @@ -1,6 +1,6 @@ import React from "react"; import Marquee from "react-fast-marquee"; -import testimonials from "../../assets/data/TestimonialContent"; +import testimonials from "../../../assets/data/TestimonialContent"; import "./Testimonials.scss"; const Testimonials = ({ refs }) => { diff --git a/src/components/testimonials/Testimonials.scss b/src/components/private/testimonials/Testimonials.scss similarity index 100% rename from src/components/testimonials/Testimonials.scss rename to src/components/private/testimonials/Testimonials.scss diff --git a/src/components/themes/Theme.jsx b/src/components/private/themes/Theme.jsx similarity index 86% rename from src/components/themes/Theme.jsx rename to src/components/private/themes/Theme.jsx index eede4c6..5b63c8b 100644 --- a/src/components/themes/Theme.jsx +++ b/src/components/private/themes/Theme.jsx @@ -1,5 +1,5 @@ -import React, { useState, useEffect } from "react"; -import ComingSoon from "../comingsoon/ComingSoon"; +import React, { useEffect, useState } from "react"; +import { ComingSoon } from "../../shared"; import "./Theme.scss"; const Theme = ({ refs }) => { diff --git a/src/components/themes/Theme.scss b/src/components/private/themes/Theme.scss similarity index 100% rename from src/components/themes/Theme.scss rename to src/components/private/themes/Theme.scss diff --git a/src/components/timeline/Timeline.jsx b/src/components/private/timeline/Timeline.jsx similarity index 87% rename from src/components/timeline/Timeline.jsx rename to src/components/private/timeline/Timeline.jsx index 5bce118..a68c5a7 100644 --- a/src/components/timeline/Timeline.jsx +++ b/src/components/private/timeline/Timeline.jsx @@ -1,5 +1,5 @@ -import React, { useState, useEffect } from "react"; -import ComingSoon from "../comingsoon/ComingSoon"; +import React, { useEffect, useState } from "react"; +import { ComingSoon } from "../../shared"; import "./Timeline.scss"; const Timeline = ({ refs }) => { diff --git a/src/components/timeline/Timeline.scss b/src/components/private/timeline/Timeline.scss similarity index 100% rename from src/components/timeline/Timeline.scss rename to src/components/private/timeline/Timeline.scss diff --git a/src/components/prizes/Prizes.jsx b/src/components/prizes/Prizes.jsx deleted file mode 100644 index fae9be6..0000000 --- a/src/components/prizes/Prizes.jsx +++ /dev/null @@ -1,351 +0,0 @@ -import React, { useState, useEffect } from "react"; -// import white from "../../assets/images/LandingImages/blob_right.png"; - -// import FirstPrize from "../../assets/images/PrizesImages/FirstPrize.png"; -// import SecondPrize from "../../assets/images/PrizesImages/SecondPrize.png"; -// import ThirdPrize from "../../assets/images/PrizesImages/ThirdPrize.png"; - -// import flow from "../../assets/images/PrizesImages/flow.png"; - -import ComingSoon from "../comingsoon/ComingSoon"; -import "./Prizes.scss"; - -const Prizes = ({ refs }) => { - const [windowWidth, setWindowWidth] = useState(window.innerWidth); - - useEffect(() => { - const handleResize = () => { - setWindowWidth(window.innerWidth); - }; - - window.addEventListener("resize", handleResize); - - return () => { - window.removeEventListener("resize", handleResize); - }; - }, []); - - return ( - <> -
-
-

Awards

-

{windowWidth > 700 && "Hackathon"} Prizes

-
- {/* */} - {/* */} - {/*
-
- -

₹ 25,000

-

1st Runner Up

-
-
- -

₹ 50,000

-

Grand Winner

-
-
- -

₹ 10,000

-

2nd Runner Up

-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
-
-
-
-

- Best Apps built
on Flow -

-
- -
- -
-
-
-
-

1st team - ₹1,22,987

- -

2nd team - ₹82,000

- -

3rd team - ₹40,000

- -
- - - - -
-
-
-
-
*/} - - -
- - ); -}; - -export default Prizes; diff --git a/src/components/button/Button.jsx b/src/components/shared/button/Button.jsx similarity index 100% rename from src/components/button/Button.jsx rename to src/components/shared/button/Button.jsx diff --git a/src/components/button/Button.scss b/src/components/shared/button/Button.scss similarity index 100% rename from src/components/button/Button.scss rename to src/components/shared/button/Button.scss diff --git a/src/components/comingsoon/ComingSoon.jsx b/src/components/shared/comingsoon/ComingSoon.jsx similarity index 100% rename from src/components/comingsoon/ComingSoon.jsx rename to src/components/shared/comingsoon/ComingSoon.jsx diff --git a/src/components/comingsoon/ComingSoon.scss b/src/components/shared/comingsoon/ComingSoon.scss similarity index 100% rename from src/components/comingsoon/ComingSoon.scss rename to src/components/shared/comingsoon/ComingSoon.scss diff --git a/src/components/footer/Footer.jsx b/src/components/shared/footer/Footer.jsx similarity index 97% rename from src/components/footer/Footer.jsx rename to src/components/shared/footer/Footer.jsx index 83c4951..2e24841 100644 --- a/src/components/footer/Footer.jsx +++ b/src/components/shared/footer/Footer.jsx @@ -1,6 +1,6 @@ import React from "react"; import { Link } from "react-router-dom"; -import footerContent from "../../assets/data/FooterContent"; +import footerContent from "../../../assets/data/FooterContent"; import "./Footer.scss"; const Footer = () => { @@ -52,7 +52,7 @@ const Footer = () => { onClick={() => { window.scrollTo({ top: 0, - behavior: 'smooth' + behavior: "smooth", }); }} > diff --git a/src/components/footer/Footer.scss b/src/components/shared/footer/Footer.scss similarity index 100% rename from src/components/footer/Footer.scss rename to src/components/shared/footer/Footer.scss diff --git a/src/components/shared/index.js b/src/components/shared/index.js new file mode 100644 index 0000000..ab8ab8c --- /dev/null +++ b/src/components/shared/index.js @@ -0,0 +1,5 @@ +export { default as Button } from "./button/Button"; +export { default as ComingSoon } from "./comingsoon/ComingSoon"; +export { default as Footer } from "./footer/Footer"; +export { default as Marquee } from "./marquee/Marquee"; +export { default as Navbar } from "./navbar/Navbar"; diff --git a/src/components/marquee/Marquee.jsx b/src/components/shared/marquee/Marquee.jsx similarity index 100% rename from src/components/marquee/Marquee.jsx rename to src/components/shared/marquee/Marquee.jsx diff --git a/src/components/marquee/Marquee.scss b/src/components/shared/marquee/Marquee.scss similarity index 100% rename from src/components/marquee/Marquee.scss rename to src/components/shared/marquee/Marquee.scss diff --git a/src/components/navbar/Navbar.jsx b/src/components/shared/navbar/Navbar.jsx similarity index 98% rename from src/components/navbar/Navbar.jsx rename to src/components/shared/navbar/Navbar.jsx index fd024d2..a34346d 100644 --- a/src/components/navbar/Navbar.jsx +++ b/src/components/shared/navbar/Navbar.jsx @@ -1,7 +1,7 @@ /* eslint-disable react/no-unknown-property */ import React, { useEffect, useRef } from "react"; import { Link, useNavigate } from "react-router-dom"; -import navbarContent from "../../assets/data/NavbarContent"; +import navbarContent from "../../../assets/data/NavbarContent"; import "./Navbar.scss"; const Navbar = ({ refs }) => { diff --git a/src/components/navbar/Navbar.scss b/src/components/shared/navbar/Navbar.scss similarity index 100% rename from src/components/navbar/Navbar.scss rename to src/components/shared/navbar/Navbar.scss diff --git a/src/pages/home/Home.jsx b/src/pages/home/Home.jsx index 040d2e8..24d1d6d 100644 --- a/src/pages/home/Home.jsx +++ b/src/pages/home/Home.jsx @@ -1,17 +1,18 @@ import Lenis from "@studio-freight/lenis"; import React, { useEffect } from "react"; -import AboutTamal from "../../components/about/AboutTamal"; -import Faq from "../../components/faq/FAQ"; -import Landing from "../../components/landing/Landing"; -import Marquee from "../../components/marquee/Marquee"; -import Mentors from "../../components/mentors/Mentors"; -import Prizes from "../../components/prizes/Prizes"; -import Sponsors from "../../components/sponsors/Sponsors"; -import Testimonials from "../../components/testimonials/Testimonials"; -import Theme from "../../components/themes/Theme"; -import Timeline from "../../components/timeline/Timeline"; +import { + About, + Collaborators, + Faq, + Landing, + Mentors, + Prizes, + Sponsors, + Testimonials, + Theme, + Timeline, +} from "../../components/private"; import "./Home.scss"; -import Collaborators from "../../components/collaborators/Collaborators"; const Home = ({ refs }) => { useEffect(() => { @@ -30,8 +31,8 @@ const Home = ({ refs }) => { return ( <> - {window.innerWidth < 600 && } - + {/* {window.innerWidth < 600 && } */} +