Skip to content

Commit 2c31168

Browse files
authored
Update home (#19)
* Redesign home * Clean up static assets
1 parent c65c443 commit 2c31168

12 files changed

+81
-115
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const config: Config = {
1717
},
1818
],
1919
title: 'Unity Tools for Azure DevOps',
20-
tagline: 'Set up CI/CD for Unity projects powered by Azure Pipelines',
20+
tagline: 'Free and open source. Save time and money by automating your Unity builds and deployments!',
2121
favicon: 'img/favicon.ico',
2222
url: 'https://www.unitydevops.com',
2323
baseUrl: '/',

src/css/custom.css

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,42 @@
2525
--ifm-color-primary-lighter: #3dccff;
2626
--ifm-color-primary-lightest: #3ddbff;
2727
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
28+
}
29+
30+
[data-theme='light'] .button-primary {
31+
background-color: white;
32+
color: black;
33+
}
34+
35+
[data-theme='dark'] .button-primary {
36+
background-color: black;
37+
color: white;
38+
}
39+
40+
[data-theme='light'] .button-secondary {
41+
box-shadow:inset 0px 0px 0px 4px white;
42+
color: white;
43+
}
44+
45+
[data-theme='dark'] .button-secondary {
46+
box-shadow:inset 0px 0px 0px 4px black;
47+
color: black;
48+
}
49+
50+
[data-theme='light'] .hero-title {
51+
color: white;
52+
}
53+
54+
[data-theme='dark'] .hero-title {
55+
color: black;
56+
}
57+
58+
[data-theme='light'] .hero-overlay {
59+
opacity: 80%;
60+
background-image: linear-gradient(to left, #3b3b3b, #000);
61+
}
62+
63+
[data-theme='dark'] .hero-overlay {
64+
opacity: 80%;
65+
background-image: linear-gradient(to left, #999, #aaa);
2866
}

src/pages/home/Feature.tsx

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/pages/home/FeaturesSection.tsx

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/pages/home/HeroBannerSection.tsx

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/pages/home/HeroSection.tsx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import { FunctionComponent } from 'react';
2+
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
3+
import useBaseUrl from '@docusaurus/useBaseUrl';
4+
import Link from '@docusaurus/Link';
5+
import clsx from 'clsx';
6+
7+
const HeroSection: FunctionComponent = () => {
8+
const { siteConfig } = useDocusaurusContext();
9+
10+
return (
11+
<div className='h-screen relative overflow-hidden'>
12+
<div className='relative w-full h-full'>
13+
<img className='w-full h-full object-cover' src='img/home-hero.png' alt='Unity Tools for Azure Devops' />
14+
<div className='absolute left-0 top-0 right-0 bottom-0 hero-overlay'></div>
15+
</div>
16+
17+
<div className="absolute left-0 top-0 right-0 bottom-0 flex justify-center items-center flex-col">
18+
<h1 className="hero__title hero-title">{siteConfig.title}</h1>
19+
<p className="hero__subtitle hero-title">{siteConfig.tagline}</p>
20+
<div className="flex items-center justify-center gap-8">
21+
<Link
22+
className='flex items-center cursor-pointer px-8 py-4 transition-transform hover:drop-shadow-md hover:scale-105 rounded-lg hover:no-underline text-xl font-bold button-primary'
23+
title='Get Started'
24+
to={useBaseUrl('docs/')}>
25+
Get Started
26+
</Link>
27+
<Link
28+
className='flex items-center cursor-pointer px-8 py-4 transition-transform hover:drop-shadow-md hover:scale-105 rounded-lg hover:no-underline text-xl font-bold button-secondary'
29+
title='Tutorials'
30+
to='https://www.youtube.com/@dinomite-tv'>
31+
Tutorials
32+
</Link>
33+
</div>
34+
</div>
35+
</div>
36+
);
37+
}
38+
39+
export default HeroSection;

src/pages/index.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import React from 'react';
22
import Layout from '@theme/Layout';
3-
import FeaturesSection from './home/FeaturesSection';
4-
import HeroBannerSection from './home/HeroBannerSection';
3+
import HeroSection from './home/HeroSection';
54

65
export default function Home(): JSX.Element {
76
return (
8-
<Layout
9-
description="Set up CI/CD for Unity projects powered by Azure Pipelines on Azure DevOps.">
10-
<HeroBannerSection />
7+
<Layout description="Save time and money by automating your Unity builds and deployments!">
118
<main>
12-
<FeaturesSection />
9+
<HeroSection />
1310
</main>
1411
</Layout>
1512
);

static/img/favicon.ico

13.9 KB
Binary file not shown.

static/img/home-hero.png

2.56 MB
Loading

static/img/undraw_dev_productivity_umsq.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)