feat: made the grid responsive
This commit is contained in:
@ -18,6 +18,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"clsx": "^1.1.1",
|
"clsx": "^1.1.1",
|
||||||
|
"prop-types": "^15.8.1",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-router": "^6.1.1",
|
"react-router": "^6.1.1",
|
||||||
|
1185
pnpm-lock.yaml
generated
1185
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import GitHubMark from "./GitHubMark";
|
import GitHubMark from "./GitHubMark";
|
||||||
|
import PropTypes from "prop-types";
|
||||||
|
|
||||||
const ProjectCard = ({ title, liveUrl, gitUrl, children }) => {
|
const ProjectCard = ({ title, liveUrl, gitUrl, children }) => {
|
||||||
const getLiveUrl = () => {
|
const getLiveUrl = () => {
|
||||||
@ -37,4 +38,11 @@ const ProjectCard = ({ title, liveUrl, gitUrl, children }) => {
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
ProjectCard.defaultProps = {
|
||||||
|
title: "Default Title",
|
||||||
|
liveUrl: "/",
|
||||||
|
gitUrl: "/",
|
||||||
|
};
|
||||||
|
|
||||||
export default ProjectCard;
|
export default ProjectCard;
|
||||||
|
@ -8,7 +8,7 @@ const Projects = () => {
|
|||||||
<h1 className="w-full text-7xl text-center font-display font-bold text-polar-night-400">
|
<h1 className="w-full text-7xl text-center font-display font-bold text-polar-night-400">
|
||||||
Projects
|
Projects
|
||||||
</h1>
|
</h1>
|
||||||
<div className="w-full grid grid-cols-3 gap-4">
|
<div className="w-full grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
||||||
<ProjectCard
|
<ProjectCard
|
||||||
title="Real Tutor"
|
title="Real Tutor"
|
||||||
liveUrl="https://realtutor.johncosta.tech/"
|
liveUrl="https://realtutor.johncosta.tech/"
|
||||||
@ -38,9 +38,16 @@ const Projects = () => {
|
|||||||
</p>
|
</p>
|
||||||
</ProjectCard>
|
</ProjectCard>
|
||||||
<ProjectCard
|
<ProjectCard
|
||||||
title="Hello World"
|
title="Restaurant ordering system"
|
||||||
description="Hello World again lol"
|
liveUrl="https://www.youtube.com/watch?v=BZY2Le_Szgg&t=1s&ab_channel=JohnCosta"
|
||||||
/>
|
gitUrl="https://github.com/JohnCosta27/"
|
||||||
|
>
|
||||||
|
<p className="text-xl text-snow-storm-100">
|
||||||
|
A revision tool which allows students to revise various subjects.
|
||||||
|
Year 2 Team Project, I was resposible for making the entire UI. I
|
||||||
|
cannot release the source code, but there is a video.
|
||||||
|
</p>
|
||||||
|
</ProjectCard>
|
||||||
<ProjectCard
|
<ProjectCard
|
||||||
title="Hello World"
|
title="Hello World"
|
||||||
description="Hello World again lol"
|
description="Hello World again lol"
|
||||||
|
Reference in New Issue
Block a user