Skip to content

Commit 57d7288

Browse files
authored
Improvments (#10)
* Improvments * Remove unwanted warning css for poe
1 parent 7a8835b commit 57d7288

File tree

7 files changed

+411
-323
lines changed

7 files changed

+411
-323
lines changed

src-11ty/_includes/base.html

Lines changed: 3 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -14,148 +14,12 @@
1414
/>
1515
<script type="module" src="/src/utils/dark-mode.ts"></script>
1616

17-
<link rel="stylesheet" href="/src/styles/shoelace.css" />
18-
<link rel="stylesheet" href="/src/styles/theme.css" />
19-
<link rel="stylesheet" href="/src/styles/details-page.css" />
20-
<link
21-
rel="preload"
22-
href="/open-home-foundation.svg"
23-
as="image"
24-
type="image/svg+xml"
25-
/>
26-
<link rel="preload" href="/ohf_dark.svg" as="image" type="image/svg+xml" />
27-
<style>
28-
body {
29-
margin: 0;
30-
}
31-
32-
.app-header {
33-
display: block;
34-
background: var(--app-bg-header);
35-
position: sticky;
36-
top: 0;
37-
z-index: 100;
38-
}
39-
40-
.app-header header {
41-
display: flex;
42-
align-items: center;
43-
justify-content: space-between;
44-
padding: 0 20px;
45-
border-bottom: 1px solid var(--app-border);
46-
height: 64px;
47-
margin: 0 auto;
48-
}
49-
50-
.app-header .logo-section {
51-
display: flex;
52-
align-items: center;
53-
gap: 12px;
54-
cursor: pointer;
55-
}
56-
57-
.app-header .logo {
58-
height: 32px;
59-
width: auto;
60-
}
61-
62-
.app-header .title {
63-
font-size: 1.25rem;
64-
font-weight: 500;
65-
color: var(--app-text-primary);
66-
margin: 0;
67-
}
68-
69-
.app-header .nav-links {
70-
display: flex;
71-
gap: 20px;
72-
align-items: center;
73-
}
74-
75-
.app-header .nav-link {
76-
color: var(--app-text-secondary);
77-
border: 1px solid var(--app-border);
78-
text-decoration: none;
79-
padding: 8px 12px;
80-
border-radius: 6px;
81-
transition: all 0.2s ease;
82-
font-weight: 400;
83-
}
84-
85-
.app-header .nav-link:hover {
86-
background: var(--app-bg-secondary);
87-
color: var(--app-text-primary);
88-
border-color: var(--app-border-hover);
89-
}
90-
91-
.app-header .github-link {
92-
display: flex;
93-
align-items: center;
94-
gap: 6px;
95-
color: #666;
96-
text-decoration: none;
97-
padding: 8px 12px;
98-
border-radius: 6px;
99-
transition: all 0.2s ease;
100-
border: 1px solid #e0e0e0;
101-
}
102-
103-
.app-header .github-link:hover {
104-
background: #f5f5f5;
105-
color: #333;
106-
border-color: #ccc;
107-
}
108-
109-
.app-header .github-icon {
110-
width: 16px;
111-
height: 16px;
112-
fill: currentColor;
113-
}
114-
115-
@media (max-width: 768px) {
116-
.app-header .nav-links {
117-
gap: 12px;
118-
}
119-
120-
.app-header .nav-link,
121-
.app-header .github-link {
122-
padding: 6px 8px;
123-
font-size: 0.9rem;
124-
}
125-
126-
.app-header .title {
127-
font-size: 1.1rem;
128-
}
129-
130-
.app-header .github-link .github-text {
131-
display: none;
132-
}
133-
}
134-
135-
@media (max-width: 480px) {
136-
.app-header header {
137-
padding: 0 16px;
138-
}
139-
140-
.app-header .logo {
141-
height: 28px;
142-
}
143-
}
144-
145-
details-page:not(:defined) {
146-
opacity: 0;
147-
}
148-
149-
details-page {
150-
opacity: 1;
151-
transition: opacity 0.1s;
152-
}
153-
</style>
17+
<link rel="stylesheet" href="/src/styles/main.css" />
15418
</head>
15519
<body class="wa-palette-shoelace wa-theme-shoelace">
15620
<div class="app-header">
15721
<header>
158-
<div class="logo-section" onclick="window.location.href = '/'">
22+
<a href="/" class="logo-section" aria-label="Device Toolbox Home">
15923
<picture>
16024
<source
16125
srcset="/ohf_dark.svg"
@@ -167,7 +31,7 @@
16731
class="logo"
16832
/>
16933
</picture>
170-
</div>
34+
</a>
17135

17236
<nav class="nav-links">
17337
<a

0 commit comments

Comments
 (0)