diff --git a/src/app/about/page.tsx b/src/app/about/page.tsx index 423d3c9..4e77f5f 100644 --- a/src/app/about/page.tsx +++ b/src/app/about/page.tsx @@ -23,9 +23,9 @@ const AboutUs = () => {
{aboutData.map((each, index) => ( <> -
- {each.header} -
+
+ {each.header} +
{each.briefInfo.map((info, i) => (

{info} diff --git a/src/app/components/FacilityCard.tsx b/src/app/components/FacilityCard.tsx index c8651fa..aa14cfd 100644 --- a/src/app/components/FacilityCard.tsx +++ b/src/app/components/FacilityCard.tsx @@ -4,11 +4,11 @@ import Fade from "react-reveal/Fade"; const FacilityCard = ({ facility }: { facility: string }) => { return ( - + - + -

+
{facility}
diff --git a/src/app/components/NavigationBar.tsx b/src/app/components/NavigationBar.tsx index 1a653f9..e25846f 100644 --- a/src/app/components/NavigationBar.tsx +++ b/src/app/components/NavigationBar.tsx @@ -22,6 +22,9 @@ const russoOne = Russo_One({ }); const NavigationBar = () => { + const [textColor, setTextColor] = useState( + window.innerWidth <= 767 ? "black" : "white" + ); const buttonBRef = useRef(null); const [collapseClasses, setCollapseClasses] = useState(""); @@ -32,7 +35,17 @@ const NavigationBar = () => { useEffect(() => { let headroom = new Headroom(document.getElementById("navbar-main")!); headroom.init(); - }); + + const handleResize = () => { + setTextColor(window.innerWidth <= 767 ? "black" : "white"); + }; + + window.addEventListener("resize", handleResize); + + return () => { + window.removeEventListener("resize", handleResize); + }; + }, []); const handleButtonClick = () => { if (window.innerWidth <= 767 && buttonBRef.current) { @@ -51,9 +64,9 @@ const NavigationBar = () => { > - +
{homeData.explore.links.map((link, i) => ( - - - + + +
-
+
{link}
diff --git a/src/app/homePage/Gallery.tsx b/src/app/homePage/Gallery.tsx index 9887cd4..e8a2305 100644 --- a/src/app/homePage/Gallery.tsx +++ b/src/app/homePage/Gallery.tsx @@ -22,15 +22,13 @@ const Gallery = () => { - - - + @@ -40,15 +38,13 @@ const Gallery = () => { - - - + diff --git a/src/app/homePage/Greetings.tsx b/src/app/homePage/Greetings.tsx index fa76d0c..6a883e9 100644 --- a/src/app/homePage/Greetings.tsx +++ b/src/app/homePage/Greetings.tsx @@ -13,7 +13,7 @@ const Greetings = () => { return (
-
+
@@ -26,7 +26,7 @@ const Greetings = () => { {homeData.greetings.greet}

- + { margin: "20px", }} /> -
    +
      {rulesData.rules.gujarati.map((rule, index) => (
    • {rule}
    • ))} @@ -46,7 +46,7 @@ const Rules = () => { margin: "20px", }} /> -
        +
          {rulesData.rules.english.map((rule, index) => (
        • {rule}
        • ))} diff --git a/src/data/faqData.ts b/src/data/faqData.ts index ca1304b..c5f93ca 100644 --- a/src/data/faqData.ts +++ b/src/data/faqData.ts @@ -1,7 +1,7 @@ import { FaqData } from "@/types/type"; export const faqData: FaqData = { - faqHeader: "Frequently Asked Questions", + faqHeader: "FAQs", headerText: "Got Questions? Find Clear Answers Here! Everything You Need to Know About Your Hostel Stay in Our Simple and Helpful Frequently Asked Questions Section.", faqData: [ { diff --git a/src/styles/styles.css b/src/styles/styles.css index 4d56ba6..97e5f88 100644 --- a/src/styles/styles.css +++ b/src/styles/styles.css @@ -18,13 +18,9 @@ body > div:first-child { padding: 0; margin-top: 5px; } - .small-mobile-font { - /* padding: 2px, 0px; */ - font-size: x-small; - } .custom-card-body { height: 35px; - padding-top: 0.5vw; + padding-top: 5px; } }