He aquí mi aporte, le he agregado más cosas de CSS
HTML
<div class="window">
<div class="glass glass1"></div>
<div class="glass glass2"></div>
<div class="glass glass3"></div>
</div>
CSS
:root {
--purple: #451171;
--blue: #89d5e0;
--orange-dark: #fc7000;
}
body{
box-sizing: border-box;
margin: 0;
height: 100vh;
padding-bottom: 30vmin;
display: flex;
justify-content: center;
align-items: center;
background: var(--purple);
background-repeat: no-repeat;
background-image: linear-gradient(to top, green 10%, rgba(0,0,0,0) 10%);
}
.window {
display: grid;
grid-template-columns: repeat(2, 40%);
grid-auto-rows: 40%;
grid-gap: 10px;
place-content: center;
background: var(--orange-dark);
box-shadow: 0vmin 0vmin 3vmin 2vmin rgba(0,0,0, 0.3);
height: 50vmin;
width: 50vmin;
position: relative;
}
.window::before {
content: '';
position: absolute;
bottom: -5vmin;
justify-self: center;
height: 5vmin;
width: 60vmin;
background: var(--orange-dark);
box-shadow: 0vmin 0vmin 2vmin 2vmin rgba(0,0,0, 0.3);
}
.window::after {
content: '';
position: absolute;
bottom: 0vmin;
right: 6vmin;
height: 30vmin;
width: 16vmin;
background-repeat: no-repeat;
background-image:
/* maceta */
linear-gradient(75deg, rgba(0,0,0,0) 40%, brown 40%),
linear-gradient(105deg, brown 40%, rgba(0,0,0,0) 40%),
/* centro*/
radial-gradient(yellow 50%, rgba(0,0,0,0) 40%),
/* petalos*/
radial-gradient(red 50%, rgba(0,0,0,0) 40%),
radial-gradient(red 50%, rgba(0,0,0,0) 40%),
radial-gradient(red 50%, rgba(0,0,0,0) 40%),
radial-gradient(red 50%, rgba(0,0,0,0) 40%),
radial-gradient(red 50%, rgba(0,0,0,0) 40%),
/* tallo*/
linear-gradient(85deg, rgba(0,0,0,0) 40%, green 40%, rgba(0,0,0,0) 50% );
background-position:
/* maceta*/
2vmin 20vmin,
8vmin 20vmin,
/* centro*/
6vmin 5vmin,
/* petalos*/
5vmin 1.5vmin,
2.5vmin 4.5vmin,
4vmin 7.5vmin,
7.5vmin 7vmin,
8vmin 3.5vmin,
/* tallo*/
5vmin 6vmin;
background-size:
/* maceta*/
8vmin 10vmin,
16vmin 10vmin,
/* centro*/
5vmin 5vmin,
/* petalos*/
6vmin 6vmin,
6vmin 6vmin,
6vmin 6vmin,
6vmin 6vmin,
6vmin 6vmin,
/* tallo*/
10vmin 20vmin;
;
}
.glass {
box-shadow:
inset 0vmin 0vmin 0.5vmin 1vmin rgba(0,0,0, 0.2),
0vmin 0vmin 2vmin 1vmin rgba(0,0,0, 0.2);
background: var(--blue);
}
.glass3{
grid-column: 1 / -1;
}
¿Quieres ver más aportes, preguntas y respuestas de la comunidad?