-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Decompose .contacts into separate component
- Loading branch information
Showing
4 changed files
with
81 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<section class="contacts"> | ||
<div class="contacts__container title-content"> | ||
|
||
<h2 id="contacts">Contacts</h2> | ||
|
||
<div class="contacts__items"> | ||
|
||
@@for (var i = 0; i < 2; i++) { | ||
<a href="#" class="contacts__item contacts__item_empty"></a> | ||
} | ||
|
||
</div> | ||
|
||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
@use "../../scss/abstracts/variables" as *; | ||
@use "../../scss/abstracts/mixins" as *; | ||
|
||
|
||
.contacts { | ||
|
||
&__container { | ||
@include container(750px, $section-gap); | ||
} | ||
|
||
&__items { | ||
@include flex(flex, row, 20px, flex-start, center); | ||
flex-wrap: wrap; | ||
} | ||
|
||
&__item { | ||
@include flex(flex, row, 0, center, center); | ||
width: 60px; | ||
height: 60px; | ||
|
||
background: #1E293B; | ||
border-radius: 50px; | ||
|
||
transition: $anim; | ||
|
||
img { | ||
width: 25px; | ||
height: 25px; | ||
} | ||
} | ||
} | ||
|
||
@media (hover: hover) { | ||
.contacts { | ||
|
||
&__item:hover { | ||
background: #2C66C3; | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: 575.5px) { | ||
.contacts { | ||
|
||
&__container { | ||
padding-top: $section-gap-min; | ||
} | ||
|
||
&__items { | ||
gap: 10px; | ||
} | ||
|
||
&__item { | ||
width: 50px; | ||
height: 50px; | ||
|
||
img { | ||
width: 22px; | ||
height: 22px; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters