11---
2- import { undefined } from ' astro:schema' ;
3-
2+ import { undefined } from " astro:schema" ;
43
54interface Props {
65 variant: " light" | " dark" ;
@@ -11,41 +10,37 @@ interface Props {
1110}
1211
1312const { variant, title = undefined , styles = " " } = Astro .props as Props ;
14-
1513---
1614
1715<div class ={ ` wrapper ${variant } ` } style ={ styles } >
1816 <div class =" circlesBar" >
19- <div class =" circle green" / >
20- <div class =" circle yellow" / >
21- <div class =" circle red" / >
17+ <div class =" circle green" ></ div >
18+ <div class =" circle yellow" ></ div >
19+ <div class =" circle red" ></ div >
2220 </div >
2321
2422 <div class =" infoContainer" >
25- { title && (
26- <span class = " title" >{ title } </span >
27- )}
23+ { title && <span class = " title" >{ title } </span >}
2824
2925 <slot />
3026 </div >
31-
3227</div >
3328
3429<style >
35- .wrapper{
30+ .wrapper {
3631 display: flex;
3732 flex-direction: column;
3833 border-radius: 12px;
3934 padding: 0px 20px 30px 20px;
4035 border: 2px solid var(--secondary);
4136 overflow-y: hidden;
4237 backdrop-filter: blur(32px);
43- box-shadow: 0px 10px 5px rgba(0,0,0, 0.1);
38+ box-shadow: 0px 10px 5px rgba(0, 0, 0, 0.1);
4439 width: 100%;
4540 height: auto;
4641 }
4742
48- .circlesBar{
43+ .circlesBar {
4944 display: flex;
5045 flex-direction: row;
5146 align-items: center;
@@ -55,44 +50,44 @@ const { variant, title = undefined, styles = "" } = Astro.props as Props;
5550 padding-top: 20px;
5651 }
5752
58- .circle{
53+ .circle {
5954 width: 10px;
6055 height: 10px;
6156 border-radius: 50%;
6257 }
6358
64- .red{
59+ .red {
6560 background-color: var(--danger);
6661 }
6762
68- .yellow{
63+ .yellow {
6964 background-color: var(--warning);
7065 }
7166
72- .green{
67+ .green {
7368 background-color: var(--success);
7469 }
7570
76- .infoContainer{
71+ .infoContainer {
7772 width: 100%;
7873 padding: 10px 0px;
7974 display: flex;
8075 flex-direction: column;
8176 gap: 10px;
8277 }
8378
84- .title{
79+ .title {
8580 font-weight: 700;
8681 font-size: 20px;
8782 }
8883
89- .light{
84+ .light {
9085 background-color: var(--lightDimmed);
9186 color: var(--light);
9287 }
9388
94- .dark{
89+ .dark {
9590 background-color: var(--darkDimmed);
9691 color: var(--light);
9792 }
98- </style >
93+ </style >
0 commit comments