Skip to content

Commit

Permalink
fix: improved responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpaceNoodle committed Mar 7, 2024
1 parent c9d43f7 commit dbfb796
Show file tree
Hide file tree
Showing 9 changed files with 9,008 additions and 4,265 deletions.
13,179 changes: 8,930 additions & 4,249 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@angular/platform-browser-dynamic": "^17.2.2",
"eslint": "^8.57.0",
"rxjs": "~7.5.0",
"semantic-release": "^23.0.2",
"tslib": "^2.3.0",
"zone.js": "~0.14.4"
},
Expand Down
25 changes: 22 additions & 3 deletions src/app/components/about/about.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
}

#about-content {
display: -ms-grid;
display: grid;
display: flex;
-ms-grid-columns: 700px 500px;
grid-template-columns: 700px 500px;
max-width: 1200px;
Expand Down Expand Up @@ -44,7 +43,8 @@
}

#about-me {
width: 665px;
max-width: 700px;
width: 100%;
font-size: 25px;
margin: 50px 0 50px 40px;
}
Expand Down Expand Up @@ -96,4 +96,23 @@
transform: scaleX(-1);
opacity: 0.3;
margin-top: 30px;
width: 100%;
}

@media screen and (max-width: 768px) {
#about-img {
display: none;
}

#about-me {
margin: 0;
padding: 16px;
}

/* #tech-list {
display: -ms-grid;
display: grid;
-ms-grid-columns: auto;
grid-template-columns: auto;
} */
}
3 changes: 2 additions & 1 deletion src/app/components/contacts/contacts.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
}

.contact-me {
width: 800px;
max-width: 800px;
width: 100%;
margin: 0 auto 200px;
}

Expand Down
38 changes: 29 additions & 9 deletions src/app/components/experience/experience.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,19 @@
}

#experience-cards {
display: -ms-grid;
display: grid;
-ms-grid-columns: auto auto auto;
grid-template-columns: auto auto auto;
display: flex;
flex-wrap: wrap;
gap: 10px;
max-width: 1200px;
margin: 50px auto 0;
}

.card {
padding: 21px;
margin: 0 auto 25px;
background-color: #3b454e;
width: 390px;
height: 230px;
/* width: 390px; */
width: calc(100% / 3 - 10px);
height: auto;
border-radius: 13px;
-webkit-box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
Expand Down Expand Up @@ -97,6 +96,27 @@
color: rgba(255, 255, 255, 0.8);
}

img[alt='GitHub'] {
margin-left: 20px;
.card-links {
display: flex;
gap: 20px;
}

@media screen and (max-width: 1200px) {
.card-heading {
flex-direction: column;
align-items: flex-start;
}
}

@media screen and (max-width: 768px) {
.card {
width: calc(100% / 2 - 5px);
}
}

@media screen and (max-width: 426px) {
.card {
width: 90%;
margin: auto;
}
}
3 changes: 2 additions & 1 deletion src/app/components/footer/footer.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ footer {
}

#attribution {
width: 820px;
max-width: 820px;
width: 100%;
margin: 0 auto;
font-size: 32px;
margin-bottom: 60px;
Expand Down
15 changes: 15 additions & 0 deletions src/app/components/home/home.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

.header-welcome {
max-width: 39.375rem;
padding: 0 0 0 20px;
height: auto;
}

Expand Down Expand Up @@ -80,3 +81,17 @@ p {
.lets-go:hover {
background-color: rgba(255, 240, 181, 0.2);
}

@media screen and (max-width: 768px) {
.home-bg-image {
display: none;
}

.header-welcome {
padding: 16px;
}

.big-heading {
font-size: 48px;
}
}
4 changes: 2 additions & 2 deletions src/app/components/home/home.component.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<header class="home">
<div class="home-bg-image"></div>
<div class="header-welcome">
<h1 class="small-heading" appHighlight appAOS="500" [aosDelay]="400">Hi, my name is</h1>
<h1 class="small-heading" appHighlight appAOS="500" [aosDelay]="400">Hello, my name is</h1>
<h1 class="big-heading" appAOS="600" [aosDelay]="500">Volodymyr Shcherbyna.</h1>
<div appAOS="700" [aosDelay]="600">
<h2>I am a <span appHighlight>frontend developer</span>.</h2>
<p>Before you decide anything, let me introduce myself first.</p>
<p>Welcome to my portfolio.</p>
<a href="#about" class="lets-go" appHighlight appAOS="1000" [aosDelay]="800">Let's go!</a>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export class AnimateOnScrollDirective implements OnInit {
}

ngOnInit(): void {
if (window.innerWidth <= 426) {
this.nativeElement.style.opacity = '1';
return;
}

this.nativeElement.style.transition = `all ${this.appAOS}ms`;
this.nativeElement.style.translate = this.translate[this.aosDirection];

Expand Down

0 comments on commit dbfb796

Please sign in to comment.