mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:09:45 +00:00
Footer
This commit is contained in:
1 parent
fb6c40f280
commit
6ac4d14e8b
11 files changed
+119
-1
No files matched your search
@@ -0,0 +1,42 @@
|
||||
import FooterLink from './FooterLink';
|
||||
import { scb as logo } from '../../images';
|
||||
import { iconIctis, iconSfedu, iconVK } from '../../images/footer';
|
||||
import './Footer.styles.scss';
|
||||
import FooterContacts from './FooterContacts';
|
||||
|
||||
const mockLinks = [
|
||||
{
|
||||
icon: iconIctis,
|
||||
to: "https://ictis.sfedu.ru",
|
||||
},
|
||||
{
|
||||
icon: iconSfedu,
|
||||
to: "https://sfedu.ru",
|
||||
},
|
||||
{
|
||||
icon: iconVK,
|
||||
to: "https://vk.com/skbkit",
|
||||
},
|
||||
];
|
||||
|
||||
const mockContacts = {
|
||||
email: "skb@sfedu.ru",
|
||||
address: "г. Таганрог, пер. Тургеневский, 44",
|
||||
phone: "+7 (911) 8888-88-88",
|
||||
};
|
||||
|
||||
function Footer({ links = mockLinks, contacts = mockContacts }) {
|
||||
return (
|
||||
<footer className="footer">
|
||||
<div className="logo-container">
|
||||
<img className="logo" alt="logo" src={ logo } />
|
||||
</div>
|
||||
<FooterContacts contacts={ contacts } />
|
||||
<div className="links">
|
||||
{ links.map(link => <FooterLink link={link} />) }
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
}
|
||||
|
||||
export default Footer;
|
||||
@@ -0,0 +1,46 @@
|
||||
.footer {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
height: 242px;
|
||||
padding: 0 10%;
|
||||
background: #222222;
|
||||
|
||||
.logo-container {
|
||||
height: 90px;
|
||||
max-width: 30%;
|
||||
|
||||
.logo {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.contacts {
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
font-weight: 400;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
.links {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
|
||||
.link {
|
||||
display: flex;
|
||||
|
||||
width: 40px;
|
||||
aspect-ratio: 1;
|
||||
border-radius: 100%;
|
||||
background-color: white;
|
||||
|
||||
.icon {
|
||||
width: 80%;
|
||||
height: 80%;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
function FooterContacts({ contacts }) {
|
||||
return (
|
||||
<div className="contacts">
|
||||
<p>{ contacts.email }</p>
|
||||
<p>{ contacts.address }</p>
|
||||
<p>{ contacts.phone }</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default FooterContacts;
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Link } from "react-router-dom";
|
||||
|
||||
function FooterLink({ link }) {
|
||||
return (
|
||||
<Link to={ link.to } className="link">
|
||||
<img src={ link.icon } alt='icon' className='icon'/>
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
export default FooterLink;
|
||||
@@ -0,0 +1 @@
|
||||
export { default } from './Footer';
|
||||
Reference in new issue
Block a user