Skip to content

Commit

Permalink
fix: responsiveness (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
ansh-saini authored Oct 29, 2024
1 parent 0512e66 commit fda8a97
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 @@ -53,7 +53,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
searchQuery={searchQuery}
project={project}
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 fda8a97

Please sign in to comment.