Skip to content

Commit

Permalink
Merge pull request #112 from hack4bengal/adarsh-fix-dev
Browse files Browse the repository at this point in the history
fix and update in navbar, brand page and forwarding pages
  • Loading branch information
tamalCodes authored Jun 15, 2024
2 parents ac0f2be + 2a5e369 commit 114109f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 9 deletions.
7 changes: 4 additions & 3 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const App = () => {
<main>
{(window.location.pathname === "/" ||
window.location.pathname === "/coc" ||
window.location.pathname === "brand" ||
window.location.pathname === "/brand" ||
window.location.pathname === "/events" ||
window.location.pathname === "team") && <Navbar />}
window.location.pathname === "/team") && <Navbar />}
<Routes>
<Route exact path="/" element={<Home />} />
<Route
Expand Down Expand Up @@ -89,7 +89,8 @@ const App = () => {
</main>

{window.location.pathname !== "/surprise" &&
window.location.pathname !== "/register" && <Footer />}
window.location.pathname !== "/register" &&
window.location.pathname !== "/discord" && <Footer />}
</Suspense>
</Router>
);
Expand Down
8 changes: 8 additions & 0 deletions src/assets/data/HeaderContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,14 @@ const HeaderData = {
backWordSize_mobile: "80px",
backWordSpacing_mobile: "0rem",
},
brand: {
backWord: "H4B",
frontWord: "Brand",
backWordSpacing: "0rem",
backWordSize: "130px",
backWordSize_mobile: "80px",
backWordSpacing_mobile: "0rem",
},
};

export default HeaderData;
2 changes: 1 addition & 1 deletion src/components/shared/navbar/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const Navbar = () => {
<svg
xmlns="http://www.w3.org/2000/svg"
width="2"
height="560"
height="500"
viewBox="0 0 2 560"
fill="none"
>
Expand Down
6 changes: 5 additions & 1 deletion src/pages/brand/Brand.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import React, { useEffect } from "react";
import { brandContent } from "../../assets/data/BrandContent.js";
import "./Brand.scss";
import BrandCard from "./brandcard/BrandCard.jsx";
import HeaderData from "../../assets/data/HeaderContent";
import { Header } from "../../components/shared";


function Brand() {
useEffect(() => {
window.scrollTo(0, 0);
Expand All @@ -11,7 +15,7 @@ function Brand() {
<>
<div className="brand">
<div className="brand__content">
<h1 className="heading">Brands</h1>
<Header {...HeaderData.brand} />
<div className="brandCards__parent">
{brandContent.map((brandItem, brandIndex) => (
<BrandCard key={brandIndex} brandItem={brandItem} />
Expand Down
6 changes: 2 additions & 4 deletions src/pages/brand/Brand.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
.brand {
width: 70%;
margin: auto;
margin-top: 5rem;
.heading {
margin: 4rem 0;
}
margin-top: 13rem;
.brandCards__parent {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 2.2rem;
margin-top: 7rem;
margin-bottom: 4rem;
}
}
Expand Down

0 comments on commit 114109f

Please sign in to comment.