Skip to content

Commit 7ff03f1

Browse files
authored
Merge pull request #13 from glandjs/develop
fix: fix syntanc hilight
2 parents 53922af + 3086b4e commit 7ff03f1

File tree

4 files changed

+7
-34
lines changed

4 files changed

+7
-34
lines changed

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const navItems = [
1010
---
1111

1212
<div class="logo-section">
13-
<img src="src/assets/logo.png" alt="Gland Logo" class="h-10 mr-3" />
13+
<img src="/assets/logo.png" alt="Gland Logo" class="h-10 mr-3" />
1414
<span>GLAND</span>
1515
</div>
1616

src/components/home/HeroSection.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</div>
101101

102102
<!-- Code window -->
103-
<div class="relative w-full h-full rounded-lg shadow-lg ">
103+
<div class="relative w-full h-full rounded-lg shadow-lg my-4 ">
104104
<!-- Copy button -->
105105
<button
106106
class="absolute top-6 right-6 text-gray-300 bg-gray-700 hover:bg-gray-600 rounded p-1 transition"
@@ -113,7 +113,7 @@
113113
<span class="sr-only">Copy code</span>
114114
</button>
115115
<div class="absolute inset-0 z-0 rounded-lg blur-2xl opacity-30 "></div>
116-
<pre id="gland-code" class="language-typescript line-numbers !bg-transparent h-full w-full text-sm overflow-auto" is:raw>
116+
<pre id="gland-code" class="language-typescript line-numbers !bg-transparent h-full w-full text-sm " is:raw>
117117
<code>import { Broker } from '@glandjs/events';
118118
const gland = new Broker();
119119
gland.on("great", (text) => {

src/layouts/Main.astro

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,16 @@ import TestimonialsSection from "@components/home/TestimonialsSection.astro";
1212
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" />
1313
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.css" rel="stylesheet" />
1414

15-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
16-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-typescript.min.js"></script>
17-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
15+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/copy-to-clipboard/prism-copy-to-clipboard.min.js"></script>
16+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
17+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-typescript.min.js"></script>
18+
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
1819
</head>
1920
<body class="bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIGZpbGw9IiMyMDIwMjAiIGQ9Ik0wIDBoNjB2NjBIMHoiLz48cGF0aCBkPSJNNTkuNSA1OS41VjU5LjVoLTU5di01OSIgc3Ryb2tlPSIjMzAzMDMwIiBzdHJva2Utd2lkdGg9IjEiLz48L2c+PC9zdmc+')]">
2021

2122
<main class="flex-grow container mx-auto px-4 py-8">
2223
<HeroSection />
2324
<TestimonialsSection />
2425
</main>
25-
26-
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script>
2726
</body>
2827
</html>

src/tailwind.css

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -309,30 +309,4 @@
309309
grid-template-columns: 1fr;
310310
}
311311
}
312-
code[class*='language-'],
313-
pre[class*='language-'] {
314-
color: #e0e0e0;
315-
background: transparent;
316-
font-family: 'Fira Code', monospace;
317-
}
318-
319-
.token.keyword {
320-
color: #ff79c6;
321-
}
322-
323-
.token.string {
324-
color: #f1fa8c;
325-
}
326-
327-
.token.function {
328-
color: #8be9fd;
329-
}
330-
331-
.token.parameter {
332-
color: #bd93f9;
333-
}
334-
335-
.token.punctuation {
336-
color: #aaaaaa;
337-
}
338312
}

0 commit comments

Comments
 (0)