Skip to content

Commit

Permalink
fix: responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
ansh-saini committed Oct 26, 2024
1 parent 17837ac commit 5710f98
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/projects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function Projects({ projects, githubColors }: ProjectsProps): JSX.Element {
{filteredProjects.length > 0 ? (
filteredProjects.map((project, i) => {
return (
<div className="col-4" key={project.name}>
<div className="project-grid-item" key={project.name}>
<ProjectCard
project={project}
vertical
Expand Down
16 changes: 16 additions & 0 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,22 @@ body {
transition: none;
}

.project-grid-item {
grid-column: span 4;
}

@media (max-width: 800px) {
.project-grid-item {
grid-column: span 6;
}
}

@media (max-width: 600px) {
.project-grid-item {
grid-column: span 12;
}
}

@media (max-width: 1160px) {
#navbar #nav-container #hamburger {
display: flex;
Expand Down

0 comments on commit 5710f98

Please sign in to comment.