Skip to content

Commit 4baa5e8

Browse files
committed
Add landing page
1 parent 706eaac commit 4baa5e8

File tree

4 files changed

+25
-8
lines changed

4 files changed

+25
-8
lines changed

docusaurus.config.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import rehypeKatex from 'rehype-katex';
66

77
const config: Config = {
88
title: 'Graphics Programming Discord',
9-
tagline: 'Articles, guides, tips and tricks from and for frogs and forgis of the graphics programming discord',
9+
tagline: 'Articles, guides, tips and tricks from and for frogs and forgis of the graphics programming discord. This is what we do:',
1010
favicon: 'img/favicon.ico',
1111

1212
// Set the production url of your site here
@@ -63,7 +63,7 @@ const config: Config = {
6363
onInlineTags: 'warn',
6464
onInlineAuthors: 'warn',
6565
onUntruncatedBlogPosts: 'warn',
66-
routeBasePath: '/',
66+
//routeBasePath: '/',
6767
blogSidebarCount: 'ALL',
6868
remarkPlugins: [remarkMath],
6969
rehypePlugins: [rehypeKatex],
@@ -91,6 +91,11 @@ const config: Config = {
9191
src: 'img/gp-discord-logo.gif',
9292
},
9393
items: [
94+
{
95+
to: '/blog',
96+
label: 'Blog',
97+
position: 'left'
98+
},
9499
{
95100
type: 'docSidebar',
96101
sidebarId: 'discordServer',

src/pages/index.module.css

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818

1919
.buttons {
2020
display: flex;
21+
flex-direction: column;
2122
align-items: center;
2223
justify-content: center;
2324
}
25+
26+
.buttons > * {
27+
margin:8px;
28+
}

src/pages/index.tsx

+11-5
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,25 @@ import Heading from '@theme/Heading';
88
import styles from './index.module.css';
99

1010
function HomepageHeader() {
11-
const {siteConfig} = useDocusaurusContext();
11+
const { siteConfig } = useDocusaurusContext();
1212
return (
1313
<header className={clsx('hero hero--primary', styles.heroBanner)}>
1414
<div className="container">
1515
<Heading as="h1" className="hero__title">
1616
{siteConfig.title}
1717
</Heading>
18-
<p className="hero__subtitle">{siteConfig.tagline}</p>
18+
<p className="hero__subtitle">Articles, guides, tips and tricks from and for frogs and forgis of the Graphics Programming discord.<br />This is what we do</p>
19+
<iframe width="960" height="520" src="https://www.youtube.com/embed/E07I1VRYlcg?si=PUsHfqq3YKLIp2kS" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
1920
<div className={styles.buttons}>
2021
<Link
21-
className="button button--secondary button--lg"
22+
className="button button--secondary button--lg test"
2223
to="/blog">
23-
Discover our blog
24+
Discover our Blog
25+
</Link>
26+
<Link
27+
className="button button--secondary button--lg test"
28+
to="https://discord.gg/">
29+
Join our Discord Server
2430
</Link>
2531
</div>
2632
</div>
@@ -29,7 +35,7 @@ function HomepageHeader() {
2935
}
3036

3137
export default function Home(): JSX.Element {
32-
const {siteConfig} = useDocusaurusContext();
38+
const { siteConfig } = useDocusaurusContext();
3339
return (
3440
<Layout
3541
title={`Hello from ${siteConfig.title}`}

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"extends": "@docusaurus/tsconfig",
44
"compilerOptions": {
55
"baseUrl": "."
6-
}
6+
},
7+
"exclude": [".docusaurus", "build"]
78
}

0 commit comments

Comments
 (0)