add brends component
This commit is contained in:
parent
898a59625b
commit
2a2d7925d9
3 changed files with 135 additions and 0 deletions
107
frontend/src/components/Brends/Brends.module.css
Normal file
107
frontend/src/components/Brends/Brends.module.css
Normal file
|
|
@ -0,0 +1,107 @@
|
||||||
|
.brands {
|
||||||
|
background-color: #000;
|
||||||
|
padding: 40px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 1440px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 0 40px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brandItem {
|
||||||
|
color: #fff;
|
||||||
|
font-weight: 700;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Стилизация под оригинальные шрифты брендов */
|
||||||
|
.versace {
|
||||||
|
font-family: 'Times New Roman', serif;
|
||||||
|
font-size: 28px;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.zara {
|
||||||
|
font-family: 'Arial', sans-serif;
|
||||||
|
font-size: 32px;
|
||||||
|
font-weight: 900;
|
||||||
|
letter-spacing: -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gucci {
|
||||||
|
font-family: 'Times New Roman', serif;
|
||||||
|
font-size: 28px;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prada {
|
||||||
|
font-family: 'Arial', sans-serif;
|
||||||
|
font-size: 26px;
|
||||||
|
font-weight: 700;
|
||||||
|
letter-spacing: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calvinKlein {
|
||||||
|
font-family: 'Helvetica', 'Arial', sans-serif;
|
||||||
|
font-size: 24px;
|
||||||
|
font-weight: 300;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Адаптивность */
|
||||||
|
@media (max-width: 1024px) {
|
||||||
|
.container {
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brandItem {
|
||||||
|
flex: 0 0 calc(33.333% - 30px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.brands {
|
||||||
|
padding: 30px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
padding: 0 20px;
|
||||||
|
gap: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brandItem {
|
||||||
|
flex: 0 0 calc(50% - 20px);
|
||||||
|
font-size: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.versace,
|
||||||
|
.gucci {
|
||||||
|
font-size: 22px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.zara {
|
||||||
|
font-size: 24px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.prada {
|
||||||
|
font-size: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.calvinKlein {
|
||||||
|
font-size: 18px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.brandItem {
|
||||||
|
flex: 0 0 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
25
frontend/src/components/Brends/Brends.tsx
Normal file
25
frontend/src/components/Brends/Brends.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
import styles from './Brends.module.css'
|
||||||
|
|
||||||
|
function Brands() {
|
||||||
|
const brands = [
|
||||||
|
{ name: 'VERSACE', className: styles.versace },
|
||||||
|
{ name: 'ZARA', className: styles.zara },
|
||||||
|
{ name: 'GUCCI', className: styles.gucci },
|
||||||
|
{ name: 'PRADA', className: styles.prada },
|
||||||
|
{ name: 'Calvin Klein', className: styles.calvinKlein }
|
||||||
|
]
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={styles.brands}>
|
||||||
|
<div className={styles.container}>
|
||||||
|
{brands.map((brand, index) => (
|
||||||
|
<div key={index} className={`${styles.brandItem} ${brand.className}`}>
|
||||||
|
{brand.name}
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Brands
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import AnnouncementBar from '../../components/AnnouncementBar/AnnouncementBar'
|
import AnnouncementBar from '../../components/AnnouncementBar/AnnouncementBar'
|
||||||
import Header from '../../components/Header/Header'
|
import Header from '../../components/Header/Header'
|
||||||
import Hero from '../../components/Hero/Hero'
|
import Hero from '../../components/Hero/Hero'
|
||||||
|
import Brends from '../../components/Brends/Brends'
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
return (
|
return (
|
||||||
|
|
@ -10,6 +11,8 @@ function Home() {
|
||||||
<Header />
|
<Header />
|
||||||
|
|
||||||
<Hero />
|
<Hero />
|
||||||
|
|
||||||
|
<Brends />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue