сверстан футер

This commit is contained in:
DmitriyB
2022-07-25 16:01:11 +05:30
parent 6f799e8463
commit 28301e0964
7 changed files with 136 additions and 56 deletions
+26 -2
View File
@@ -3,11 +3,35 @@ import React from "react";
type TProps = {
title: string
href?: string
pairData: Array<{value1: string, value2: string}>
pairData: Array<{value1: string, value2?: string}>
}
export const ContactContainer:React.FC<TProps> = React.memo((props) => {
return <div className="contact-container">
<div className="contact-header">
<span className="contact-header-title">{props.title}</span>
<span className="contact-header-line"></span>
</div>
{
props.href
? <a href={props.href} className='contact-href'>{props.href}</a>
: null
}
<div className="contact-data-container">
{props.pairData.map(pair => {
return <div className="contact-data-row">
<div className="contact-data-value-container">
<span className="contact-data-value">{pair.value1}</span>
</div>
{
pair?.value2
? <div className="contact-data-value-container">
<span className="contact-data-value">{pair?.value2}</span>
</div>
: null
}
</div>
})}
</div>
</div>
})
+74
View File
@@ -5,4 +5,78 @@
justify-content: center;
align-items: center;
background-color: #1E1630;
color: #FFFFFF;
padding: 120px 200px;
box-sizing: border-box;
}
.footer-content-container {
display: flex;
width: 100%;
gap: 100px;
box-sizing: border-box;
}
.footer-content-logo {
width: 70px;
height: 113px;
}
.footer-content-contacts {
display: flex;
gap: 60px;
width: 100%;
justify-content: space-between;
box-sizing: border-box;
}
.contact-header {
display: flex;
flex-direction: column;
gap: 10px;
}
.contact-header-title {
font-weight: 500;
font-size: 24px;
line-height: 110%;
}
.contact-header-line {
height: 2px;
width: 100%;
background-color: #979797;
}
.contact-href {
color: #FFFFFF;
}
.contact-container {
width: 100%;
min-width: 255px;
display: flex;
flex-direction: column;
gap: 25px;
}
.contact-data-container {
display: flex;
flex-direction: column;
gap: 12px;
font-weight: 400;
font-size: 18px;
line-height: 130%;
}
.contact-data-row {
display: flex;
width: 100%;
justify-content: space-between;
}
.contact-data-value-container {
width: 100%;
}
+26 -1
View File
@@ -1,4 +1,5 @@
import React from "react";
import { ContactContainer } from "./contactsContainer";
import './footer.css';
import whiteLogo from './logoWhiteIcon.svg';
@@ -6,7 +7,31 @@ export const Footer:React.FC = React.memo(() => {
return <div className="footer-container">
<div className="footer-content-container">
<img className="footer-content-logo" alt="logo" src={whiteLogo}></img>
<div className="footer-content-contacts">
<ContactContainer
title="Контакты"
href="graff.tech"
pairData={[
{value1: 'Россия', value2: 'ОАЭ'},
{value1: 'info@graff.tech', value2: 'waseem@graff.tech'},
{value1: '+7 800 770 00 67', value2: '+971 50 983 8902'}
]}
/>
<ContactContainer
title="Соцсети"
pairData={[
{value1: 'Facebook', value2: 'Instagramm'},
{value1: 'YouTube', value2: 'VK'}
]}
/>
<ContactContainer
title="Адрес"
pairData={[
{value1: 'ул. Московская, 47,'},
{value1: 'Екатеринбург, Россия'}
]}
/>
</div>
</div>
</div>
})
+1 -1
View File
@@ -18,7 +18,7 @@
width: 100%;
height: 100%;
background: url('backgroundImage.svg') 50% 50% no-repeat;
background-size: auto 100%;
background-size: 100% 100%;
}
.main-part-header {