add widget bar component and correct bugs

accidentally removed baxter image from v-day
event. needed to re-add and style image map
appropriately
This commit is contained in:
emma 2025-02-27 23:39:52 -05:00
parent e41979a67b
commit 771c8beeec
5 changed files with 241 additions and 191 deletions

BIN
baxter.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -1,7 +1,7 @@
:root { :root {
--header-footer-color: #BFD9C6CC; --header-footer-color: #bfd9c6cc;
--text-color-light-red: #E94E77; --text-color-light-red: #e94e77;
--link-color: #E94E77; --link-color: #e94e77;
--link-hover-color: #664625; --link-hover-color: #664625;
} }
@ -15,7 +15,9 @@
src: url("../site/resources/fonts/learning-curve-regular.woff2"); src: url("../site/resources/fonts/learning-curve-regular.woff2");
} }
*, *::before, *::after { *,
*::before,
*::after {
margin: 0; margin: 0;
padding: 0; padding: 0;
box-sizing: border-box; box-sizing: border-box;
@ -285,7 +287,7 @@ li {
.headpats { .headpats {
position: absolute; position: absolute;
left: 86.12%; left: 84.12%;
top: 23.2%; top: 23.2%;
width: 3%; width: 3%;
height: 3.03%; height: 3.03%;
@ -308,11 +310,10 @@ li {
margin-left: 3rem; margin-left: 3rem;
aspect-ratio: 1; aspect-ratio: 1;
object-fit: cover; object-fit: cover;
mask: mask: radial-gradient(at 70% 31%, #000 29%, #0000 30%),
radial-gradient(at 70% 31%,#000 29%,#0000 30%), radial-gradient(at 30% 31%, #000 29%, #0000 30%),
radial-gradient(at 30% 31%,#000 29%,#0000 30%),
linear-gradient(#000 0 0) bottom/100% 50% no-repeat; linear-gradient(#000 0 0) bottom/100% 50% no-repeat;
clip-path: polygon(-41% 0,50% 91%, 141% 0); clip-path: polygon(-41% 0, 50% 91%, 141% 0);
position: relative; position: relative;
top: 40%; top: 40%;
left: 15%; left: 15%;

View File

@ -0,0 +1,49 @@
---
import { Image } from "astro:assets";
import baxter from "../images/baxter.png";
const backgroundColor = "#ffd4de";
const backgroundColorNightMode = "#240046";
---
<div class="widget-box">
<div class="baxter-widget widget">
<p class="widget-text">give baxter a pet :3</p>
<Image src={baxter} alt="my cat baxter that can be clicked on to pet" />
</div>
</div>
<style define:vars={{backgroundColor, backgroundColorNightMode}}>
.widget-box {
height: 100%;
width: 20vw;
margin-left: 2.5rem;
border-radius: 25px;
display: flex;
flex-direction: column;
grid-column: 3/4;
grid-row: 2/3;
}
.baxter-widget {
display: flex;
flex-direction: column;
gap: 2rem;
border-radius: 25px;
height: 35vh;
width: 20vw;
}
.widget {
background-color: var(--backgroundColor);
}
.widget-text {
padding: 0.5rem 0;
font-size: 1.25rem;
width: 19vw;
text-align: center;
border-bottom: 4px solid hotpink;
}
</style>

BIN
src/images/baxter.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -28,7 +28,7 @@ body {
background-color: var(--body-background-color); background-color: var(--body-background-color);
background-image: url("/sakura.webp"); background-image: url("/sakura.webp");
display: grid; display: grid;
grid-template-columns: 25vw 75vw; grid-template-columns: 25vw 50vw 25vw;
grid-template-rows: 10vh 100% 10vh; grid-template-rows: 10vh 100% 10vh;
row-gap: 5vh; row-gap: 5vh;
color: var(--text-color); color: var(--text-color);