2
2
import twopoint5d from ' ../images/twopoint5d-logo.svg?url' ;
3
3
import RainbowLine from ' ./RainbowLine.astro' ;
4
4
import CloseDialogIcon from ' ./icons/CloseDialogIcon.astro' ;
5
- import CodeIcon from ' ./icons/CodeIcon.astro' ;
6
5
import GitHubInvertocatIcon from ' ./icons/GitHubInvertocatIcon.astro' ;
7
- import HomeIcon from ' ./icons/HomeIcon.astro' ;
8
6
9
7
export interface Props {
10
8
title: string ;
@@ -22,22 +20,16 @@ const githubUrl = showSource?.['github'] ?? 'https://github.com/spearwolf/twopoi
22
20
<div class =" absolute bottom-0 z-50 -rotate-90 origin-bottom-left transform-gpu container pointer-events-none" >
23
21
<div class =" flex justify-center" >
24
22
<header
25
- class =" demo-navbar gap-2 flex justify-start items-center px-1.5 lg:pe-5 lg:ps-4 h-10 backdrop-blur-sm pointer-events-auto"
23
+ class =" demo-navbar gap-2 flex justify-start items-center px-1.5 lg:pe-3 lg:ps-3 h-10 backdrop-blur-sm pointer-events-auto rounded-b-sm "
26
24
>
27
- <a href ={ import .meta .env .BASE_URL } class =" interactive-action rotate-90" >
28
- <HomeIcon />
29
- </a >
30
25
<button class =" interactive-action open-show-source-dialog-action" >
31
26
<img class =" primary" src ={ twopoint5d } alt =" twopoint5d" />
32
27
</button >
33
- <button class =" interactive-action open-show-source-dialog-action rotate-90" >
34
- <CodeIcon />
35
- </button >
36
28
</header >
37
29
</div >
38
30
</div >
39
31
40
- <dialog class =" show-source-dialog px-6 py-4 rounded-md backdrop-blur-sm" >
32
+ <dialog class =" show-source-dialog min-w-80 max-w-xl px-6 py-4 rounded-md backdrop-blur-sm" >
41
33
<header class =" flex flex-row items-center justify-between mb-4" >
42
34
<figure class =" flex items-center justify-start text-slate-300" >
43
35
<figcaption >a</figcaption >
@@ -58,10 +50,13 @@ const githubUrl = showSource?.['github'] ?? 'https://github.com/spearwolf/twopoi
58
50
</section >
59
51
)
60
52
}
53
+ <section class =" demo-description mb-4 text-sm text-slate-200" >
54
+ <slot name =" description" />
55
+ </section >
61
56
<section >
62
57
<h2 class =" text-2xl" >Explore Source Code</h2 >
63
- <p class =" text-sm" >Want to see how it is done?</p >
64
- <ul class =" mt-4 mb-6" >
58
+ <p class =" text-sm text-slate-200 " >Want to see how it is done?</p >
59
+ <ul class =" max-w-xs mx-auto mt-4 mb-6" >
65
60
{
66
61
githubUrl && (
67
62
<li class = " ring-1 ring-white rounded-md hover:bg-slate-800" >
@@ -86,11 +81,11 @@ const githubUrl = showSource?.['github'] ?? 'https://github.com/spearwolf/twopoi
86
81
}
87
82
88
83
.show-source-dialog {
89
- min-width: 320px;
90
84
background-color: rgba(18 22 25 / 75%);
91
85
color: #fff;
92
86
outline: 1px solid #e5e500;
93
87
box-shadow: 0 0 2px 3px rgba(0 0 0 / 20%);
88
+ text-shadow: none;
94
89
}
95
90
96
91
.show-source-dialog::backdrop {
@@ -120,13 +115,7 @@ const githubUrl = showSource?.['github'] ?? 'https://github.com/spearwolf/twopoi
120
115
}
121
116
122
117
.demo-navbar img.primary {
123
- max-height: 32px;
124
- }
125
-
126
- .interactive-action:hover {
127
- color: #fff;
128
- background-color: #333;
129
- border-radius: 2px;
118
+ max-height: 36px;
130
119
}
131
120
132
121
.interactive-action:focus-visible {
0 commit comments