125 lines
3.1 KiB
Plaintext
125 lines
3.1 KiB
Plaintext
#
|
|
# ID: ebfc18
|
|
# Nazwa: Kod HTML flexbox
|
|
# Opis: Moj kod z lekcji 12.10.2023
|
|
# Publiczny: 1
|
|
# Data utworzenia/ostatniej edycji (UTC): 2023-10-15 13:51:00
|
|
#
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="pl">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Zadanie</title>
|
|
|
|
<style>
|
|
|
|
:root {
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
|
|
--bg-color: black;
|
|
|
|
--box-color: white;
|
|
|
|
--text-color: black;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
background: var(--bg-color);
|
|
|
|
}
|
|
|
|
.container {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
|
|
|
position: absolute;
|
|
|
|
background: var(--bg-color);
|
|
|
|
gap: 5%;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
.container .pos {
|
|
|
|
flex: 1;
|
|
|
|
}
|
|
|
|
.container .pos.mid {
|
|
|
|
flex: 2.75;
|
|
|
|
}
|
|
|
|
|
|
|
|
.left {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 2rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.left .box {
|
|
|
|
width: 100%;
|
|
|
|
background: var(--box-color);
|
|
|
|
aspect-ratio: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mid {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 5%;
|
|
|
|
padding: 0.5%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mid .box {
|
|
|
|
width: 31%;
|
|
|
|
background: var(--box-color);
|
|
|
|
aspect-ratio: 1;
|
|
|
|
border-radius: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
gap: 2rem;
|
|
|
|
}
|
|
|
|
.right .box {
|
|
|
|
width: 100%;
|
|
|
|
background: var(--box-color);
|
|
|
|
aspect-ratio: 1;
|
|
|
|
}
|
|
|
|
.mid .widebox {
|
|
|
|
flex: 0 0 100%;
|
|
|
|
background: var(--box-color);
|
|
|
|
height: 18%;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right .widebox {
|
|
|
|
width: 100%;
|
|
|
|
background: var(--box-color);
|
|
|
|
flex: auto 2;
|
|
|
|
}
|
|
|
|
.box, .widebox {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
color: var(--text-color);
|
|
|
|
padding: 1rem;
|
|
|
|
box-sizing: border-box;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<div class="pos left">
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="box"></div>
|
|
|
|
</div>
|
|
|
|
<div class="pos mid">
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="widebox"></div>
|
|
|
|
</div>
|
|
|
|
<div class="pos right">
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="widebox"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html> |