@commonpub/layer 0.4.5 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +6 -6
- package/pages/index.vue +34 -0
- package/theme/agora-dark.css +3 -0
- package/theme/agora.css +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commonpub/layer",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
"vue-router": "^4.3.0",
|
|
52
52
|
"zod": "^4.3.6",
|
|
53
53
|
"@commonpub/config": "0.8.0",
|
|
54
|
-
"@commonpub/docs": "0.5.2",
|
|
55
54
|
"@commonpub/auth": "0.5.0",
|
|
55
|
+
"@commonpub/docs": "0.5.2",
|
|
56
56
|
"@commonpub/editor": "0.5.0",
|
|
57
|
-
"@commonpub/ui": "0.8.3",
|
|
58
|
-
"@commonpub/learning": "0.5.0",
|
|
59
57
|
"@commonpub/server": "2.22.0",
|
|
60
|
-
"@commonpub/
|
|
61
|
-
"@commonpub/
|
|
58
|
+
"@commonpub/ui": "0.8.4",
|
|
59
|
+
"@commonpub/learning": "0.5.0",
|
|
60
|
+
"@commonpub/protocol": "0.9.5",
|
|
61
|
+
"@commonpub/schema": "0.8.13"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@testing-library/jest-dom": "^6.9.1",
|
package/pages/index.vue
CHANGED
|
@@ -157,6 +157,32 @@ async function handleHubJoin(hubSlug: string): Promise<void> {
|
|
|
157
157
|
<div v-if="activeContest?.endDate" class="cpub-hero-aside">
|
|
158
158
|
<CountdownTimer :target-date="activeContest.endDate" />
|
|
159
159
|
</div>
|
|
160
|
+
<!-- Large Town Square logo — shown for Agora theme when no contest -->
|
|
161
|
+
<div v-if="!activeContest" class="cpub-hero-aside cpub-hero-logo-aside">
|
|
162
|
+
<svg class="cpub-hero-logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" aria-hidden="true">
|
|
163
|
+
<rect x="18" y="18" width="72" height="72" fill="none" stroke="currentColor" stroke-width="5.5" stroke-linejoin="round"/>
|
|
164
|
+
<rect x="110" y="18" width="72" height="72" fill="none" stroke="currentColor" stroke-width="5.5" stroke-linejoin="round"/>
|
|
165
|
+
<rect x="18" y="110" width="72" height="72" fill="none" stroke="currentColor" stroke-width="5.5" stroke-linejoin="round"/>
|
|
166
|
+
<rect x="110" y="110" width="72" height="72" fill="none" stroke="currentColor" stroke-width="5.5" stroke-linejoin="round"/>
|
|
167
|
+
<rect x="90" y="90" width="20" height="20" fill="var(--accent, #3d8b5e)"/>
|
|
168
|
+
<rect x="84" y="84" width="6" height="6" fill="var(--accent, #3d8b5e)" opacity="0.6"/>
|
|
169
|
+
<rect x="110" y="84" width="6" height="6" fill="var(--accent, #3d8b5e)" opacity="0.6"/>
|
|
170
|
+
<rect x="84" y="110" width="6" height="6" fill="var(--accent, #3d8b5e)" opacity="0.6"/>
|
|
171
|
+
<rect x="110" y="110" width="6" height="6" fill="var(--accent, #3d8b5e)" opacity="0.6"/>
|
|
172
|
+
<line x1="32" y1="40" x2="76" y2="40" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
173
|
+
<line x1="32" y1="52" x2="66" y2="52" stroke="var(--accent, #3d8b5e)" stroke-width="2.5" stroke-linecap="round" opacity="0.7"/>
|
|
174
|
+
<line x1="32" y1="64" x2="72" y2="64" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
175
|
+
<line x1="124" y1="40" x2="168" y2="40" stroke="var(--accent, #3d8b5e)" stroke-width="2.5" stroke-linecap="round" opacity="0.7"/>
|
|
176
|
+
<line x1="124" y1="52" x2="158" y2="52" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
177
|
+
<line x1="124" y1="64" x2="164" y2="64" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
178
|
+
<line x1="32" y1="132" x2="76" y2="132" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
179
|
+
<line x1="32" y1="144" x2="62" y2="144" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
180
|
+
<line x1="32" y1="156" x2="70" y2="156" stroke="var(--accent, #3d8b5e)" stroke-width="2.5" stroke-linecap="round" opacity="0.7"/>
|
|
181
|
+
<line x1="124" y1="132" x2="168" y2="132" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
182
|
+
<line x1="124" y1="144" x2="160" y2="144" stroke="var(--accent, #3d8b5e)" stroke-width="2.5" stroke-linecap="round" opacity="0.7"/>
|
|
183
|
+
<line x1="124" y1="156" x2="152" y2="156" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" opacity="0.15"/>
|
|
184
|
+
</svg>
|
|
185
|
+
</div>
|
|
160
186
|
</div>
|
|
161
187
|
</section>
|
|
162
188
|
|
|
@@ -464,6 +490,14 @@ async function handleHubJoin(hubSlug: string): Promise<void> {
|
|
|
464
490
|
|
|
465
491
|
.cpub-hero-aside { flex-shrink: 0; }
|
|
466
492
|
|
|
493
|
+
/* Hero logo — hidden by default, shown by Agora theme CSS */
|
|
494
|
+
.cpub-hero-logo-aside { display: none; }
|
|
495
|
+
.cpub-hero-logo {
|
|
496
|
+
width: 160px;
|
|
497
|
+
height: 160px;
|
|
498
|
+
opacity: 0.6;
|
|
499
|
+
}
|
|
500
|
+
|
|
467
501
|
/* ─── TABS BAR ─── */
|
|
468
502
|
.cpub-tabs-bar {
|
|
469
503
|
position: sticky;
|
package/theme/agora-dark.css
CHANGED
|
@@ -361,3 +361,6 @@
|
|
|
361
361
|
/* Logo switch */
|
|
362
362
|
[data-theme="agora-dark"] .cpub-logo-classic { display: none !important; }
|
|
363
363
|
[data-theme="agora-dark"] .cpub-logo-agora { display: flex !important; }
|
|
364
|
+
|
|
365
|
+
/* Show Town Square logo in hero section */
|
|
366
|
+
[data-theme="agora-dark"] .cpub-hero-logo-aside { display: flex !important; align-items: center; justify-content: center; }
|
package/theme/agora.css
CHANGED
|
@@ -470,3 +470,6 @@
|
|
|
470
470
|
|
|
471
471
|
[data-theme="agora"] .cpub-logo-classic { display: none !important; }
|
|
472
472
|
[data-theme="agora"] .cpub-logo-agora { display: flex !important; }
|
|
473
|
+
|
|
474
|
+
/* Show Town Square logo in hero section */
|
|
475
|
+
[data-theme="agora"] .cpub-hero-logo-aside { display: flex !important; align-items: center; justify-content: center; }
|