Add In Action section to the home screen

This commit is contained in:
Bill Thornton
2022-09-02 09:49:22 -04:00
parent bdb9aa147a
commit 93805b0ad3
6 changed files with 73 additions and 0 deletions
+71
View File
@@ -0,0 +1,71 @@
import React from 'react';
import { Navigation } from 'swiper';
import { Swiper, SwiperSlide } from 'swiper/react';
import HomeImageUrl from '../../../static/images/screenshots/home/10.8-home.png';
import LibraryImageUrl from '../../../static/images/screenshots/home/10.8-library.png';
import DetailsImageUrl from '../../../static/images/screenshots/home/10.8-details.png';
import PlaybackImageUrl from '../../../static/images/screenshots/home/10.8-playback.png';
import 'swiper/css';
import 'swiper/css/navigation';
import landingSectionStyles from './LandingSection.module.css';
import clsx from 'clsx';
const screenshots = [
{
title: 'Home Screen',
url: HomeImageUrl,
alt: 'Jellyfin Home Screen'
},
{
title: 'Movie Library Screen',
url: LibraryImageUrl,
alt: 'Jellyfin Movie Library Screen'
},
{
title: 'Movie Details Screen',
url: DetailsImageUrl,
alt: 'Jellyfin Movie Details Screen'
},
{
title: 'Video Playback Screen',
url: PlaybackImageUrl,
alt: 'Jellyfin Video Playback Screen'
}
];
export default function InActionSection() {
return (
<section className={clsx(landingSectionStyles['landing-section'], 'padding-vert--xl')}>
<div className='container'>
<div className='row'>
<div className='col'>
<h2 className='text--center'>See Jellyfin in Action</h2>
</div>
</div>
<div className='row row--center'>
<div className='col col--10 padding--none'>
<Swiper navigation modules={[Navigation]}>
{screenshots.map(({ title, url, alt }) => (
<SwiperSlide key={`slide-${title}`}>
<img src={url} alt={alt} />
<div className='text--center'>
<small>{title}</small>
</div>
</SwiperSlide>
))}
</Swiper>
</div>
</div>
<div className='row'>
<div className='col margin-top--md text--center'>
<a href='https://demo.jellyfin.org/stable' className='button button--outline button--secondary'>
Try the Demo
</a>
</div>
</div>
</div>
</section>
);
}
+2
View File
@@ -8,6 +8,7 @@ import BuiltByVolunteers from '../components/home/BuiltByVolunteers';
import ClientSection from '../components/home/ClientSection';
import CallToAction from '../components/home/CallToAction';
import Hero from '../components/common/Hero';
import InActionSection from '../components/home/InActionSection';
export default function Home() {
return (
@@ -32,6 +33,7 @@ export default function Home() {
<main>
<HomepageFeatures />
<ClientSection />
<InActionSection />
<FreeSoftware />
<BuiltByVolunteers />
<CallToAction />
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB