Skip to content

Commit

Permalink
Add resposiveness for tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
Divyanshu766 committed Nov 26, 2023
1 parent de6d700 commit 3e5b6b2
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 0 deletions.
110 changes: 110 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ nav {
margin: auto;
}

.navbar-line {
display: none;
}

nav > h1 {
font-size: 30px;
}
Expand Down Expand Up @@ -610,3 +614,109 @@ picture > img {
font-size: 15px;
}
}

@media screen and (min-width: 600px) and (max-width: 820px) {
.navbar-line {
display: block;
}

.navbar-line {
cursor: pointer;
}

#nav-menu {
flex-direction: column;
margin: auto;
padding-left: 5%;
}
nav {
align-items: start;
height: 100vh;
}
.resume {
display: none;
}

nav > h1 {
display: none;
}

/* Home */
#type-info {
text-align: center;
font-size: 25px;
}

#contact-container {
text-align: center;
}

#contact-links {
justify-content: center;
margin-top: 6%;
}

/* About */
#intro {
flex-direction: column;
align-items: center;
}
#intro > div > h1,
#intro > div > div > h3 {
text-align: center;
}
#myImage {
display: flex;
justify-content: center;
}

#intro > div > .home-img {
width: 80%;
}

/* Skills */
.skills-card-img {
width: 60px;
height: 60px;
}

/* Github */
#githubStat {
flex-direction: column;
justify-content: center;
align-items: center;
}

/* Project */
#projectContainer {
grid-template-columns: repeat(2, 1fr);
}
#projects {
padding-bottom: 20px;
}

.project-card > img {
width: 100%;
margin: auto;
}
.project-card {
display: flex;
width: 80%;
margin: auto;
flex-direction: column;
justify-content: space-between;
padding: 10px 20px;
border: 1px solid rgba(128, 128, 128, 0.414);
}

/* Contact */
.gmail > span > a,
.contact-footer > span > a,
.home-footer > span > a {
font-size: 17px;
}

.personal-links > ul {
gap: 40px;
}
}
6 changes: 6 additions & 0 deletions src/Components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useState } from "react";

const Navbar = () => {
return (
<>
Expand Down Expand Up @@ -35,6 +37,10 @@ const Navbar = () => {
>
Resume
</button>
<img
className="navbar-line"
src="https://img.icons8.com/ios/50/xbox-menu.png"
/>
</div>
</nav>
<hr />
Expand Down

0 comments on commit 3e5b6b2

Please sign in to comment.