Skip to content

Commit

Permalink
update aula 2 - tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ppedrolucas committed Jan 24, 2024
1 parent 04bca07 commit 1688c6f
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 1 deletion.
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
<div class="library-content">
<button class="library-btn">
<span class="fa fas fa-book"></span>
<span>Sua biblioteca</span>
<span title="Ocultar Sua Biblioteca">Sua biblioteca</span
><!--Alteração minha-->
</button>
<span class="fa fa-plus"></span>
</div>
Expand All @@ -59,6 +60,15 @@
<a href="#">Cookies 🍪</a>
</div>

<!--Acrescimo sob minha criatividade-->
<div class="tags">
<a href="#" class="tag">JBL</a>
<a href="#" class="tag" id="year"></a>
<a href="#" class="tag">Açaí</a>
<a href="#" class="tag">Alura</a>
<a href="#" class="tag">Lá ele</a>
</div>

<div class="languages">
<button class="languages-btn">
<span class="fa fa-globe"></span>
Expand Down
5 changes: 5 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
var year = document.getElementById("year")
var data = new Date()
var ano = data.getFullYear()

year.innerHTML = ano
35 changes: 35 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ body {

.sidebar nav ul li a {
color: #b3b3b3;
display: flex; /*Acrescimo meu*/
gap: 8px; /*Acrescimo meu*/
text-decoration: none;
font-weight: 600;
font-size: 14px;
Expand All @@ -66,6 +68,7 @@ body {

.library .library-btn {
display: flex;
align-items: center; /*Acrescimo meu*/
margin-right: 10px;
color: #b3b3b3;
background-color: transparent;
Expand All @@ -89,6 +92,12 @@ body {
margin: 24px 10px;
}

.library-content .fa-plus:hover {
/*Acrescimo meu*/
color: #fff;
cursor: pointer;
}

.section-playlist {
display: flex;
align-items: flex-start;
Expand Down Expand Up @@ -157,6 +166,32 @@ body {
color: #fff;
}

/*Acrescimo meu*/
.sidebar .tags {
display: grid;
padding: 16px 0;
grid-template-columns: repeat(3, 1fr);
justify-content: space-between;
gap: 4px;
}
.tags .tag {
font-weight: 400;
background-color: rgba(255, 255, 255, 0.1);
border: 0.5px solid rgba(255, 255, 255, 0.1);
border-radius: 4px;
text-align: center;
text-decoration: none;
color: #878787;
padding: 4px 8px;
transition: 0.4s;
}

.tags .tag:hover {
background: transparent;
color: #878787;
}
/*Fim das Tags*/

.languages .languages-btn {
align-items: center;
background-color: transparent;
Expand Down

0 comments on commit 1688c6f

Please sign in to comment.