Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8,331 changes: 8,320 additions & 11 deletions package-lock.json

Large diffs are not rendered by default.

Binary file added src/assets/sky.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/windows.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/windows2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions src/carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.carousel__container{
width: 100%;
overflow-x: hidden;
display: flex;
position: relative;
}

.carousel__container::after{
content: '<';
color: white;
width: 50px;
height: 50px;
background: rgba(0,0,0,0.5);
position: absolute;
display: flex;
align-items: center;
justify-content: center;
font-weight: bolder;
font-size: 25pt;
border-radius: 50%;
left: 10px;
top: 50%;
}

.carousel__container::before{
content: '>';
color: white;
width: 50px;
height: 50px;
background: rgba(0,0,0,0.5);
position: absolute;
display: flex;
align-items: center;
justify-content: center;
font-weight: bolder;
font-size: 25pt;
border-radius: 50%;
right: 10px;
top: 50%;
}

.carousel__item{
min-width: 100%;
display: flex;
}

.carousel__item img{
width: 100%;
height: 100%;
object-fit: cover;
}
14 changes: 14 additions & 0 deletions src/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<link rel="stylesheet" href="./table.css">
<link rel="stylesheet" href="./toggle.css">
<link rel="stylesheet" href="./tooltip.css">
<link rel="stylesheet" href="./carousel.css">
</head>

<body class="with-menu">
Expand Down Expand Up @@ -191,6 +192,19 @@ <h3>Modal:</h3>
</div>
</div>
</div> <br />
<div class="carousel__example">
<section class="carousel__container">
<div class="carousel__item">
<img src="./assets/sky.jpg" alt="Imagem 1">
</div>
<div class="carousel__item">
<img src="./assets/windows.jpg" alt="Imagem 2">
</div>
<div class="carousel__item">
<img src="./assets/windows2.jpg" alt="Imagem 3">
</div>
</section>
</div>

</main>
<!-- <footer>
Expand Down
5 changes: 5 additions & 0 deletions src/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ li:hover {
border-radius: 4px;
}

.carousel__example{
width: 800px;
margin: 20px auto;
}

.card.highlight {
background: var(--primaria);
color: white;
Expand Down