Skip to content

Commit d0eb97f

Browse files
authored
feat: press freedom day noodle (#2666)
1 parent 5eab00c commit d0eb97f

6 files changed

Lines changed: 28 additions & 40 deletions

File tree

app/components/Noodle/Artemis/Logo.vue

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<template>
2+
<TooltipApp interactive position="top">
3+
<template #content>
4+
<p class="text-sm font-medium text-fg mb-1">
5+
A free press makes openness possible for everyone.
6+
<LinkBase to="https://en.wikipedia.org/wiki/World_Press_Freedom_Day"
7+
>Read more about Press Freedom Day</LinkBase
8+
>
9+
</p>
10+
</template>
11+
<ColorSchemeImg
12+
width="320"
13+
class="mb-16 w-80 sm:w-140 max-w-full"
14+
dark-src="/extra/npmx-dark-press.png"
15+
light-src="/extra/npmx-light-press.png"
16+
:alt="$t('alt_logo')"
17+
/>
18+
</TooltipApp>
19+
</template>

app/components/Noodle/index.ts

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import NoodleKawaiiLogo from './Kawaii/Logo.vue'
2-
import NoodleArtemisLogo from './Artemis/Logo.vue'
3-
// import NoodleTkawaiiLogo from './Tkawaii/Logo.vue'
2+
import NoodlePressLogo from './Press/Logo.vue'
43

54
export type Noodle = {
65
// Unique identifier for the noodle
@@ -17,17 +16,6 @@ export type Noodle = {
1716
tagline?: boolean
1817
}
1918

20-
// Archive noodles - might be shown on special page
21-
// export const ARCHIVE_NOODLES: Noodle[] = [
22-
// {
23-
// key: 'tkawaii',
24-
// date: '2026-04-08T12:00:00UTC',
25-
// timezone: 'auto',
26-
// logo: NoodleTkawaiiLogo,
27-
// tagline: false,
28-
// },
29-
// ]
30-
3119
// Permanent noodles - always shown on specific query param (e.g. ?kawaii)
3220
export const PERMANENT_NOODLES: Noodle[] = [
3321
{
@@ -40,11 +28,11 @@ export const PERMANENT_NOODLES: Noodle[] = [
4028
// Active noodles - shown based on date and timezone
4129
export const ACTIVE_NOODLES: Noodle[] = [
4230
{
43-
key: 'artemis',
44-
logo: NoodleArtemisLogo,
45-
date: '2026-04-08T12:00:00Z',
46-
dateTo: '2026-04-12T01:00:00Z',
47-
timezone: 'America/Los_Angeles',
48-
tagline: true,
31+
key: 'press',
32+
logo: NoodlePressLogo,
33+
date: '2026-05-01',
34+
dateTo: '2026-05-04',
35+
timezone: 'auto',
36+
tagline: false,
4937
},
5038
]

public/extra/npmx-dark-press.png

209 KB
Loading

public/extra/npmx-light-press.png

208 KB
Loading

test/nuxt/a11y.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ import {
157157
ButtonBase,
158158
LandingIntroHeader,
159159
NoodleKawaiiLogo,
160-
NoodleArtemisLogo,
160+
NoodlePressLogo,
161161
LinkBase,
162162
CallToAction,
163163
CodeDirectoryListing,
@@ -368,7 +368,7 @@ describe('component accessibility audits', () => {
368368
})
369369

370370
it('should have no accessibility violations', async () => {
371-
const component = await mountSuspended(NoodleArtemisLogo)
371+
const component = await mountSuspended(NoodlePressLogo)
372372
const results = await runAxe(component)
373373
expect(results.violations).toEqual([])
374374
})

0 commit comments

Comments
 (0)