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:
parent
e41979a67b
commit
771c8beeec
BIN
baxter.webp
Normal file
BIN
baxter.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.5 KiB |
@ -1,320 +1,321 @@
|
||||
:root {
|
||||
--header-footer-color: #BFD9C6CC;
|
||||
--text-color-light-red: #E94E77;
|
||||
--link-color: #E94E77;
|
||||
--link-hover-color: #664625;
|
||||
--header-footer-color: #bfd9c6cc;
|
||||
--text-color-light-red: #e94e77;
|
||||
--link-color: #e94e77;
|
||||
--link-hover-color: #664625;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: alwaysinmyheart;
|
||||
src: url("../site/resources/fonts/alwaysinmyheart.woff2");
|
||||
font-family: alwaysinmyheart;
|
||||
src: url("../site/resources/fonts/alwaysinmyheart.woff2");
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: learning-curve-regular;
|
||||
src: url("../site/resources/fonts/learning-curve-regular.woff2");
|
||||
font-family: learning-curve-regular;
|
||||
src: url("../site/resources/fonts/learning-curve-regular.woff2");
|
||||
}
|
||||
|
||||
*, *::before, *::after {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
font-size: 16px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
body {
|
||||
height: 100vh;
|
||||
width: auto;
|
||||
background-image: url("../img/background.webp");
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
width: auto;
|
||||
background-image: url("../img/background.webp");
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.container {
|
||||
height: 80vh;
|
||||
width: auto;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
height: 80vh;
|
||||
width: auto;
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
img {
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
object-fit: contain;
|
||||
max-height: 100%;
|
||||
width: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
header {
|
||||
width: 100vw;
|
||||
height: 8vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--header-footer-color);
|
||||
width: 100vw;
|
||||
height: 8vh;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background: var(--header-footer-color);
|
||||
}
|
||||
|
||||
footer {
|
||||
width: 100vw;
|
||||
height: 8vh;
|
||||
background: var(--header-footer-color);
|
||||
padding: 0 2rem;
|
||||
width: 100vw;
|
||||
height: 8vh;
|
||||
background: var(--header-footer-color);
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
section {
|
||||
display: flex;
|
||||
width: 100vw;
|
||||
height: auto;
|
||||
display: flex;
|
||||
width: 100vw;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: var(--link-color);
|
||||
text-decoration: none;
|
||||
color: var(--link-color);
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--link-hover-color);
|
||||
color: var(--link-hover-color);
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style-type: none;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
li {
|
||||
padding: 0.25rem;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
|
||||
.footer-container {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.cafe {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.message {
|
||||
margin-left: -15vw;
|
||||
font-size: 3rem;
|
||||
font-family: alwaysinmyheart;
|
||||
color: var(--text-color-light-red);
|
||||
margin-left: -15vw;
|
||||
font-size: 3rem;
|
||||
font-family: alwaysinmyheart;
|
||||
color: var(--text-color-light-red);
|
||||
}
|
||||
|
||||
.credits {
|
||||
font-size: 1.25rem;
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
.header-text {
|
||||
font-family: alwaysinmyheart;
|
||||
font-size: 3.25rem;
|
||||
color: var(--text-color-light-red);
|
||||
font-family: alwaysinmyheart;
|
||||
font-size: 3.25rem;
|
||||
color: var(--text-color-light-red);
|
||||
}
|
||||
|
||||
.fa-solid.fa-heart {
|
||||
color: var(--text-color-light-red);
|
||||
color: var(--text-color-light-red);
|
||||
}
|
||||
|
||||
.tileOne {
|
||||
position: absolute;
|
||||
left: 26.61%;
|
||||
top: 25.78%;
|
||||
width: 10.05%;
|
||||
height: 16.25%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 26.61%;
|
||||
top: 25.78%;
|
||||
width: 10.05%;
|
||||
height: 16.25%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileTwo {
|
||||
position: absolute;
|
||||
left: 38.39%;
|
||||
top: 25.94%;
|
||||
width: 11.2%;
|
||||
height: 16.64%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 38.39%;
|
||||
top: 25.94%;
|
||||
width: 11.2%;
|
||||
height: 16.64%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileThree {
|
||||
position: absolute;
|
||||
left: 50.52%;
|
||||
top: 25.78%;
|
||||
width: 11.88%;
|
||||
height: 17.34%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 50.52%;
|
||||
top: 25.78%;
|
||||
width: 11.88%;
|
||||
height: 17.34%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileFour {
|
||||
position: absolute;
|
||||
left: 63.44%;
|
||||
top: 25.94%;
|
||||
width: 10.89%;
|
||||
height: 17.27%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 63.44%;
|
||||
top: 25.94%;
|
||||
width: 10.89%;
|
||||
height: 17.27%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileFive {
|
||||
position: absolute;
|
||||
left: 25.68%;
|
||||
top: 43.05%;
|
||||
width: 10.94%;
|
||||
height: 17.27%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 25.68%;
|
||||
top: 43.05%;
|
||||
width: 10.94%;
|
||||
height: 17.27%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileSix {
|
||||
position: absolute;
|
||||
left: 37.81%;
|
||||
top: 43.59%;
|
||||
width: 11.41%;
|
||||
height: 17.03%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 37.81%;
|
||||
top: 43.59%;
|
||||
width: 11.41%;
|
||||
height: 17.03%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileSeven {
|
||||
position: absolute;
|
||||
left: 49.74%;
|
||||
top: 43.44%;
|
||||
width: 12.5%;
|
||||
height: 17.73%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 49.74%;
|
||||
top: 43.44%;
|
||||
width: 12.5%;
|
||||
height: 17.73%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileEight {
|
||||
position: absolute;
|
||||
left: 62.76%;
|
||||
top: 43.52%;
|
||||
width: 12.4%;
|
||||
height: 17.73%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 62.76%;
|
||||
top: 43.52%;
|
||||
width: 12.4%;
|
||||
height: 17.73%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileNine {
|
||||
position: absolute;
|
||||
left: 24.74%;
|
||||
top: 60.94%;
|
||||
width: 10.57%;
|
||||
height: 16.48%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 24.74%;
|
||||
top: 60.94%;
|
||||
width: 10.57%;
|
||||
height: 16.48%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileTen {
|
||||
position: absolute;
|
||||
left: 37.03%;
|
||||
top: 61.33%;
|
||||
width: 11.77%;
|
||||
height: 16.56%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 37.03%;
|
||||
top: 61.33%;
|
||||
width: 11.77%;
|
||||
height: 16.56%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileEleven {
|
||||
position: absolute;
|
||||
left: 49.64%;
|
||||
top: 61.64%;
|
||||
width: 12.03%;
|
||||
height: 17.19%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 49.64%;
|
||||
top: 61.64%;
|
||||
width: 12.03%;
|
||||
height: 17.19%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.tileTwelve {
|
||||
position: absolute;
|
||||
left: 62.55%;
|
||||
top: 61.8%;
|
||||
width: 13.07%;
|
||||
height: 17.11%;
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 62.55%;
|
||||
top: 61.8%;
|
||||
width: 13.07%;
|
||||
height: 17.11%;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.visitor-note {
|
||||
margin: 0 2rem;
|
||||
margin-top: 3rem;
|
||||
margin: 0 2rem;
|
||||
margin-top: 3rem;
|
||||
}
|
||||
|
||||
.read-this {
|
||||
cursor: pointer;
|
||||
height: 250px;
|
||||
width: auto;
|
||||
cursor: pointer;
|
||||
height: 250px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.love-note {
|
||||
height: 80vh;
|
||||
width: 40vw;
|
||||
background-image: url(../img/pink-paper.webp);
|
||||
padding: 3rem;
|
||||
z-index: 3;
|
||||
position: absolute;
|
||||
left: 25%;
|
||||
display: none;
|
||||
height: 80vh;
|
||||
width: 40vw;
|
||||
background-image: url(../img/pink-paper.webp);
|
||||
padding: 3rem;
|
||||
z-index: 3;
|
||||
position: absolute;
|
||||
left: 25%;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.note {
|
||||
font-size: 1.75rem;
|
||||
line-height: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
font-family: learning-curve-regular;
|
||||
font-size: 1.75rem;
|
||||
line-height: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
font-family: learning-curve-regular;
|
||||
}
|
||||
|
||||
.close-note {
|
||||
height: 2vh;
|
||||
width: 2vw;
|
||||
background-color: #00000000;
|
||||
border: none;
|
||||
font-size: 2rem;
|
||||
display: none;
|
||||
height: 2vh;
|
||||
width: 2vw;
|
||||
background-color: #00000000;
|
||||
border: none;
|
||||
font-size: 2rem;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.close-note::after {
|
||||
display: inline-block;
|
||||
content: "\00d7";
|
||||
display: inline-block;
|
||||
content: "\00d7";
|
||||
}
|
||||
|
||||
.items {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.baxter {
|
||||
width: 300px;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 20%;
|
||||
z-index: 1;
|
||||
width: 300px;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
top: 20%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.headpats {
|
||||
position: absolute;
|
||||
left: 86.12%;
|
||||
top: 23.2%;
|
||||
width: 3%;
|
||||
height: 3.03%;
|
||||
transform: rotate(17deg);
|
||||
z-index: 2;
|
||||
position: absolute;
|
||||
left: 84.12%;
|
||||
top: 23.2%;
|
||||
width: 3%;
|
||||
height: 3.03%;
|
||||
transform: rotate(17deg);
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.baxter-thought {
|
||||
position: relative;
|
||||
top: -2%;
|
||||
left: 85%;
|
||||
width: 20%;
|
||||
height: 20%;
|
||||
width: 150px;
|
||||
height: 125px;
|
||||
position: relative;
|
||||
top: -2%;
|
||||
left: 85%;
|
||||
width: 20%;
|
||||
height: 20%;
|
||||
width: 150px;
|
||||
height: 125px;
|
||||
}
|
||||
|
||||
.trans-pride-heart {
|
||||
width: 200px;
|
||||
margin-left: 3rem;
|
||||
aspect-ratio: 1;
|
||||
object-fit: cover;
|
||||
mask:
|
||||
radial-gradient(at 70% 31%,#000 29%,#0000 30%),
|
||||
radial-gradient(at 30% 31%,#000 29%,#0000 30%),
|
||||
width: 200px;
|
||||
margin-left: 3rem;
|
||||
aspect-ratio: 1;
|
||||
object-fit: cover;
|
||||
mask: radial-gradient(at 70% 31%, #000 29%, #0000 30%),
|
||||
radial-gradient(at 30% 31%, #000 29%, #0000 30%),
|
||||
linear-gradient(#000 0 0) bottom/100% 50% no-repeat;
|
||||
clip-path: polygon(-41% 0,50% 91%, 141% 0);
|
||||
position: relative;
|
||||
top: 40%;
|
||||
left: 15%;
|
||||
transform: rotate(-15deg);
|
||||
}
|
||||
clip-path: polygon(-41% 0, 50% 91%, 141% 0);
|
||||
position: relative;
|
||||
top: 40%;
|
||||
left: 15%;
|
||||
transform: rotate(-15deg);
|
||||
}
|
||||
|
49
src/components/WidgetBar.astro
Normal file
49
src/components/WidgetBar.astro
Normal 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
BIN
src/images/baxter.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -28,7 +28,7 @@ body {
|
||||
background-color: var(--body-background-color);
|
||||
background-image: url("/sakura.webp");
|
||||
display: grid;
|
||||
grid-template-columns: 25vw 75vw;
|
||||
grid-template-columns: 25vw 50vw 25vw;
|
||||
grid-template-rows: 10vh 100% 10vh;
|
||||
row-gap: 5vh;
|
||||
color: var(--text-color);
|
||||
|
Loading…
x
Reference in New Issue
Block a user