Skip to content

Add Rainy Tech theme and assets#58

Merged
HugoGresse merged 3 commits intomainfrom
feat/rainyTheme
Mar 31, 2026
Merged

Add Rainy Tech theme and assets#58
HugoGresse merged 3 commits intomainfrom
feat/rainyTheme

Conversation

@Razano26
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 18, 2026

Visit the preview URL for this PR (updated for commit 2f2a44a):

https://sunnytechwebsite--pr58-feat-rainytheme-miyi7ei8.web.app

(expires Tue, 07 Apr 2026 10:48:36 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: b96ac7ab85879442bb94dc448b41aeca0f34d16c

@HugoGresse
Copy link
Copy Markdown
Member

@copilot do you think you could add a shader to make the page text diseappear with gravity as real ink does with water?

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 18, 2026

@HugoGresse I've opened a new pull request, #59, to work on those changes. Once the pull request is ready, I'll request review from you.

Add rainy logo and hero background images. Update Hero to include a
data-rainy-src for background swapping. Inject a client script in
Layout that, when the date is March 18, overrides theme colors,
replaces text/logo/background assets, draws frogs on the 404 canvas,
and adds an animated rain overlay and drops.

Signed-off-by: Louis Labeyrie <labeyrielouis@gmail.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Cette PR ajoute un thème “Rainy Tech” appliqué côté client à une date précise, avec remplacement d’assets (fond du hero, logos) et un habillage visuel (overlay de pluie), afin de transformer temporairement l’apparence et certains libellés du site.

Changes:

  • Ajout d’un script global dans le layout pour appliquer le thème “Rainy Tech” (CSS variables, remplacements de texte, swap d’images/logos, overlay animé, remplacement de l’art 404).
  • Ajout d’un asset de fond alternatif (home_rain.png) et exposition de son URL via data-rainy-src sur le hero.

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 4 comments.

File Description
src/layouts/Layout.astro Ajoute la logique client d’application du thème (swap d’images/logos, overlay, modifications DOM/canvas).
src/components/home/Hero.astro Ajoute l’import de l’image de fond “rain” et la rend accessible via un data-* pour le swap côté client.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Member

@HugoGresse HugoGresse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Il faudrait prendre en compte les retours de Copilot mais surtout faire un JS dans une fichier dédié et pas directement dans le layout non ?

- Extract inline JS from Layout.astro into dedicated
  src/scripts/rainy-theme.ts
- Convert home_rain.png (3.1MB) to home_rain.webp (280KB)
- Add id to injected <style> to prevent duplicate style injection
- Remove srcset/sizes on hero img when swapping to rain background
- Skip rain overlay animation when prefers-reduced-motion is enabled

Signed-off-by: Louis Labeyrie <labeyrielouis@gmail.com>
@HugoGresse HugoGresse merged commit 9203ca7 into main Mar 31, 2026
3 checks passed
@HugoGresse HugoGresse deleted the feat/rainyTheme branch March 31, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants