Skip to content

Commit ec5d971

Browse files
authored
Merge pull request #1 from swedishfrenchpress/index_homepage_edits
Cashu TS Homepage Edits
2 parents 6e1e398 + 9c9994b commit ec5d971

16 files changed

+10306
-47
lines changed

docusaurus.config.js

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
module.exports = {
2+
stylesheets: [
3+
{
4+
href: 'https://fonts.googleapis.com/css2?family=Jersey+20&display=swap',
5+
rel: 'stylesheet',
6+
},
7+
],
8+
themeConfig: {
9+
colorMode: {
10+
defaultMode: 'dark',
11+
respectPrefersColorScheme: true,
12+
darkMode: {
13+
cssVars: {
14+
'background-color': 'hsla(260,40%,5%,1)',
15+
'--ifm-background-color': 'hsla(260,40%,5%,1)',
16+
'--ifm-background-surface-color': 'hsla(260,35%,8%,1)',
17+
'--ifm-navbar-background-color': 'hsla(260,40%,5%,0.8)',
18+
'--ifm-color-primary': '#c084fc',
19+
'--ifm-color-primary-dark': '#a855f7',
20+
'--ifm-color-primary-darker': '#9333ea',
21+
'--ifm-color-primary-darkest': '#7e22ce',
22+
'--ifm-color-primary-light': '#d8b4fe',
23+
'--ifm-color-primary-lighter': '#e9d5ff',
24+
'--ifm-color-primary-lightest': '#f3e8ff',
25+
'--ifm-toc-border-color': 'rgba(147,51,234,0.3)',
26+
'--ifm-color-content': '#f9fafb',
27+
'--ifm-color-content-secondary': '#a1a1aa',
28+
}
29+
}
30+
}
31+
}
32+
};

docusaurus.config.ts

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,28 @@ const config: Config = {
5151
// Replace with your project's social card
5252
image: "img/docusaurus-social-card.jpg",
5353
navbar: {
54-
title: "Cashu-TS",
54+
title: "Cashu TS",
55+
logo: {
56+
alt: "Cashu-TS Logo",
57+
src: "img/tslogo.png",
58+
},
5559
items: [
5660
{
5761
type: "docSidebar",
5862
sidebarId: "tutorialSidebar",
5963
position: "left",
6064
label: "Docs",
6165
},
66+
{
67+
href: 'https://github.com/cashubtc/cashu-ts',
68+
label: 'GitHub',
69+
position: 'right',
70+
},
6271
],
63-
logo: {
64-
alt: "Site Logo",
65-
src: "img/tslogo.png",
66-
target: "_self",
67-
width: 32,
68-
height: 32,
69-
className: "custom-navbar-logo-class",
70-
},
7172
},
7273
announcementBar: {
7374
id: "wip",
74-
content: "These docs are a WORK IN PROGRESS.",
75+
content: "We’re actively building these docs—check back for updates.",
7576
backgroundColor: "#18181b",
7677
textColor: "#fafafa",
7778
isCloseable: false,

package-lock.json

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"clsx": "^2.0.0",
2222
"prism-react-renderer": "^2.3.0",
2323
"react": "^18.0.0",
24-
"react-dom": "^18.0.0"
24+
"react-dom": "^18.0.0",
25+
"simplex-noise": "^4.0.3"
2526
},
2627
"devDependencies": {
2728
"@docusaurus/module-type-aliases": "3.6.3",

src/css/custom.css

Lines changed: 54 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Jersey+20&display=swap');
2+
@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:ital,wght@0,100..900;1,100..900&display=swap');
3+
14
@tailwind base;
25
@tailwind components;
36
@tailwind utilities;
47

5-
/**
6-
* Any CSS included here will be global. The classic template
7-
* bundles Infima by default. Infima is a CSS framework designed to
8-
* work well for content-centric websites.
9-
*/
10-
118
/* You can override the default Infima variables here. */
129
:root {
1310
--ifm-color-primary: #9333ea;
@@ -19,6 +16,10 @@
1916
--ifm-color-primary-lightest: #c084fc;
2017
--ifm-code-font-size: 95%;
2118
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
19+
--ifm-navbar-background-color: #ffffff;
20+
--ifm-navbar-link-color: #581c87;
21+
--ifm-navbar-link-hover-color: #9333ea;
22+
--ifm-navbar-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
2223
}
2324

2425
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -31,4 +32,51 @@
3132
--ifm-color-primary-lighter: #e879f9;
3233
--ifm-color-primary-lightest: #e879f9;
3334
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
35+
--ifm-navbar-background-color: #1e1b4b;
36+
--ifm-navbar-link-color: #FFFFFF;
37+
--ifm-navbar-link-hover-color: #c026d3;
38+
}
39+
40+
/* Keep any non-navbar related utility classes you need */
41+
42+
/* Add custom navbar styling */
43+
.navbar {
44+
border-bottom: 1px solid rgba(147, 51, 234, 0.1);
45+
padding: 0;
46+
}
47+
48+
/* Container for the entire navbar */
49+
.navbar__inner {
50+
width: 100%;
51+
margin: 0 auto;
52+
padding: 0;
53+
}
54+
55+
/* Main content wrapper to match page content */
56+
.container {
57+
max-width: var(--ifm-container-width) !important;
58+
margin: 0 auto;
59+
padding: 0 var(--ifm-spacing-horizontal);
60+
}
61+
62+
/* Ensure navbar items are properly spaced */
63+
.navbar__items {
64+
margin: 0 auto;
65+
max-width: var(--ifm-container-width);
66+
padding: 0 var(--ifm-spacing-horizontal);
67+
width: 100%;
68+
}
69+
70+
[data-theme="dark"] .navbar {
71+
border-bottom: 1px solid rgba(232, 121, 249, 0.1);
72+
}
73+
74+
.navbar__link {
75+
font-weight: 500;
76+
transition: color 0.2s ease;
77+
}
78+
79+
.navbar__link--active {
80+
font-weight: 600;
81+
color: var(--ifm-color-primary);
3482
}

0 commit comments

Comments
 (0)