Skip to content

Commit

Permalink
Merge pull request #1 from MinecraftCitiesNetwork/theme-and-branding
Browse files Browse the repository at this point in the history
Theme and branding
  • Loading branch information
MinecraftCitiesNetwork authored Oct 12, 2023
2 parents d45b22a + 14e332b commit 3cec509
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 424 deletions.
30 changes: 15 additions & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'My Site',
tagline: 'Dinosaurs are cool',
title: 'DemocracyCraft',
tagline: 'Build a democracy, conquer the markets!',
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://your-docusaurus-test-site.com',
url: 'https://wiki.democracycraft.net',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name.
organizationName: 'MinecraftCitiesNetwork', // Usually your GitHub org/user name.
projectName: 'democracycraft-wiki', // Usually your repo name.

onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
Expand All @@ -42,14 +42,14 @@ const config = {
// 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/',
'https://github.com/MinecraftCitiesNetwork/democracycraft-wiki/',
},
blog: {
showReadingTime: 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/',
'https://github.com/MinecraftCitiesNetwork/democracycraft-wiki/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand All @@ -64,7 +64,7 @@ const config = {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
navbar: {
title: 'My Site',
title: 'DemocracyCraft',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
Expand All @@ -78,7 +78,7 @@ const config = {
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/MinecraftCitiesNetwork/democracycraft-wiki/',
label: 'GitHub',
position: 'right',
},
Expand All @@ -100,16 +100,16 @@ const config = {
title: 'Community',
items: [
{
label: 'Stack Overflow',
href: 'https://stackoverflow.com/questions/tagged/docusaurus',
label: 'Forums',
href: 'https://www.democracycraft.net',
},
{
label: 'Discord',
href: 'https://discordapp.com/invite/docusaurus',
href: 'https://discord.gg/democracy',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
href: 'https://twitter.com/democracycraft',
},
],
},
Expand All @@ -122,12 +122,12 @@ const config = {
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
href: 'https://github.com/MinecraftCitiesNetwork/democracycraft-wiki/'',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
copyright: `Copyright © ${new Date().getFullYear()} DemocracyCraft`,
},
prism: {
theme: lightCodeTheme,
Expand Down
24 changes: 12 additions & 12 deletions src/components/HomepageFeatures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,32 @@ import styles from './styles.module.css';

const FeatureList = [
{
title: 'Easy to Use',
Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default,
title: 'Find Job Guides',
Svg: require('@site/static/img/Fa-Team-Fontawesome-FontAwesome-Book-Bookmark.svg').default,
description: (
<>
Docusaurus was designed from the ground up to be easily installed and
used to get your website up and running quickly.
This wiki contains everything you need to know about in game jobs!
No more guess-work, read the relevant guide here and take the exam. :)
</>
),
},
{
title: 'Focus on What Matters',
Svg: require('@site/static/img/undraw_docusaurus_tree.svg').default,
title: 'Tips and Tricks',
Svg: require('@site/static/img/Fa-Team-Fontawesome-FontAwesome-Lightbulb.svg').default,
description: (
<>
Docusaurus lets you focus on your docs, and we&apos;ll do the chores. Go
ahead and move your docs into the <code>docs</code> directory.
Learn about popular ways of making money, vital server features and
more all from the comfort of this wiki.
</>
),
},
{
title: 'Powered by React',
Svg: require('@site/static/img/undraw_docusaurus_react.svg').default,
title: 'Learn about server history',
Svg: require('@site/static/img/Fa-Team-Fontawesome-FontAwesome-Clock.svg').default,
description: (
<>
Extend or customize your website layout by reusing React. Docusaurus can
be extended while reusing the same header and footer.
With over three years under our belt, this server has been through
many periods of change and growth. You can learn all about that here!
</>
),
},
Expand Down
28 changes: 14 additions & 14 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@

/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #2e8555;
--ifm-color-primary-dark: #29784c;
--ifm-color-primary-darker: #277148;
--ifm-color-primary-darkest: #205d3b;
--ifm-color-primary-light: #33925d;
--ifm-color-primary-lighter: #359962;
--ifm-color-primary-lightest: #3cad6e;
--ifm-color-primary: #2e55a8; /* Blue primary color */
--ifm-color-primary-dark: #295084; /* Darker blue */
--ifm-color-primary-darker: #1e4a81; /* Even darker blue */
--ifm-color-primary-darkest: #1a3b5d; /* Darkest blue */
--ifm-color-primary-light: #3d67a9; /* Light blue */
--ifm-color-primary-lighter: #4e7cb4; /* Lighter blue */
--ifm-color-primary-lightest: #6e9ecd; /* Lightest blue */
--ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
[data-theme='dark'] {
--ifm-color-primary: #25c2a0;
--ifm-color-primary-dark: #21af90;
--ifm-color-primary-darker: #1fa588;
--ifm-color-primary-darkest: #1a8870;
--ifm-color-primary-light: #29d5b0;
--ifm-color-primary-lighter: #32d8b4;
--ifm-color-primary-lightest: #4fddbf;
--ifm-color-primary: #25a0c2; /* Dark mode primary color */
--ifm-color-primary-dark: #2190af; /* Darker blue in dark mode */
--ifm-color-primary-darker: #1885a5; /* Even darker blue in dark mode */
--ifm-color-primary-darkest: #18708a; /* Darkest blue in dark mode */
--ifm-color-primary-light: #1fb0d5; /* Light blue in dark mode */
--ifm-color-primary-lighter: #24b4d8; /* Lighter blue in dark mode */
--ifm-color-primary-lightest: #3bbfdf; /* Lightest blue in dark mode */
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}
2 changes: 1 addition & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function HomepageHeader() {
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min ⏱️
Quick Tutorial - 5min ⏱️
</Link>
</div>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/Fa-Team-Fontawesome-FontAwesome-Clock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/img/Fa-Team-Fontawesome-FontAwesome-Lightbulb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/democracycraft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/docusaurus-social-card.jpg
Binary file not shown.
Binary file removed static/img/docusaurus.png
Binary file not shown.
Binary file modified static/img/favicon.ico
Binary file not shown.
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.
Loading

0 comments on commit 3cec509

Please sign in to comment.