Skip to content

Commit

Permalink
hero content title, spacing, about image & responsive styles
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonWingerAir committed Jan 28, 2024
1 parent ca4d596 commit de5c58e
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 37 deletions.
Binary file removed images/pexels-scott-webb-2824173.jpg
Binary file not shown.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ <h3>UI/UX</h3>
</a>
</section>
<div class="line"></div>

<div id="gap-cover"></div>

<section id="about">
Expand Down
40 changes: 22 additions & 18 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,8 @@ h1 {
}
}
#hero-content div h2:nth-of-type(2) {
margin-top: -50px;
color: #757575;
background-image: url("images/pexels-scott-webb-2824173.jpg");
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
animation: filling 45s linear forwards;
animation-iteration-count: 3;
margin-top: -66px;
color: #4db6ac;
}
#hero-content div h2 span {
font-size: 220px;
Expand Down Expand Up @@ -152,7 +147,7 @@ h1 {
#scroll {
position: absolute;
z-index: 1;
top: 78%;
bottom: 12vh;
background: rgba(0, 0, 0, 0.3);
right: 25%;
width: 120px;
Expand Down Expand Up @@ -186,7 +181,7 @@ h1 {
#gap-cover {
position: relative;
z-index: 1;
height: 200px;
height: 300px;
background: #fafafa;
scale: 1.02;
}
Expand All @@ -212,14 +207,17 @@ h1 {
}
#about #about-img {
text-align: right;
padding-right: 10%;
}
#about #about-img img {
position: relative;
z-index: 1;
top: -150px;
width: 525px;
top: -30px;
width: 300px;
padding: 0 22px 0 52px;
filter: hue-rotate(150deg);
filter: drop-shadow(-10px -10px);
box-shadow: 0px 0px 105px 45px rgba(38, 166, 153, 0.9);
}

#hide-bg-img {
Expand All @@ -234,7 +232,8 @@ footer {
position: relative;
background-color: #fafafa;
text-align: center;
padding: 50px;
padding-top: 275px;
padding-bottom: 50px;
}
footer a {
background: #212121;
Expand All @@ -248,7 +247,7 @@ footer a {

@media screen and (max-width: 988px) {
#hero-content {
padding: 0 42px;
padding-left: 42px;
}
#hero-content div h2 {
font-size: 114px;
Expand All @@ -264,6 +263,7 @@ footer a {
margin-top: 10px;
}
#hero-content #bg-img {
position: absolute;
top: 19%;
right: 12%;
opacity: 54%;
Expand All @@ -278,21 +278,26 @@ footer a {
font-weight: 600;
font-size: 12px;
}
#gap-cover {
display: none;
}
#about {
grid-template-columns: 1fr;
margin-bottom: 15px;
margin-bottom: 155px;
top: 55px;
}
#about #about-img {
text-align: center;
padding-right: 0;
}
#about #about-img img {
width: 240px;
top: 35px;
top: 50%;
}
}
@media screen and (max-width: 786px) {
#hero-content {
min-height: calc(75vh - 112px);
min-height: calc(85vh - 112px);
}
#hero-content div h2 {
font-size: 105px;
Expand Down Expand Up @@ -333,7 +338,6 @@ footer a {
}
#scroll {
z-index: 1;
top: 74%;
width: 94px;
height: 94px;
font-size: 13px;
Expand All @@ -346,7 +350,7 @@ footer a {
#scroll {
width: 82px;
height: 82px;
top: 69%;
bottom: 12vh;
}
}
@media screen and (max-width: 430px) {
Expand Down
2 changes: 1 addition & 1 deletion style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 25 additions & 18 deletions style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,8 @@ h1 {
}

&:nth-of-type(2) {
margin-top: -50px;
color: #757575;
background-image: url('images/pexels-scott-webb-2824173.jpg');
-webkit-text-fill-color: transparent;
-webkit-background-clip: text;
animation: filling 45s linear forwards;
animation-iteration-count: 3;
margin-top: -66px;
color: #4db6ac;
}

span {
Expand Down Expand Up @@ -113,7 +108,7 @@ h1 {
#scroll {
position: absolute;
z-index: 1;
top: 78%;
bottom: 12vh;
background: rgba($color: #000000, $alpha: 0.3);
right: 25%;
width: 120px;
Expand Down Expand Up @@ -149,7 +144,7 @@ h1 {
#gap-cover {
position: relative;
z-index: 1;
height: 200px;
height: 300px;
background: #fafafa;
scale: 1.02;
}
Expand Down Expand Up @@ -178,14 +173,19 @@ h1 {

#about-img {
text-align: right;
padding-right: 10%;

img {
position: relative;
z-index: 1;
top: -150px;
width: 525px;
top: -30px;
width: 300px;
padding: 0 22px 0 52px;
filter: hue-rotate(150deg);
filter: drop-shadow(-10px -10px);
-webkit-box-shadow:0px 0px 105px 45px rgba(38,166,153,0.9);
-moz-box-shadow: 0px 0px 105px 45px rgba(38,166,153,0.9);
box-shadow: 0px 0px 105px 45px rgba(38,166,153,0.9);
}
}
}
Expand All @@ -202,7 +202,8 @@ footer {
position: relative;
background-color: #fafafa;
text-align: center;
padding: 50px;
padding-top: 275px;
padding-bottom: 50px;

a {
background: #212121;
Expand All @@ -217,7 +218,7 @@ footer {

@media screen and (max-width: 988px) {
#hero-content {
padding: 0 42px;
padding-left: 42px;

div {
h2 {
Expand All @@ -239,6 +240,7 @@ footer {
}

#bg-img {
position: absolute;
top: 19%;
right: 12%;
opacity: 54%;
Expand All @@ -256,24 +258,30 @@ footer {
font-size: 12px;
}

#gap-cover {
display: none;
}

#about {
grid-template-columns: 1fr;
margin-bottom: 15px;
margin-bottom: 155px;
top: 55px;

#about-img {
text-align: center;
padding-right: 0;

img {
width: 240px;
top: 35px;
top: 50%;
}
}
}
}

@media screen and (max-width: 786px) {
#hero-content {
min-height: calc(75vh - 112px);
min-height: calc(85vh - 112px);

div h2 {
font-size: 105px;
Expand Down Expand Up @@ -325,7 +333,6 @@ footer {

#scroll {
z-index: 1;
top: 74%;
width: 94px;
height: 94px;
font-size: 13px;
Expand All @@ -340,7 +347,7 @@ footer {
#scroll {
width: 82px;
height: 82px;
top: 69%;
bottom: 12vh;
}
}

Expand Down

0 comments on commit de5c58e

Please sign in to comment.