Skip to content

Commit

Permalink
this makes a lot more sense
Browse files Browse the repository at this point in the history
  • Loading branch information
4yman-0 committed Jul 12, 2024
1 parent f389a32 commit 96d896a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
17 changes: 5 additions & 12 deletions css/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.hero {
min-height: calc(100vh - 60px);
min-height: 100vh;
display: flex;
flex-direction: row;
justify-content: space-around;
Expand Down Expand Up @@ -33,8 +33,8 @@

.hero-img {
height: auto;
max-width: 80vw;
max-height: calc(100vh - 60px);
max-width: 90vw;
max-height: 100vh;
aspect-ratio: 1 / 1;
margin-top: 1rem;
border-radius: 5%;
Expand Down Expand Up @@ -77,7 +77,7 @@
}

.link-grid-item:last-child {
background-color: #0006;
background-color: var(--bg-3);
}

.contact {
Expand Down Expand Up @@ -140,11 +140,4 @@
.link-flex__btn {
padding: .5rem;
}
}


@media (max-width: 470px) {
.hero {
min-height: calc( 100vh - 50px );
}
}
}
20 changes: 11 additions & 9 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
:root {
--bg-1: #000;
--bg-2: #111;
--bg-3: #222;
--text: #EEE;
--color-1: #1C4;
--color-2: #228;
Expand All @@ -11,16 +12,16 @@

@media (prefers-color-scheme: light) {
:root {
--bg-1: #f5f5f5;
--bg-2: #fff;
--bg-1: #fff;
--bg-2: #eee;
--bg-3: #ddd;
--text: #111;
--color-1: #3c4;
--color-2: #8cf;
--color-2: #9ae;
}
}

body {
min-height: 100vh;
color: var(--text);
background: var(--bg-1);
font-family: var(--font-1);
Expand Down Expand Up @@ -60,11 +61,13 @@ a:focus{
color: var(--text);
padding: 0.5rem 1rem;
transition: background 0.2s linear,
color 0.2s linear;
outline 0.2s linear;
}

.button:hover {
background: var(--bg-2);
text-decoration: none;
background: var(--bg-3);
outline: 1px solid var(--color-1);
}

section, .footer {
Expand All @@ -76,9 +79,8 @@ section, .footer {
.header {
position: sticky;
top: 0;
height: 60px;
z-index: 1000;
padding: 0 1rem;
padding: .4rem 1rem;
display: flex;
justify-content: space-between;
align-items: center;
Expand All @@ -87,7 +89,7 @@ section, .footer {
}

.logo {
padding: 0.5rem;
padding: 0.3rem;
color: #EEE;
background: var(--color-1);
border-radius: 4px;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h2 class="about__txt">Things:</h2>
<h2 class="contact__txt">Contact me:</h2>
<ul class="links-flex">
<li class="link-flex">
<a class="button link-flex__btn" href="https://www.github.com/4yman-0">GitHub</a>
<a class="button link-flex__btn" href="https://www.github.com/4yman-0">Github</a>
</li>
<li class="link-flex">
<a class="button link-flex__btn" href="https://web.facebook.com/profile.php?id=61559737784942">FaceBook</a>
Expand Down

0 comments on commit 96d896a

Please sign in to comment.