Skip to content

Commit 26d8eba

Browse files
committed
add github link to banner
1 parent 42d6dba commit 26d8eba

5 files changed

Lines changed: 54 additions & 23 deletions

File tree

img/logos/github-mark-white.svg

Lines changed: 1 addition & 0 deletions
Loading

index.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,13 @@
3636
<div class="banner animatedBorder">
3737
<h1>ERPI CODING</h1>
3838
<h2>Web-Developer</h2>
39-
<a href="#sectionProjects" class="bannerLink">Projekte &rarr;</a>
39+
<div class="line"></div>
40+
<div class="links">
41+
<a href="https://github.com/erpicoding" target="_blank"
42+
><img src="./img/logos/github-mark-white.svg" height="30px"
43+
/></a>
44+
<a href="#sectionProjects" class="bannerLink">Projekte &rarr;</a>
45+
</div>
4046
</div>
4147
</header>
4248
<main>

style.css

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ header {
158158
text-align: center;
159159
justify-content: space-evenly;
160160
position: relative;
161-
top: calc(50vh - 75px);
161+
top: calc(50vh - 90px);
162162
left: calc(50% - 150px);
163-
height: 150px;
163+
height: 180px;
164164
width: 300px;
165165
-webkit-backdrop-filter: blur(5px);
166166
backdrop-filter: blur(5px);
@@ -169,10 +169,21 @@ header {
169169
border-radius: 25px;
170170
transition: 500ms;
171171
}
172-
.banner .bannerLink {
172+
.banner .line {
173+
height: 2px;
174+
width: 260px;
175+
border-radius: 1px;
176+
background-color: hsl(0, 0%, 50%);
177+
}
178+
.banner .links {
179+
width: 100%;
180+
display: flex;
181+
flex-direction: row;
182+
justify-content: space-evenly;
183+
}
184+
.banner .links .bannerLink {
173185
height: 20px;
174186
width: 100px;
175-
margin: 0px;
176187
padding: 5px;
177188
align-content: center;
178189
font-weight: bold;
@@ -181,7 +192,7 @@ header {
181192
border-radius: 20px;
182193
transition: 1000ms;
183194
}
184-
.banner .bannerLink:hover {
195+
.banner .links .bannerLink:hover {
185196
background-color: hsl(0, 0%, 95%);
186197
color: hsl(0, 0%, 15%);
187198
}

style.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.

style.scss

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ header {
200200
justify-content: space-evenly;
201201

202202
position: relative;
203-
top: calc(50vh - 75px);
203+
top: calc(50vh - 90px);
204204
left: calc(50% - 150px);
205205

206-
height: 150px;
206+
height: 180px;
207207
width: 300px;
208208

209209
backdrop-filter: blur(5px);
@@ -213,23 +213,36 @@ header {
213213
border-radius: 25px;
214214
transition: 500ms;
215215

216-
.bannerLink {
217-
height: 20px;
218-
width: 100px;
216+
.line {
217+
height: 2px;
218+
width: 260px;
219219

220-
margin: 0px;
221-
padding: 5px;
220+
border-radius: 1px;
222221

223-
align-content: center;
224-
font-weight: bold;
225-
text-decoration: none;
222+
background-color: hsl(0, 0%, 50%);
223+
}
224+
.links {
225+
width: 100%;
226+
display: flex;
227+
flex-direction: row;
228+
justify-content: space-evenly;
229+
.bannerLink {
230+
height: 20px;
231+
width: 100px;
226232

227-
border: 2px solid $text;
228-
border-radius: 20px;
229-
transition: 1000ms;
230-
&:hover {
231-
background-color: $text;
232-
color: $bg-grey;
233+
padding: 5px;
234+
235+
align-content: center;
236+
font-weight: bold;
237+
text-decoration: none;
238+
239+
border: 2px solid $text;
240+
border-radius: 20px;
241+
transition: 1000ms;
242+
&:hover {
243+
background-color: $text;
244+
color: $bg-grey;
245+
}
233246
}
234247
}
235248
}

0 commit comments

Comments
 (0)