fix: resize and rearrange hero landing illustrations for laptop screens

This commit is contained in:
2026-09-06 11:08:13 +03:30
parent 8699b52a94
commit 67202d5323
3 changed files with 199 additions and 92 deletions

View File

@@ -3,14 +3,40 @@
import React from 'react';
import { HeroSection } from './HeroSection';
import { RiverJourney } from './RiverJourney';
import { HeroLandscapeScene } from './scenes/HeroLandscapeScene';
import styles from './ScenicHeroJourney.module.css';
type BackdropImgProps = {
name: 'left' | 'right' | 'sun';
className: string;
};
function BackdropImg({ name, className }: BackdropImgProps) {
return (
<img
src={`/assets/bg-illustrations/${name}.svg`}
alt=""
aria-hidden="true"
draggable={false}
className={className}
/>
);
}
function HeroBackdrop() {
return (
<div className={styles.heroBackdrop} aria-hidden="true">
<BackdropImg name="left" className={styles.backdropLeft} />
<BackdropImg name="right" className={styles.backdropRight} />
<BackdropImg name="sun" className={styles.backdropSun} />
</div>
);
}
export const ScenicHeroJourney: React.FC = () => {
return (
<div className={styles.scenicContainer}>
<section className={styles.heroStage} aria-label="Introduction">
<HeroLandscapeScene />
<HeroBackdrop />
<HeroSection />
</section>