mirror of
https://github.com/TheTaz25/denis.ergin.git
synced 2025-07-12 02:18:47 +00:00
feat(slides): add slides for advanced css selectors
This commit is contained in:
parent
b65ca0cc4c
commit
48333ff207
8 changed files with 1086 additions and 0 deletions
33
src/components/slides/css-selectors-advanced/nth-box.astro
Normal file
33
src/components/slides/css-selectors-advanced/nth-box.astro
Normal file
|
@ -0,0 +1,33 @@
|
|||
---
|
||||
interface Props {
|
||||
amount: number
|
||||
}
|
||||
|
||||
const { amount } = Astro.props;
|
||||
---
|
||||
|
||||
<div class="flex">
|
||||
{ new Array(amount).fill(0).map((_, index) => (
|
||||
<div class="child">
|
||||
{ index + 1 }
|
||||
</div>
|
||||
)) }
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.flex {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
}
|
||||
|
||||
.child {
|
||||
background: lightgray;
|
||||
min-height: 150px;
|
||||
min-width: 150px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue