Componente de decoración navideña 🎄

Adding a bit of festive flair to your forum – I present a Christmas decoration component! :christmas_tree:

This component includes three flairs:

  1. Christmas Lights
  2. Christmas Hats
  3. Christmas Decoration Image

Each flair can be individually enabled/disabled via theme settings. For Christmas Decoration Image there is also a setting to invert color for forum with Dark theme.

The Christmas lights were inspired from @Canapin’s ideas here.

Merry Christmas! :santa:

47 Me gusta

Very nice! One small thing - it doesn’t seem like the ‘enable decoration image’ is making any difference. I think it might need an if statement in the SCSS?

9 Me gusta

Thanks for bringing this in my notice! I’ve pushed a fix now. :slight_smile:

7 Me gusta

This is great, thanks. Much easier as a theme component than a theme.

The hats worked immediately but I had to fiddle around to get the lights to work - e.g. ticked the enable/disable boxes (though not sure that is what made it work) and restarted the iOS Hub app - but I guess that’s realistic for lights :slight_smile:

3 Me gusta

Glad you liked it! :slight_smile:

That is weird. I just checked installing the component (again) on theme-creator and it worked on first try. Let me know if the issue persists.

2 Me gusta

It’s all working now. Maybe it was something to do with caching - the avatars being updated sooner than the menu bar. “Caching” is a good catch-all excuse as I don’t understand it.

2 Me gusta

Hmm, perhaps mods could enable this component here on meta to make sure it is working…

1 me gusta

En mi discurso, el sombrero y la luz funcionan bien, sin embargo, la imagen de decoración no se muestra. No tengo idea de por qué esto sucede.

1 me gusta

Si sirve de ayuda, la decoración solo aparece en el escritorio, en la parte superior izquierda y superior derecha.

1 me gusta

Sí, lo sé, pero no hay nada cuando lo veo en el escritorio.

1 me gusta

La imagen de decoración aparece cuando el ancho mínimo de pantalla es 1450px. ¿Estás viendo el sitio en un monitor pequeño o en un portátil?

1 me gusta

Oh. Lo probé en mi monitor de pantalla 2k, así que funciona. Ahora estoy usando mi Lenovo Yoga Duet (algo así como Microsoft Surface) y desaparece. Sin embargo, ¿es posible mostrarlo en un monitor pequeño o en un portátil?

1 me gusta

Sería una pena que los usuarios de portátiles no pudieran ver la campana… Me encanta. Eso representa la Navidad.

1 me gusta

Puedes hacer un fork del tema y ajustar la configuración del ancho de pantalla.

1 me gusta

¡Genial! ¡Lo intentaré! ¡Gracias por tu ayuda!

1 me gusta

Si alguien tiene otros componentes que aparecen antes de las decoraciones, podría intentar agregar este CSS para forzar que las luces sean las primeras:


#main-container > * {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#main-container .lightrope {
  order: -1;
}

(esto podría romper otras integraciones, así que pruébelo a fondo)

4 Me gusta

¿Puedo cambiar los colores de las luces?

2 Me gusta

El sombrero no aparece en las publicaciones.

2 Me gusta

@meghna ¡Esto es fantástico!

“Imagen de decoración navideña” no me funcionó.

¿Hay alguna forma de cambiar los colores de las luces? Estoy jugando con el CSS, pero no tengo suerte.

1 me gusta

Parece que agregará un segundo sombrero en el emoji (en el menú del usuario superior derecho) cuando el usuario establezca un estado de usuario

2 Me gusta