diff --git a/pages/index.tsx b/pages/index.tsx index 1e207fbd..da78e66b 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -27,7 +27,8 @@ const Index: NextPage = props => ( diff --git a/src/components/HudozkaTitle/index.tsx b/src/components/HudozkaTitle/index.tsx index 5450401b..363954c0 100644 --- a/src/components/HudozkaTitle/index.tsx +++ b/src/components/HudozkaTitle/index.tsx @@ -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 = memo(props => ( -
- - -

- МБУДО - - Шлиссельбургская
- - детская художественная школа - -

-
+

+ МБУДО + Шлиссельбургская
+ детская художественная школа +

)) diff --git a/src/components/HudozkaTitle/title.module.css b/src/components/HudozkaTitle/title.module.css new file mode 100644 index 00000000..eaa1051a --- /dev/null +++ b/src/components/HudozkaTitle/title.module.css @@ -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; + } +}