Skip to content

Commit 3a98d6c

Browse files
committed
better container design
1 parent eacdb2d commit 3a98d6c

2 files changed

Lines changed: 20 additions & 9 deletions

File tree

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 class="sectionHeading">Über Mich</h2>
4646
habe ich auch angefangen mit node.js Webserver und Backends zu
4747
programmieren.
4848
</p>
49-
<h3>Programmiersprachen und andere Technologien</h3>
49+
<h2>Programmiersprachen und andere Technologien</h2>
5050
<div class="languageSelector">
5151
<div id="languageSelectorBg"></div>
5252
<button class="language" onclick="selectLanguage(1)" id="select1">

style.css

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ dialog#ha > a {
8080
header {
8181
min-height: 100vh;
8282
background: linear-gradient(var(--petrol-transparent), rgba(0, 0, 0, 0.7)),
83-
url(.//img/headerBackground.png) center/cover no-repeat;
83+
url(./img/headerBackground.png) center/cover no-repeat;
8484
}
8585
/*header link liste*/
8686
.navbar {
@@ -134,12 +134,13 @@ header {
134134
background-color: hsla(0, 0%, 0%, 0);
135135
border: none;
136136
visibility: hidden;
137+
display: none;
137138
}
138139
.linkContainer {
139-
width: calc(100% - 100px);
140+
width: calc(100% - 0px);
140141
display: flex;
141142
flex-direction: row;
142-
align-content: center;
143+
justify-content: end;
143144
}
144145
.navbarLink {
145146
height: 60px !important;
@@ -173,6 +174,7 @@ header {
173174
}
174175
.navbarButton {
175176
visibility: visible;
177+
display: block;
176178
}
177179
}
178180
.showLinks {
@@ -270,9 +272,11 @@ h6 {
270272
margin: 25px;
271273

272274
background-color: var(--bg-grey);
273-
box-shadow: inset 0 0 5px black;
274275
border-radius: 25px;
275276

277+
background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 10%));
278+
box-shadow: inset 0 1px 2px hsl(0, 0%, 30%);
279+
276280
font-size: larger;
277281
overflow: hidden;
278282
}
@@ -291,12 +295,16 @@ div.languageSelector {
291295
gap: 4px;
292296

293297
background-color: var(--bg-grey);
294-
box-shadow: inset 0 0 5px black;
298+
background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 10%));
299+
box-shadow: inset 0 1px 2px hsl(0, 0%, 30%);
295300
}
296301
#languageSelectorBg {
297302
position: absolute;
298303
width: 25%;
299-
height: 40px;
304+
height: 32px;
305+
margin-top: 4px;
306+
margin-bottom: 4px;
307+
300308
border-radius: 30px;
301309
background-color: var(--petrol-solid);
302310

@@ -313,8 +321,8 @@ button.language {
313321
border: none;
314322
border-radius: 25px;
315323

316-
font-size: 20px;
317-
font-weight: 700;
324+
font-size: 16px;
325+
font-weight: 500;
318326

319327
position: relative;
320328
z-index: 10;
@@ -394,6 +402,9 @@ button.language:hover {
394402

395403
border-radius: 40px 40px 0 0;
396404
background-color: var(--bg-grey);
405+
406+
background: linear-gradient(0deg, hsl(0, 0%, 5%), hsl(0, 0%, 10%));
407+
box-shadow: inset 0 1px 1px hsl(0, 0%, 30%);
397408
}
398409
.projekt img {
399410
border-radius: 0 0 40px 40px;

0 commit comments

Comments
 (0)