Skip to content

Commit

Permalink
Remove footer. Remove feature in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaika9 committed Jun 3, 2024
1 parent 651ba8a commit a2c855c
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 23 deletions.
6 changes: 0 additions & 6 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ const config: Config = {
},
],
},
footer: {
style: 'dark',
links: [
],
copyright: `Copyright © ${new Date().getFullYear()} Paladium`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
Expand Down
11 changes: 11 additions & 0 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@ html[data-theme='dark'] code {

.menu__link--active:not(.menu__link--sublist) {
background-color: var(--ifm-color-primary-transparent);
}

.hero--primary {
--ifm-hero-text-color: rgb(255, 255, 255) !important;
background-image:
linear-gradient(rgba(0, 0, 0, 0.1),
rgba(0, 0, 0, 0.65)),
url("../../static/img/hero-boss.png") !important;
background-repeat: no-repeat;
background-size: cover;
background-position: center center;
}
7 changes: 1 addition & 6 deletions src/pages/index.module.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
/**
* CSS files with the .module.css suffix will be treated as CSS modules
* and scoped locally.
*/

.heroBanner {
padding: 4rem 0;
text-align: center;
Expand All @@ -20,4 +15,4 @@
display: flex;
align-items: center;
justify-content: center;
}
}
18 changes: 7 additions & 11 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ 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() {
function HomePageHeader() {
const {siteConfig} = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
Expand All @@ -18,9 +17,9 @@ function HomepageHeader() {
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min ⏱️
className="button button--outline button--secondary button--lg"
to="/docs/about">
Accéder au Wiki
</Link>
</div>
</div>
Expand All @@ -32,12 +31,9 @@ export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
return (
<Layout
title={`Hello from ${siteConfig.title}`}
description="Description will go into a meta tag in <head />">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
title={siteConfig.title}
description="Bienvenue sur le wiki communautaire de Paladium Bedrock.">
<HomePageHeader />
</Layout>
);
}
Binary file added static/img/hero-boss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a2c855c

Please sign in to comment.