update
This commit is contained in:
1 parent
f899f75780
commit
73566d3aca
10 files changed
+92
-51
No files matched your search
@@ -1,8 +0,0 @@
|
||||
export const Author: React.FC = () => (
|
||||
<span>
|
||||
Разработка и поддержка сайта —
|
||||
<a href="http://tmshv.ru?utm_source=artshburg&utm_medium=developer&utm_campaign=tmshv_ru">
|
||||
www.tmshv.ru
|
||||
</a>
|
||||
</span>
|
||||
)
|
||||
@@ -7,4 +7,3 @@
|
||||
border-top-left-radius: var(--radius);
|
||||
border-top-right-radius: var(--radius);
|
||||
}
|
||||
|
||||
@@ -1,46 +1,12 @@
|
||||
import s from "./footer.module.css"
|
||||
|
||||
import cx from "classnames"
|
||||
import { Copyright } from "../Copyright"
|
||||
import { Author } from "./Author"
|
||||
import { Spacer } from "../Spacer"
|
||||
import { Contacts } from "../Contacts"
|
||||
import { Box } from "@/ui/Box"
|
||||
import { Panel } from "@/ui/Panel"
|
||||
|
||||
export type FooterProps = {
|
||||
showAuthor: boolean
|
||||
children?: React.ReactNode
|
||||
}
|
||||
|
||||
export const Footer: React.FC<FooterProps> = ({ showAuthor, children }) => (
|
||||
<footer className={cx(s.footer, "opposite")}>
|
||||
<Box>
|
||||
<Box vertical align={false} style={{
|
||||
marginBottom: "var(--size-l)",
|
||||
}}>
|
||||
<Contacts />
|
||||
</Box>
|
||||
|
||||
<Panel style={{
|
||||
marginBottom: "var(--size-l)",
|
||||
}}>
|
||||
<Contacts />
|
||||
</Panel>
|
||||
</Box>
|
||||
|
||||
export const Footer: React.FC<FooterProps> = ({ children }) => (
|
||||
<footer className={`${s.footer} opposite`}>
|
||||
{children}
|
||||
|
||||
<Box>
|
||||
<Copyright />
|
||||
|
||||
{!showAuthor ? null : (
|
||||
<>
|
||||
<Spacer as={"span"} />
|
||||
<Author />
|
||||
</>
|
||||
)}
|
||||
</Box>
|
||||
</footer >
|
||||
</footer>
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user