Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ·
1
0
Π€ΠΎΡ€ΠΊΠ½ΡƒΡ‚ΡŒ 0
This commit is contained in:
Sonia Ruiz 2022-03-21 13:54:17 +01:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 26661083dc
ΠšΠΎΠΌΠΌΠΈΡ‚ 748df8b397
2 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 47 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 3 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -3,10 +3,15 @@ import md from 'markdown-it'
const About = ({ title, image, content }) => {
return (
<section className="about">
<h2>{title}</h2>
{/* image */}
<div className="about__content">
<h2 className="about__title">{title}</h2>
{/* TODO: add image */}
<div dangerouslySetInnerHTML={{ __html: md().render(content) }} />
<div
className="about__text"
dangerouslySetInnerHTML={{ __html: md().render(content) }}
/>
</div>
</section>
)
}

ΠŸΡ€ΠΎΡΠΌΠΎΡ‚Ρ€Π΅Ρ‚ΡŒ Ρ„Π°ΠΉΠ»

@ -1,2 +1,41 @@
.about {
min-height: 100vh;
display: flex;
align-items: center;
&__content {
@extend %grid;
}
&__title {
grid-column: 1 / 4;
@extend %header-2;
@media (min-width: $md) {
grid-column: 2 / 7;
}
@media (min-width: $lg) {
grid-column: 3 / 7;
}
}
&__text {
@extend %body-1;
grid-column: 1 / 4;
@media (min-width: $md) {
grid-column: 2 / 7;
}
@media (min-width: $lg) {
grid-column: 8 / 12;
}
p {
margin-bottom: spacing(2);
}
}
}