Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions app/components/Noodle/Emoji/Logo.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<TooltipApp interactive position="top">
<template #content>
<p class="text-sm font-medium text-fg mb-1"><strong>World Emoji Day</strong></p>
</template>
<img
width="400"
class="w-80 sm:w-140 max-w-full mx-auto"
src="/extra/emoji.png"
:alt="$t('alt_logo')"
/>
</TooltipApp>
</template>
9 changes: 9 additions & 0 deletions app/components/Noodle/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { Component } from 'vue'
import NoodleArtemisLogo from './Artemis/Logo.vue'
import NoodleEmojiLogo from './Emoji/Logo.vue'
import NoodleKawaiiLogo from './Kawaii/Logo.vue'
import NoodleNodejsLogo from './Nodejs/Logo.vue'
import NoodlePressLogo from './Press/Logo.vue'
Expand Down Expand Up @@ -64,6 +65,13 @@ export const ACTIVE_NOODLES: Noodle[] = [
dateTo: '2026-07-01',
timezone: 'auto',
},
{
key: 'emoji',
logo: NoodleEmojiLogo,
date: '2026-07-17',
dateTo: '2026-07-17',
timezone: 'auto',
},
]

// Logo registry for the /noodles archive, keyed by the entry's `key` in
Expand All @@ -74,6 +82,7 @@ const NOODLE_LOGOS: Record<string, Component> = {
'kawaii': NoodleKawaiiLogo,
'transgender-visibility-day': NoodleTransgenderVisibilityLogo,
'artemis': NoodleArtemisLogo,
'emoji': NoodleEmojiLogo,
'nodejs': NoodleNodejsLogo,
'pride-1': NoodlePride1Logo,
'tetris': NoodleTetrisLogo,
Expand Down
18 changes: 18 additions & 0 deletions app/noodles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type { Noodle } from '#shared/schemas/noodle'
const ALEX = { name: 'Alex Savelyev', blueskyHandle: 'alexdln.com' }
const ALFON = { name: 'Alfon', blueskyHandle: 'alfon.dev' }
const GRAPHIEROS = { name: 'Graphieros', blueskyHandle: 'graphieros.npmx.social' }
const FELIX = { name: 'Felix Schneider', blueskyHandle: 'felixs.dev' }

const entries: Noodle[] = [
{
Expand Down Expand Up @@ -133,6 +134,23 @@ const entries: Noodle[] = [
},
],
},
{
key: 'emoji',
title: 'World Emoji Day',
slug: 'emoji',
date: '2026-07-17',
dateTo: '2026-07-17',
timezone: 'auto',
tagline: false,
occasion: '📅🌍🚀💬🥳✨',
prUrl: 'https://github.com/npmx-dev/npmx.dev/pull/3029',
authors: [FELIX],
posterImage: '/extra/emoji.png',
references: [
{ label: 'World Emoji Day Website', url: 'https://worldemojiday.com/' },
{ label: 'Wikipedia', url: 'https://en.wikipedia.org/wiki/World_Emoji_Day' },
],
},
]

export const noodles: Noodle[] = [...entries].sort(
Expand Down
Binary file added public/extra/emoji.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions test/nuxt/a11y.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@
ButtonBase,
LandingIntroHeader,
NoodleArtemisLogo,
NoodleEmojiLogo,
NoodleKawaiiLogo,
NoodleTransgenderVisibilityLogo,
NoodleListCard,
Expand Down Expand Up @@ -412,6 +413,12 @@
expect(results.violations).toEqual([])
})

it('should have no accessibility violations', async () => {
const component = await mountSuspended(NoodleEmojiLogo)
const results = await runAxe(component)
expect(results.violations).toEqual([])
})

it('should have no accessibility violations', async () => {
const component = await mountSuspended(NoodlePride1Logo)
const results = await runAxe(component)
Expand Down Expand Up @@ -1388,7 +1395,7 @@
})

describe('TabRoot + TabList + TabItem + TabPanel', () => {
function createTabsFixture(modelValue: string, idPrefix: string) {

Check warning on line 1398 in test/nuxt/a11y.spec.ts

View workflow job for this annotation

GitHub Actions / 🤖 Autofix code

unicorn(consistent-function-scoping)

Function `createTabsFixture` does not capture any variables from its parent scope
return defineComponent({
setup() {
return () =>
Expand Down
Loading