diff --git a/package.json b/package.json index 70a10ed..9b7ac82 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,9 @@ "deploy": "gh-pages -d dist" }, "dependencies": { + "@fortawesome/fontawesome-svg-core": "^6.3.0", "@fortawesome/free-solid-svg-icons": "^6.6.0", "@fortawesome/react-fontawesome": "^0.2.2", - "@fortawesome/fontawesome-svg-core": "^6.3.0", "@headlessui/react": "^2.2.0", "date-fns": "^4.1.0", "lucide-react": "^0.474.0", @@ -40,4 +40,4 @@ "globals": "^15.11.0", "vite": "^5.4.11" } -} \ No newline at end of file +} diff --git a/src/App.css b/src/App.css index 728a543..eabf2b8 100644 --- a/src/App.css +++ b/src/App.css @@ -65,6 +65,11 @@ footer { animation: roll 2s ease-in-out; } +p { + font-size: clamp(16px, 1.5vw, 20px); /* Adjusts based on screen width */ + line-height: 1.6; +} + @keyframes roll { 0% { transform: rotateX(0deg) rotateY(0deg); @@ -113,29 +118,6 @@ footer { margin: 10px 0; } -.typewriter { - display: inline-block; - font-size: 2.5vw; - overflow: hidden; - white-space: nowrap; -} - -.blinker { - display: inline-block; - color: #800080; - animation: blink 1s step-end infinite; -} - -@keyframes blink { - from, - to { - opacity: 0; - } - 50% { - opacity: 1; - } -} - @media (min-width: 768px) { .about-section { flex-direction: row; @@ -305,7 +287,12 @@ footer { .header { align-items: center; justify-content: center; - font-size: 5em; + font-size: clamp(3rem, 12vw, 6rem); +} + +.tagline { + text-align: center; + font-size: clamp(1rem, 3vw, 2rem); } .header2 { diff --git a/src/App.jsx b/src/App.jsx index 73bf1e5..de06833 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -5,7 +5,7 @@ import NavBar from "./components/NavBar"; import Bee from "./Bee"; import Committee from "./components/Committee"; import Timeline from "./components/TimeLineFolder/TimeLine"; -import faq from "./components/faq"; +import Faq from "./components/faq"; import ConnectWithUs from "./components/ConnectWithUs"; import "./components/Logo.css"; @@ -25,12 +25,12 @@ function App() { return ( <> - +

UniCS

-

+

University of Manchester
Computer Science Society{" "}

@@ -59,8 +59,9 @@ function App() {

More information about May Ball coming soon!

- + +

SPONSORS diff --git a/src/components/NavBar.jsx b/src/components/NavBar.jsx index 44f3de0..4ebd240 100644 --- a/src/components/NavBar.jsx +++ b/src/components/NavBar.jsx @@ -36,6 +36,30 @@ const pages = [ }, ]; +const UnderConstruction = () => { + const [isVisible, setIsVisible] = useState(false); + + useEffect(() => { + const timer = setTimeout(() => setIsVisible(true), 600); + return () => clearTimeout(timer); + }, []); + + if (!isVisible) return null; + + return ( +
+
+ + +
+
+ +
+ Website under construction! +
+ ); +}; + const NavBar = () => { const [showDropdown, setShowDropdown] = useState(false); @@ -43,13 +67,17 @@ const NavBar = () => { setShowDropdown(!showDropdown); }; + const scrollToTop = () => { + window.scrollTo({ top: 0, behavior: "smooth" }); + }; + return (