From 00d413e9a21703ad0c87f0f1def3708919c4c651 Mon Sep 17 00:00:00 2001 From: Shreya-sinha Date: Thu, 8 Aug 2024 20:59:37 +0530 Subject: [PATCH] fix: Resolve background rendering issues --- frontend/src/components/Footer.jsx | 8 +-- frontend/src/index.css | 3 ++ .../{achievents.css => achievements.css} | 52 +------------------ frontend/src/pages/achievements.jsx | 14 ++--- 4 files changed, 15 insertions(+), 62 deletions(-) rename frontend/src/pages/{achievents.css => achievements.css} (79%) diff --git a/frontend/src/components/Footer.jsx b/frontend/src/components/Footer.jsx index 748acee..a89081d 100644 --- a/frontend/src/components/Footer.jsx +++ b/frontend/src/components/Footer.jsx @@ -1,4 +1,4 @@ -import React from 'react' +// import React from 'react' const Footer = () => { return ( @@ -18,10 +18,10 @@ const Footer = () => { - + - + @@ -60,4 +60,4 @@ const Footer = () => { ); }; -export default Footer; \ No newline at end of file +export default Footer; diff --git a/frontend/src/index.css b/frontend/src/index.css index 84441e9..75c1a9f 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -11,6 +11,9 @@ a{ nav{ @apply z-10; } +footer{ + @apply z-50; +} .card{ @apply bg-gray-800 rounded-lg p-4 w-[280px] h-[350px]; } diff --git a/frontend/src/pages/achievents.css b/frontend/src/pages/achievements.css similarity index 79% rename from frontend/src/pages/achievents.css rename to frontend/src/pages/achievements.css index afc061d..9104c8c 100644 --- a/frontend/src/pages/achievents.css +++ b/frontend/src/pages/achievements.css @@ -11,45 +11,6 @@ flex-direction: column; min-height: 100vh; } - - .main-container { - flex: 1; - display: flex; - flex-direction: column; - } - - main { - flex: 1; - } - - header { - background-color: transparent; - } - - nav { - padding-top: 10px; - display: flex; - justify-content: space-evenly; - align-items: center; - width: 100%; - height: 60px; - position: relative; - } - - nav li { - list-style-type: none; - text-transform: capitalize; - color: aliceblue; - font-size: x-small; - font-weight: 5; - letter-spacing: 0.5px; - } - - nav img { - width: 9vw; - cursor: pointer; - } - .r { list-style-type: none; text-transform: capitalize; @@ -98,11 +59,6 @@ } /* Box Styling */ - .boxes-container { - position: relative; - margin-top: 50 rem; - } - .box1, .box2, .box3, .box4 { background-color: #333; border: 3px solid; @@ -138,13 +94,7 @@ left: 50vw; top: calc(60vw + 12.5vw + 10.5vw); } - - /* Footer Styling */ - footer { - position: relative; - top: calc(60vw + 12.5vw + 10.5vw + 37vw + 20px); /* Ensure it appears below the last box */ - } - + .main3 { background-color: rgb(42, 42, 42); width: 100%; diff --git a/frontend/src/pages/achievements.jsx b/frontend/src/pages/achievements.jsx index d7aaaca..ca826f4 100644 --- a/frontend/src/pages/achievements.jsx +++ b/frontend/src/pages/achievements.jsx @@ -1,4 +1,4 @@ -import React from 'react'; +// import React from 'react'; import './achievements.css'; import Navbar from "../components/Navbar"; import Footer from "../components/Footer"; @@ -7,8 +7,8 @@ const Achievements = () => { return ( <> -
-
+
+
@@ -20,9 +20,9 @@ const Achievements = () => {
-
-

our achievements

-
+
+

Our Achievements

+
@@ -37,4 +37,4 @@ const Achievements = () => { ); }; -export default Achievements; \ No newline at end of file +export default Achievements;