Skip to content

Commit

Permalink
Make page responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
Evavic44 committed Jan 24, 2022
1 parent 28bf025 commit 3181f16
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
6 changes: 5 additions & 1 deletion docs/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ body {

#projects .btn {
align-self: center;
margin: 2rem;
margin: 2rem 0;
}

.project {
Expand Down Expand Up @@ -244,6 +244,9 @@ body {
}
}

@media (max-width: 768px) {
}

@media (max-width: 670px) {
.navbar .nav-menu {
position: fixed;
Expand Down Expand Up @@ -305,6 +308,7 @@ body {
transform: translateY(-8px) rotate(-45deg);
}
}

@media (max-width: 600px) {
.project {
display: grid;
Expand Down
28 changes: 25 additions & 3 deletions docs/css/utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
padding: 1rem 2rem;
}

h1::selection,
h2::selection {
color: #111;
background: var(--primary-color);
}

/* Buttons */
.btn {
display: inline-block;
Expand Down Expand Up @@ -78,16 +84,21 @@

.content-text {
text-align: center;
margin: 1.5rem 0;
}

.content-text h2 {
font-size: 3rem;
line-height: 1.2;
padding: 12px;
transition: 0.2s ease-in-out;
}
.content-text p{
padding: 9px;

.content-text p {
padding: 0.5rem;
margin: 0 auto;
max-width: 700px;
}

/* Project cards */
.card {
padding: 1rem;
Expand Down Expand Up @@ -148,3 +159,14 @@
.card:nth-child(6) {
background: url(../assets/project/project-six.png) center center/cover;
}

/* Media Queries */
@media (max-width: 768px) {
.header-container {
margin-top: 7rem;
}

.content-text h2 {
font-size: 2.5rem;
}
}
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ <h2>products, brands, and experience.</h2>
A Frontend Developer and Visual Designer with experience in web
design, brand identity and product design.
</p>
<a href="#" class="btn btn-secondary">Connect With Me</a>
</div>
</div>
<a href="#" class="btn btn-secondary">Connect With Me</a>
</section>
</div>
</header>
Expand Down

0 comments on commit 3181f16

Please sign in to comment.