Skip to content

Commit

Permalink
cleanup / basic setup
Browse files Browse the repository at this point in the history
  • Loading branch information
CrawlingTug committed Sep 2, 2024
1 parent 41b518f commit d74821e
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 169 deletions.
67 changes: 8 additions & 59 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,16 @@ const config: Config = {
{
docs: {
sidebarPath: "./sidebars.ts",
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
"https://github.com/gommehdnet/citybuild-wiki/edit/main/",
editUrl: "https://github.com/gommehdnet/citybuild-wiki/edit/main/",
},
blog: {
showReadingTime: true,
feedOptions: {
type: ["rss", "atom"],
xslt: true,
},
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/",
// Useful options to enforce blogging best practices
"https://github.com/gommehdnet/citybuild-wiki/tree/main/packages/create-docusaurus/templates/shared/",
onInlineTags: "warn",
onInlineAuthors: "warn",
onUntruncatedBlogPosts: "warn",
Expand All @@ -63,7 +57,6 @@ const config: Config = {
],

themeConfig: {
// Replace with your project's social card
image: "img/docusaurus-social-card.jpg",
navbar: {
title: "GommeHD.net CityBuild Wiki",
Expand All @@ -76,66 +69,22 @@ const config: Config = {
type: "docSidebar",
sidebarId: "tutorialSidebar",
position: "left",
label: "Tutorial",
label: "Get Started",
},
{
to: "/",
label: "Hier könnte Ihre Werbung stehen",
to: "https://gommehd.net",
label: "GommeHD.net",
position: "left",
},
{
/*{
type: "localeDropdown",
position: "right",
},
}, add to enable language switcher*/
],
},
footer: {
style: "dark",
links: [
{
title: "Wiki",
items: [
{
label: "Tutorial",
to: "/docs/intro",
},
],
},
{
title: "Community",
items: [
{
label: "YouTube",
href: "https://youtube.com/GommeHDnet",
},
{
label: "Discord",
href: "https://discord.gg/gommehdnet",
},
{
label: "X",
href: "https://x.com/gommehdnet",
},
{
label: "TikTok",
href: "https://tiktok.com/@gommehdnet",
},
],
},
{
title: "Mehr",
items: [
{
label: "Extra Link",
to: "/",
},
{
label: "Hauptseite",
href: "https://gommehd.net",
},
],
},
],
links: [],
copyright: `Copyright © ${new Date().getFullYear()} GommeHD.net. Gemacht mit Docusaurus.`,
},
prism: {
Expand Down
67 changes: 0 additions & 67 deletions src/components/HomepageFeatures/index.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions src/components/HomepageFeatures/styles.module.css

This file was deleted.

21 changes: 21 additions & 0 deletions src/components/LandingPage/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from "react";
import clsx from "clsx";
import styles from "./styles.module.css";

export default function HomepageMinimal(): JSX.Element {
return (
<div className={clsx("container", styles.centerContent)}>
<div className="text--center">
<img
src={require("./placeholder.png").default}
alt="Placeholder Image"
className={styles.image}
/>
</div>
<div className="text--center">
<h1>CityBuild Wiki</h1>
<p>Deine Guide für CityBuild.</p>
</div>
</div>
);
}
Binary file added src/components/LandingPage/placeholder.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/components/LandingPage/styles.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.centerContent {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}

.image {
max-width: 100%;
height: auto;
}
34 changes: 2 additions & 32 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,6 @@
import clsx from "clsx";
import Link from "@docusaurus/Link";
import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import Layout from "@theme/Layout";
import HomepageFeatures from "@site/src/components/HomepageFeatures";
import Heading from "@theme/Heading";

import styles from "./index.module.css";

function HomepageHeader() {
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx("hero hero--primary", styles.heroBanner)}>
<div className="container">
<Heading as="h1" className="hero__title">
{siteConfig.title}
</Heading>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro"
>
Docusaurus Tutorial - 5min ⏱️
</Link>
</div>
</div>
</header>
);
}
import LandingPage from "@site/src/components/LandingPage";

export default function Home(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
Expand All @@ -36,10 +9,7 @@ export default function Home(): JSX.Element {
title={`${siteConfig.title}`}
description="CityBuild Wiki von GommeHD.net"
>
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
<LandingPage />
</Layout>
);
}

0 comments on commit d74821e

Please sign in to comment.