Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework landing page #25

Merged
merged 15 commits into from
Mar 26, 2024
48 changes: 6 additions & 42 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const docsConfigBase = {
} satisfies DocsPlugin.Options;

const config: Config = {
title: 'THEOplayer Documentation',
tagline: 'Your one-stop shop for everything THEOplayer.',
title: 'THEOdocs',
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
tagline: 'Discover the latest developer documentation and samples for THEOplayer, Open Video UI and THEOlive.',
favicon: 'img/favicon.ico',

// Set the production url of your site here
Expand Down Expand Up @@ -219,9 +219,9 @@ const config: Config = {
}
: undefined,
navbar: {
title: 'Docs',
title: null,
logo: {
alt: 'THEO',
alt: 'THEOdocs',
src: 'img/logo.svg',
srcDark: 'img/logo_dark.svg',
},
Expand Down Expand Up @@ -253,44 +253,8 @@ const config: Config = {
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'THEOplayer',
to: '/theoplayer/',
},
{
label: 'Open Video UI',
to: '/open-video-ui/',
},
{
label: 'THEOlive',
href: 'https://developers.theo.live/',
},
],
},
{
title: 'More',
items: [
{
label: 'theoplayer.com',
href: 'https://www.theoplayer.com/',
},
{
label: 'GitHub',
href: 'https://github.com/THEOplayer',
},
{
label: 'LinkedIn',
href: 'https://www.linkedin.com/company/theoplayer/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} THEO Technologies`,
style: 'light',
copyright: `Copyright © ${new Date().getFullYear()} <a href="https://www.theoplayer.com/">THEO Technologies</a>`,
},
prism: {
theme: prismThemes.oneLight,
Expand Down
41 changes: 26 additions & 15 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ const FeatureList: FeatureItem[] = [
}}
/>
),
description: <>Empowering the world's leading media and entertainment companies to deliver cutting-edge video, efficiently and on any device.</>,
description: (
<>
Deploy cutting-edge video playback experiences, efficiently and on any device, including on web, mobile, smart TVs, set-top-boxes and gaming
consoles.
</>
),
to: '/theoplayer',
},
{
Expand All @@ -39,10 +44,7 @@ const FeatureList: FeatureItem[] = [
/>
),
description: (
<>
A comprehensive library of open-source UI components, making it easier to build and customize your video player UI to match your branding
style.
</>
<>Easily build and customize your video player UI to match your branding style through a comprehensive library of open-source UI components.</>
),
to: '/open-video-ui',
},
Expand All @@ -57,22 +59,31 @@ const FeatureList: FeatureItem[] = [
}}
/>
),
description: <>High-quality real-time video at scale for providers of sports betting, iGaming and interactive entertainment.</>,
description: (
<>
Stream real-time to any audience size with the best quality of experience, whether it’s for sports betting, iGaming or interactive
entertainment.
</>
),
to: 'https://developers.theo.live/',
},
];

function Feature({ title, Image, description, to }: FeatureItem) {
return (
<div className={clsx('col col--4')}>
<div className={clsx('text--center', styles.featureHeading)}>
<Image className={styles.featureImage} title={title} />
</div>
<div className="text--center padding-horiz--md">
<p>{description}</p>
<Link className="button button--secondary button--lg" to={to}>
Get started
</Link>
<div className={clsx('col col--4 margin-vert--md')}>
<div className={clsx('card padding--lg margin-horiz--sm', styles.featureCard)}>
<div className={clsx('card__header text--center', styles.featureHeading)}>
<Image className={styles.featureImage} alt={title} />
</div>
<div className="card__body text--center">
<p>{description}</p>
</div>
<div className="card__footer text--center">
<Link className="button button--secondary button--lg" to={to}>
Get started
</Link>
</div>
</div>
</div>
);
Expand Down
6 changes: 6 additions & 0 deletions src/components/HomepageFeatures/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
width: 100%;
}

.featureCard {
height: 100%;
box-shadow: 0 1.5px 3px 0 rgb(0 0 0 / 15%);
border: 1px solid var(--ifm-color-emphasis-200);
}

.featureHeading {
line-height: 0;
}
Expand Down
4 changes: 4 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,7 @@
--ifm-hero-background-color: #445f6e;
--ifm-hero-text-color: var(--ifm-font-color-base);
}

.footer a {
--ifm-link-color: var(--ifm-footer-link-color);
}
6 changes: 6 additions & 0 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
background-size: contain;
}

.heroSubtitle {
max-width: calc(min(30em, 100vw));
margin: 0 auto;
text-wrap: balance;
}

@media screen and (max-width: 996px) {
.heroBanner {
padding: 1.5rem;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function HomepageHeader() {
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<p className={clsx("hero__subtitle", styles.heroSubtitle)}>{siteConfig.tagline}</p>
</div>
</header>
);
Expand Down
2 changes: 1 addition & 1 deletion static/img/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion static/img/logo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading