updated title and other layout changes

This commit is contained in:
tmshv committed 2021-02-17 17:46:22 +03:00
1 parent 9d31f30199
commit a35cd38bd9
3 files changed
+28 -30

No files matched your search

+2 -1
View File
@@ -27,7 +27,8 @@ const Index: NextPage<Props> = props => (
<HudozkaTitle
style={{
marginBottom: 'var(--size-l)'
marginTop: 'var(--size-m)',
marginBottom: 'var(--size-m)',
}}
/>
+7 -29
View File
@@ -1,3 +1,5 @@
import s from './title.module.css'
import { memo } from 'react'
export type HudozkaTitleProps = {
@@ -5,33 +7,9 @@ export type HudozkaTitleProps = {
}
export const HudozkaTitle: React.FC<HudozkaTitleProps> = memo(props => (
<div style={props.style}>
<style jsx>{`
div {
text-align: center;
}
h1 span {
font-size: var(--font-size-h2);
}
@media (max-width: 31.25em) {
div {
--padding: 0 0 2em;
}
}
`}</style>
<h1>
<span style={{
display: 'block',
marginBottom: 24,
}}>МБУДО</span>
Шлиссельбургская <br />
<span>
детская художественная школа
</span>
</h1>
</div>
<h1 style={props.style} className={s.title}>
<span className={s.prefix}>МБУДО</span>
Шлиссельбургская <br />
<span className={s.suffix}>детская художественная школа</span>
</h1>
))
@@ -0,0 +1,19 @@
.title {
text-align: center;
}
.title .suffix {
font-size: var(--font-size-h2);
}
.prefix {
font-size: var(--font-size-h2);
display: block;
margin-bottom: var(--size-s);
}
@media (max-width: 31.25em) {
.title {
--padding: 0 0 2em;
}
}