-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5771ce7
commit 6d4b299
Showing
18 changed files
with
182 additions
and
116 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
export const coreBaseData = { | ||
header: { | ||
main_logo: { | ||
image: 'https://maxboom.ru/image/catalog/Logo/IMG_5735.JPG', | ||
url: '/', | ||
title: 'Интернет-магазин «Maxboom.ru»' | ||
}, | ||
support: { | ||
name: 'Обрантый звонок', | ||
phone_number: '+7 977 848-02-28' | ||
} | ||
}, | ||
footer: { | ||
company_info: 'Интернет-магазин «Maxboom.ru»', | ||
disclaimer: 'Мы не будем присылать вам спам. Только скидки и выгодные предложения', | ||
support_work_time: 'Будни, с 10.00 до 20.00', | ||
main_logo: { | ||
image: 'https://maxboom.ru/image/catalog/Logo/IMG_5735.JPG', | ||
url: '/', | ||
title: 'Интернет-магазин «Maxboom.ru»' | ||
}, | ||
additional_logos: [ | ||
{ | ||
image: 'https://maxboom.ru/image/catalog/demo-prostore/svg-icon/icon-payments-visa.svg', | ||
url: '//visa.ru', | ||
title: 'visa' | ||
}, | ||
{ | ||
image: 'https://maxboom.ru/image/catalog/demo-prostore/svg-icon/icon-payments-mastercard.svg', | ||
url: '//mastercard.ru', | ||
title: 'mastercard' | ||
}, | ||
{ | ||
image: 'https://maxboom.ru/image/catalog/demo-prostore/svg-icon/mir-logo-h14px.svg', | ||
url: '//mironline.ru', | ||
title: 'мир' | ||
}, | ||
{ | ||
image: 'https://maxboom.ru/image/catalog/demo-prostore/svg-icon/icons8-webmoney-25.svg', | ||
url: '//webmoney.ru', | ||
title: 'webmoney' | ||
}, | ||
{ | ||
image: 'https://maxboom.ru/image/catalog/demo-prostore/svg-icon/io.svg', | ||
url: '//yoomoney.ru', | ||
title: 'yoomoney' | ||
} | ||
], | ||
support: { | ||
name: 'Обрантый звонок', | ||
phone_number: '+7 977 848-02-28' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { FC } from 'react' | ||
import styles from './logo.module.scss' | ||
import Link from '@/shared/ui/Link/Link' | ||
|
||
type TLogoProps = { | ||
image: string | ||
title: string | ||
url: string | ||
width: string | ||
height: string | ||
} | ||
/** | ||
* @param {string} image - путь к логотипу на сервере | ||
* @param {string} title - лейбл логотипа (и альт) | ||
* @param {string} url - путь ссылки по нажатию на логотип | ||
* @param {string} width - ширина логотипа | ||
* @param {string} height - высота логотипа | ||
*/ | ||
|
||
const Logo: FC<TLogoProps> = ({ image, title, url, width, height }) => { | ||
return ( | ||
<div className={`${styles.container}`}> | ||
<Link to={url} className={styles.link}> | ||
<img src={image} title={title} alt={title} style={{ width, height }} /> | ||
</Link> | ||
</div> | ||
) | ||
} | ||
|
||
export default Logo |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import { coreBaseData } from '@/mockData/coreBaseData' | ||
import Logo from '@/shared/ui/logo/Logo' | ||
import Link from '@/shared/ui/Link/Link' | ||
import SubscribeForm from '@/entities/SubscribeForm/SubscribeForm' | ||
import styles from './footer.module.scss' | ||
|
||
console.log(coreBaseData.footer) | ||
|
||
function Footer() { | ||
const onSubmitHandler = () => {} | ||
return ( | ||
<footer className={styles.footer}> | ||
<div className={styles.footer__container}> | ||
<div className={styles.footer__middle}> | ||
<div className={styles['footer__col-one']}> | ||
<Logo | ||
image={coreBaseData.footer.main_logo.image} | ||
title={coreBaseData.footer.main_logo.title} | ||
url={coreBaseData.footer.main_logo.url} | ||
width="114px" | ||
height="38px" | ||
/> | ||
<p className={styles.footer__caption}>{coreBaseData.footer.company_info}</p> | ||
</div> | ||
<div className={styles['footer__col-two']}> | ||
<SubscribeForm type="footer" onSubmit={onSubmitHandler}></SubscribeForm> | ||
</div> | ||
<div className={styles['footer__col-three']}> | ||
<p className={styles['footer__support-text']}>Поддержка</p> | ||
<div className={styles.footer__wrapper}> | ||
<ul className={styles.footer__nav}> | ||
<li className={styles.footer__phone}> | ||
<Link to={''} className={styles.footer__link}> | ||
{coreBaseData.footer.support.phone_number} | ||
</Link> | ||
</li> | ||
<li className={styles.footer__item}> | ||
<Link to={''} className={styles.footer__link}> | ||
{coreBaseData.footer.support.name} | ||
</Link> | ||
</li> | ||
</ul> | ||
<p className={styles.footer__hours}>{coreBaseData.footer.support_work_time}</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={styles.footer__bottom}> | ||
<div className={styles['footer__bottom-wrapper']}> | ||
<p className={styles.footer__copyright}> | ||
Created by{' '} | ||
<Link to={''} className={styles['footer__copyright-link']}> | ||
maxboom.ru | ||
</Link> | ||
</p> | ||
<ul className={styles.footer__payments}> | ||
{coreBaseData.footer.additional_logos.map(logo => ( | ||
<li className={styles['footer__payment-nav']} key={logo.title}> | ||
<Link to={logo.url} className={styles['footer__payment-item']}> | ||
<img | ||
className={styles['footer__payment-icon']} | ||
src={logo.image} | ||
title={logo.title} | ||
alt={logo.title} | ||
/> | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
) | ||
} | ||
|
||
export default Footer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters