Skip to content

Commit

Permalink
Add Thoxia branding
Browse files Browse the repository at this point in the history
  • Loading branch information
efekurbann committed Sep 4, 2024
1 parent f9d12fd commit 3953cc4
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 27 deletions.
12 changes: 10 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ export default defineConfig({
site: "https://docs.thoxia.com",
integrations: [
starlight({
title: "My Docs",
title: "THOXIA",
logo: {
src: "./src/assets/thoxia.webp",
replacesTitle: false,
},
customCss: [
// Relative path to your custom CSS file
"./src/styles/thoxia.css",
],
social: {
github: "https://github.com/withastro/starlight",
github: "https://github.com/Thoxia",
},
sidebar: [
{
Expand Down
Binary file added src/assets/thoxia.gif
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 src/assets/thoxia.webp
Binary file not shown.
38 changes: 13 additions & 25 deletions src/content/docs/index.mdx
Original file line number Diff line number Diff line change
@@ -1,36 +1,24 @@
---
title: Welcome to Starlight
title: Help Center
description: Get started building your docs site with Starlight.
template: splash
hero:
tagline: Congrats on setting up a new Starlight project!
tagline: Welcome to the help page for all of the THOXIA's products.
image:
file: ../../assets/houston.webp
file: ../../assets/thoxia.gif
actions:
- text: Example Guide
- text: Read the docs!
link: /guides/example/
icon: right-arrow
- text: Read the Starlight docs
link: https://starlight.astro.build
icon: external
variant: minimal
---

import { Card, CardGrid } from '@astrojs/starlight/components';
import { Badge, Icon } from '@astrojs/starlight/components';

## Next steps

<CardGrid stagger>
<Card title="Update content" icon="pencil">
Edit `src/content/docs/index.mdx` to see this page change.
</Card>
<Card title="Add new content" icon="add-document">
Add Markdown or MDX files to `src/content/docs` to create new pages.
</Card>
<Card title="Configure your site" icon="setting">
Edit your `sidebar` and other config in `astro.config.mjs`.
</Card>
<Card title="Read the docs" icon="open-book">
Learn more in [the Starlight Docs](https://starlight.astro.build/).
</Card>
</CardGrid>
<div style="display: flex; flex-direction: column; justify-content: center; align-items: center;">
<div style="text-align: center; margin-bottom: 1vh;">
<h1>Still need help?</h1>
<h4 style="margin-top: 1vh;">Join our <Badge text="Discord" variant="note" size="large" style="font-size:1.2rem" /> community!</h4>
</div>

<iframe src="https://discord.com/widget?id=1188430827638509578&theme=dark" style="height:35vh; width:100%; max-width: 400px;" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
</div>
30 changes: 30 additions & 0 deletions src/styles/thoxia.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* Dark mode colors. */
:root {
--sl-color-accent-low: #002932;
--sl-color-accent: #00778b;
--sl-color-accent-high: #7fd8ed;
--sl-color-white: #ffffff;
--sl-color-gray-1: #eceef2;
--sl-color-gray-2: #c0c2c7;
--sl-color-gray-3: #888b96;
--sl-color-gray-4: #545861;
--sl-color-gray-5: #353841;
--sl-color-gray-6: #24272f;
--sl-color-black: #17181c;
}

/* Light mode colors. */
:root[data-theme='light'] {
--sl-color-accent-low: #a3e3f3;
--sl-color-accent: #007286;
--sl-color-accent-high: #003944;
--sl-color-white: #17181c;
--sl-color-gray-1: #24272f;
--sl-color-gray-2: #353841;
--sl-color-gray-3: #545861;
--sl-color-gray-4: #888b96;
--sl-color-gray-5: #c0c2c7;
--sl-color-gray-6: #eceef2;
--sl-color-gray-7: #f5f6f8;
--sl-color-black: #ffffff;
}

0 comments on commit 3953cc4

Please sign in to comment.