Skip to content

Commit

Permalink
update: Brand heading is now like other section's headings
Browse files Browse the repository at this point in the history
  • Loading branch information
apneduniya committed Jun 14, 2024
1 parent 6383ace commit 0351cd4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
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;
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 0351cd4

Please sign in to comment.