Skip to content

Commit 09aadcf

Browse files
committed
Contributor page full page component
1 parent 212daab commit 09aadcf

File tree

5 files changed

+23
-3
lines changed

5 files changed

+23
-3
lines changed

minigame-frontend/src/components/GameRowComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function GameRowComponent(props) {
55
<Link to="game">
66
<div className="bg-white-400 m-1 py-4 h-[250px] content-center">
77
<div className='bg-white-400 h-[100px] content-center flex justify-between flex-row items-center justify-normal content-normal'>
8-
<div className='bg-[#C7BFBF] h-[100px] flex flex-col justify-start grow p-2'>
8+
<div className='bg-[#C7BFBF] h-fit flex flex-col justify-start grow p-2'>
99
<div className='text-[24px] w-full justify-start'>{props.GameName}</div>
1010
<div className='text-[12x] w-full justify-end'>{props.GameDesc}</div>
1111
</div>

minigame-frontend/src/contributors/Contributors.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import AdrianProfileImg from "../images/AdrianPFP.png";
22

33
export function AdrianContributor() {
44
return (
5-
<div className="contributor-adrian flex bg-slate-500 w-[300px] p-1">
5+
<div className="contributor-adrian flex flex-c bg-slate-500 w-[300px] p-1">
66
<img src={AdrianProfileImg} width={"100px"} />
77
<div className="text-white text-center justify-center m-auto">
88
<div>Adrian Knight</div>

minigame-frontend/src/main.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ import Profile from "./page/Profile.jsx";
88
import GamePage from "./page/GamePage.jsx";
99

1010
import "./index.css";
11+
import Contributors from "./page/Contributors.jsx";
1112

1213
export default function App() {
1314
return (
1415
<BrowserRouter>
1516
<Routes>
1617
<Route path="/" element={<Layout />}>
17-
<Route path="contributors" element={<AdrianContributor />} />
18+
<Route path="contributors" element={<Contributors />} />
1819
<Route index element={<Homepage />} />
1920
<Route path="all-games" element={<AllGames />} />
2021
<Route path="profile" element={<Profile />} />
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React from 'react'
2+
import { AdrianContributor } from '../contributors/Contributors'
3+
import "./contributors.css";
4+
export default function Contributors() {
5+
return (
6+
<div className='contributors-page'>
7+
<div className='contributors'>
8+
<AdrianContributor />
9+
10+
</div>
11+
</div>
12+
)
13+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.contributors {
2+
display: flex;
3+
margin: 30px;
4+
gap: 10px;
5+
flex-wrap: wrap;
6+
}

0 commit comments

Comments
 (0)