astro first commit

This commit is contained in:
2024-11-22 00:42:48 +01:00
parent 13eb767fa0
commit d4e9b2027e
156 changed files with 11589 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
---
export type Props = {
progress: number
title: string
}
const { progress, title } = Astro.props
---
<div class="progress">
<span>{title}</span>
<div style={`width: ${progress * 100}%`}></div>
</div>
<style>
.progress {
box-sizing: border-box;
width: 100%;
position: relative;
background: var(--clr-light);
margin: 0.5em 0;
padding: 0.1em 0.5em;
border: 1px solid var(--clr-dark);
}
.progress span {
position: relative;
z-index: 1;
}
.progress div {
height: 100%;
background: var(--clr-primary);
position: absolute;
top: 0;
left: 0;
z-index: 0;
}
</style>