From 27071014a101bb962dfc210be4caa34c24b5437c Mon Sep 17 00:00:00 2001 From: jamerrq Date: Tue, 9 Jan 2024 14:15:09 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=95=20feat:=20view=20transitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- readme.md | 2 + src/components/buttons.astro | 116 +++++++++++++++++++---------------- src/layouts/layout.astro | 55 ++++++++--------- 3 files changed, 93 insertions(+), 80 deletions(-) diff --git a/readme.md b/readme.md index 5ef516a..2aeef0f 100644 --- a/readme.md +++ b/readme.md @@ -50,3 +50,5 @@ Source code for my personal website, [jamerrq.dev](https://jamerrq.dev). - [Typed CSS](https://typedcss.com/) - [CSS Peeps](https://css-peeps.com/) - [Tailwind Cheat Sheet](https://tailwindcomponents.com/cheatsheet/) +- [Astro View Transitions](https://docs.astro.build/en/guides/view-transitions/) +- [Astro View Transitions - Lifecycle Events](https://docs.astro.build/en/guides/view-transitions/#lifecycle-events) diff --git a/src/components/buttons.astro b/src/components/buttons.astro index 1034f61..05398eb 100644 --- a/src/components/buttons.astro +++ b/src/components/buttons.astro @@ -76,69 +76,81 @@ const BUTTON_STYLES = [ diff --git a/src/layouts/layout.astro b/src/layouts/layout.astro index 33cdc9f..8e69e1c 100644 --- a/src/layouts/layout.astro +++ b/src/layouts/layout.astro @@ -29,37 +29,36 @@ const BODY_CLASS = import.meta.env.MODE === 'development' ? 'debug-screens' : '' - - - + main#background { + background-image: url('/pizarra.webp'); + background-size: fill; + } + +