Π·Π΅Ρ€ΠΊΠ°Π»ΠΎ ΠΈΠ·
1
0
Π€ΠΎΡ€ΠΊΠ½ΡƒΡ‚ΡŒ 0
This commit is contained in:
Sonia Ruiz 2022-04-13 20:57:05 +02:00
Π ΠΎΠ΄ΠΈΡ‚Π΅Π»ΡŒ 070aac2096
ΠšΠΎΠΌΠΌΠΈΡ‚ 1938151f0e
6 ΠΈΠ·ΠΌΠ΅Π½Ρ‘Π½Π½Ρ‹Ρ… Ρ„Π°ΠΉΠ»ΠΎΠ²: 46 Π΄ΠΎΠ±Π°Π²Π»Π΅Π½ΠΈΠΉ ΠΈ 5 ΡƒΠ΄Π°Π»Π΅Π½ΠΈΠΉ

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

@ -74,6 +74,7 @@ const Header = () => {
className={clsx('header__link', {
['is-active']: pathname === ROUTES.SCHEDULE.path,
})}
aria-label={getLiteral('navigation:schedule')}
>
<IconCalendar />
<span className="header__link-text">
@ -91,6 +92,7 @@ const Header = () => {
className={clsx('header__link', {
['is-active']: pathname === ROUTES.LIBRARY.path,
})}
aria-label={getLiteral('navigation:library')}
>
<IconBooks />
<span className="header__link-text">

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

@ -1,19 +1,40 @@
/* eslint-disable @next/next/no-img-element */
import { useRef } from 'react'
import md from 'markdown-it'
import { getLiteral } from '../../../common/i18n'
import useParallax from '../../../hooks/useParallax'
const About = ({ title, content }) => {
const image1 = useRef(null)
const image2 = useRef(null)
const { translateY: image1TranslateY } = useParallax(image1, 0.01)
const { translateY: image2TranslateY } = useParallax(image2, 0.05)
return (
<section className="about">
<div className="about__content">
<div className="about__column">
<h2 className="about__title">{title}</h2>
<img
className="about__image"
src={'/images/maintainer-detail.png'}
alt={getLiteral('hero:image-description')}
/>
<div className="about__images">
<img
ref={image1}
style={{ transform: `translateY(-${image1TranslateY}px)` }}
className="about__image"
src={'/images/about1.png'}
alt={getLiteral('hero:image-description')}
/>
<img
ref={image2}
style={{ transform: `translateY(-${image2TranslateY}px)` }}
className="about__image--layer"
src={'/images/about2.png'}
alt={getLiteral('hero:image-description')}
/>
</div>
</div>
<div

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

@ -53,14 +53,32 @@
}
}
&__images {
position: relative;
}
&__image {
position: relative;
top: 0;
left: 0;
max-width: 100%;
max-height: calc(var(--vh, 1vh) * 100);
transition: transform 1s $bezier-default;
@media (min-width: $lg) {
width: 100%;
max-width: 360px;
}
&--layer {
position: absolute;
top: 0;
left: 0;
width: 100%;
transition: transform 1s $bezier-default;
}
}
&__text {

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
public/images/about1.png Normal file

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

ПослС

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 99 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
public/images/about2.png Normal file

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

ПослС

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 24 KiB

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹Π΅ Π΄Π°Π½Π½Ρ‹Π΅
public/images/maintainer-detail.png

Π”Π²ΠΎΠΈΡ‡Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ» Π½Π΅ отобраТаСтся.

Π”ΠΎ

Π¨ΠΈΡ€ΠΈΠ½Π°:  |  Высота:  |  Π Π°Π·ΠΌΠ΅Ρ€: 134 KiB