Skip to content

Commit a98b0b6

Browse files
author
Dyrits
committed
A partial stylesheet has been created for independent components.
1 parent 52d1b75 commit a98b0b6

6 files changed

Lines changed: 56 additions & 46 deletions

File tree

index.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ <h1>Hi, I'm <span>Solano Milan Diaz</span>, a Web Developer.</h1>
2727
I'm a Web Developer, I love to create beautiful and functional websites. <br>
2828
[This part can be filled with additional information.]
2929
</p>
30-
<a href="#" id="cv-link" target="_blank"><span id="cv-link-text">Download CV</span><span id="cv-link-icon"><i class="fas fa-download"></i></span></a>
30+
<div class="cv">
31+
<a href="#" class="cv-link" target="_blank"><span class="cv-link-text">Download CV</span><span class="cv-link-icon"><i class="fas fa-download"></i></span></a>
32+
</div>
3133
</article>
3234
</section>
3335
</header>
@@ -48,10 +50,10 @@ <h4>Information About me</h4>
4850
Lorem ipsum dolor sit amet consectetur, adipisicing elit.
4951
Harum non necessitatibus deleniti eum soluta.
5052
</p>
51-
<div class="btn-con">
52-
<a href="#" class="main-btn">
53-
<span class="btn-text">Download CV</span>
54-
<span class="btn-icon"><i class="fas fa-download"></i></span>
53+
<div class="cv">
54+
<a href="#" class="cv-link">
55+
<span class="cv-link-text">Download CV</span>
56+
<span class="cv-link-icon"><i class="fas fa-download"></i></span>
5557
</a>
5658
</div>
5759
</div>

styles/_components.scss

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.cv {
2+
display: flex;
3+
align-self: flex-start;
4+
&-link {
5+
border-radius: 30px;
6+
color: inherit;
7+
font-weight: 600;
8+
border: 1px solid var(--color-secondary);
9+
display: flex;
10+
align-self: flex-start;
11+
align-items: center;
12+
position: relative;
13+
overflow: hidden;
14+
&-text { padding: 0 2rem; }
15+
&-icon {
16+
background-color: var(--color-secondary);
17+
display: flex;
18+
align-items: center;
19+
justify-content: center;
20+
border-radius: 50%;
21+
padding: 1rem;
22+
}
23+
&:before {
24+
content: '';
25+
position: absolute;
26+
top: 0;
27+
right: 0;
28+
height: 100%;
29+
width: 100%;
30+
transform: translateX(100%);
31+
transition: var(--transition);
32+
background-color: var(--color-secondary);
33+
z-index: -5;
34+
}
35+
&:hover:before { transform: translateX(0); }
36+
}
37+
}

styles/_header.scss

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -49,38 +49,4 @@
4949
line-height: 2rem;
5050
}
5151
}
52-
}
53-
54-
#cv-link {
55-
border-radius: 30px;
56-
color: inherit;
57-
font-weight: 600;
58-
border: 1px solid var(--color-secondary);
59-
display: flex;
60-
align-self: flex-start;
61-
align-items: center;
62-
position: relative;
63-
overflow: hidden;
64-
&-text { padding: 0 2rem; }
65-
&-icon {
66-
background-color: var(--color-secondary);
67-
display: flex;
68-
align-items: center;
69-
justify-content: center;
70-
border-radius: 50%;
71-
padding: 1rem;
72-
}
73-
&:before {
74-
content: '';
75-
position: absolute;
76-
top: 0;
77-
right: 0;
78-
height: 100%;
79-
width: 100%;
80-
transform: translateX(100%);
81-
transition: var(--transition);
82-
background-color: var(--color-secondary);
83-
z-index: -5;
84-
}
85-
&:hover:before { transform: translateX(0); }
86-
}
52+
}

styles/styles.css

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/styles.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ section.container {
5757

5858
@import './controls';
5959
@import './header';
60+
@import './components';
6061

6162
/*About*/
6263
.about-container {

0 commit comments

Comments
 (0)