Skip to content

Commit cb8cca0

Browse files
committed
fixed duplicated code
1 parent 75c883c commit cb8cca0

File tree

4 files changed

+15
-142
lines changed

4 files changed

+15
-142
lines changed

.github/workflows/claude.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -47,54 +47,3 @@ jobs:
4747
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4848
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
4949
# claude_args: '--allowed-tools Bash(gh pr:*)'
50-
51-
name: Claude Code
52-
53-
on:
54-
issue_comment:
55-
types: [created]
56-
pull_request_review_comment:
57-
types: [created]
58-
issues:
59-
types: [opened, assigned]
60-
pull_request_review:
61-
types: [submitted]
62-
63-
jobs:
64-
claude:
65-
if: |
66-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
67-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
68-
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
69-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
70-
runs-on: ubuntu-latest
71-
permissions:
72-
contents: read
73-
pull-requests: read
74-
issues: read
75-
id-token: write
76-
actions: read # Required for Claude to read CI results on PRs
77-
steps:
78-
- name: Checkout repository
79-
uses: actions/checkout@v4
80-
with:
81-
fetch-depth: 1
82-
83-
- name: Run Claude Code
84-
id: claude
85-
uses: anthropics/claude-code-action@v1
86-
with:
87-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
88-
89-
# This is an optional setting that allows Claude to read CI results on PRs
90-
additional_permissions: |
91-
actions: read
92-
93-
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
94-
# prompt: 'Update the pull request description to include a summary of changes.'
95-
96-
# Optional: Add claude_args to customize behavior and configuration
97-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
98-
# or https://docs.claude.com/en/docs/claude-code/cli-reference for available options
99-
# claude_args: '--allowed-tools Bash(gh pr:*)'
100-

src/components/HomepageFeatures/styles.module.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,13 +171,13 @@
171171
}
172172

173173
.latestBadge {
174-
background: #41F2CC;
175-
color: #000000 !important;
174+
background: var(--ifm-color-success);
175+
box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
176176
}
177177

178178
.latestBadge:hover {
179-
background: #34C263;
180-
color: #000000 !important;
179+
background: var(--ifm-color-success-dark);
180+
color: white !important;
181181
}
182182

183183
[data-theme='dark'] .versionBadge {
@@ -191,13 +191,13 @@
191191
}
192192

193193
[data-theme='dark'] .latestBadge {
194-
background: #27914A;
195-
color: #D9FACB !important;
194+
background: var(--ifm-color-success-darker);
195+
color: var(--ifm-color-success-lightest);
196196
}
197197

198198
[data-theme='dark'] .latestBadge:hover {
199-
background: #41F2CC;
200-
color: #000000 !important;
199+
background: var(--ifm-color-success);
200+
color: white !important;
201201
}
202202

203203
/* Dark mode color improvements */

src/css/custom.css

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -47,48 +47,6 @@
4747
font-display: swap;
4848
}
4949

50-
/* Hubot Sans Family */
51-
@font-face {
52-
font-family: "Hubot Sans";
53-
src: url("/fonts/HubotSans-Regular.ttf") format("truetype");
54-
font-weight: 400;
55-
font-style: normal;
56-
font-display: swap;
57-
}
58-
59-
@font-face {
60-
font-family: "Hubot Sans";
61-
src: url("/fonts/HubotSans-Medium.ttf") format("truetype");
62-
font-weight: 500;
63-
font-style: normal;
64-
font-display: swap;
65-
}
66-
67-
@font-face {
68-
font-family: "Hubot Sans";
69-
src: url("/fonts/HubotSans-SemiBold.ttf") format("truetype");
70-
font-weight: 600;
71-
font-style: normal;
72-
font-display: swap;
73-
}
74-
75-
@font-face {
76-
font-family: "Hubot Sans";
77-
src: url("/fonts/HubotSans-Bold.ttf") format("truetype");
78-
font-weight: 700;
79-
font-style: normal;
80-
font-display: swap;
81-
}
82-
83-
/* Syne (variable font) */
84-
@font-face {
85-
font-family: "Syne";
86-
src: url("/fonts/Syne-VariableFont_wght.ttf") format("truetype-variations");
87-
font-weight: 100 900;
88-
font-style: normal;
89-
font-display: swap;
90-
}
91-
9250
:root {
9351
--ifm-color-primary: #5851DB;
9452
--ifm-color-primary-dark: #232058;
@@ -114,32 +72,6 @@
11472
--ifm-breadcrumb-size-multiplier: 0.9;
11573
}
11674

117-
h1, h2, h3, h4, h5, h6 {
118-
font-family: Hubot Sans, HubotSans-fallback, Courier New, monospace;
119-
--ifm-color-primary: #5851DB;
120-
--ifm-color-primary-dark: #232058;
121-
--ifm-color-primary-darker: #1A1536;
122-
--ifm-color-primary-darkest: #12102C;
123-
--ifm-color-primary-light: #5851DB;
124-
--ifm-color-primary-lighter: #7974E2;
125-
--ifm-color-primary-lightest: #9B97E9;
126-
--ifm-code-font-size: 95%;
127-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
128-
--ifm-font-family-base: Syne, Syne-fallback, Trebuchet MS, Verdana, sans-serif;
129-
--ifm-color-emphasis-600: #767386;
130-
--ifm-color-success: #34C263;
131-
--ifm-color-success-dark: #27914A;
132-
--ifm-button-background-color: #5851DB;
133-
}
134-
135-
.table-of-contents {
136-
font-size: 0.9rem;
137-
}
138-
139-
.breadcrumbs {
140-
--ifm-breadcrumb-size-multiplier: 0.9;
141-
}
142-
14375
h1, h2, h3, h4, h5, h6 {
14476
font-family: Hubot Sans, HubotSans-fallback, Courier New, monospace;
14577
}
@@ -154,14 +86,6 @@ h1, h2, h3, h4, h5, h6 {
15486
--ifm-color-primary-lighter: #9B97E9;
15587
--ifm-color-primary-lightest: #BCB9F1;
15688
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
157-
--ifm-color-primary: #5851DB;
158-
--ifm-color-primary-dark: #4641AF;
159-
--ifm-color-primary-darker: #353183;
160-
--ifm-color-primary-darkest: #232058;
161-
--ifm-color-primary-light: #7974E2;
162-
--ifm-color-primary-lighter: #9B97E9;
163-
--ifm-color-primary-lightest: #BCB9F1;
164-
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
16589
}
16690

16791
/* Additional custom styles */

src/theme/Root.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ export default function Root({ children }) {
1616
}
1717
};
1818

19-
// Initial update
20-
updateFavicon();
19+
// Initial update - temp. removed favicon changing on darkmode
20+
//updateFavicon();
2121

2222
// Watch for theme changes
23-
const observer = new MutationObserver(updateFavicon);
24-
observer.observe(document.documentElement, {
25-
attributes: true,
26-
attributeFilter: ['data-theme']
27-
});
23+
// const observer = new MutationObserver(updateFavicon);
24+
// observer.observe(document.documentElement, {
25+
// attributes: true,
26+
// attributeFilter: ['data-theme']
27+
// });
2828

2929
return () => observer.disconnect();
3030
}, []);

0 commit comments

Comments
 (0)