Skip to content

Commit

Permalink
Modified the file fomat to jsx, fixed the homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
HuySimpLo committed Sep 11, 2024
1 parent e6ff6be commit 8cd0679
Show file tree
Hide file tree
Showing 38 changed files with 1,823 additions and 421 deletions.
1,386 changes: 1,343 additions & 43 deletions MSOC/package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions MSOC/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-router-dom": "^6.26.0",
"react-router-dom": "^6.26.2",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down Expand Up @@ -38,6 +38,7 @@
]
},
"devDependencies": {
"tailwindcss": "^3.4.9"
"tailwind": "^4.0.0",
"tailwindcss": "^3.4.10"
}
}
Binary file added MSOC/public/DC_MSOC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/FB_MSOC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/Youtube_MSOC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/collab.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/leaderboardFrame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/switchToGroup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/switchToPlayer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added MSOC/public/x_MSOC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 0 additions & 27 deletions MSOC/src/App.js

This file was deleted.

21 changes: 21 additions & 0 deletions MSOC/src/App.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { Outlet } from "react-router-dom";
import Header from "./component/Header";

export default function App() {
return (
<>
<head>
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'></link>
<title>MSOC</title>
</head>
<Header />
<body className="max-h-screen">
<div className="bg-[url('../public/background.png')] bg-cover h-fit">
<div className="container mx-auto">
<Outlet />
</div>
</div>
</body>
</>
);
}
8 changes: 0 additions & 8 deletions MSOC/src/App.test.js

This file was deleted.

44 changes: 0 additions & 44 deletions MSOC/src/component/About.js

This file was deleted.

41 changes: 0 additions & 41 deletions MSOC/src/component/Header.js

This file was deleted.

80 changes: 80 additions & 0 deletions MSOC/src/component/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import React from "react";
import { FaDiscord } from "react-icons/fa6";
import { Link } from "react-router-dom";

export default function Header() {
return (

<header className="fixed w-full min-h-20 max-h-20">
<div className="container w-full min-h-20 max-h-20 flex justify-center pt-3 pb-1 mx-auto drop-shadow-xl">
<nav className="flex items-center justify-between p-2 lg:px-8 border-4 rounded-xl border-transparent bg-[#F9C791] w-full drop-shadow-lg">
<div className="justify-start max-w-[120px]">
<a href="/" className="max-w-[120px]">
<img src="../fac_1.png" alt="" className="object-cover" />
</a>
</div>
<div className="h-full mr-auto lg:flex justify-center font">
<Link
to="/home"
className="text-xl flex items-center justify-center font-semibold leading-6 text-black w-[125px]"
>
Trang Chủ
</Link>
<Link
to="/info"
className="text-xl flex items-center justify-center font-semibold leading-6 text-black w-[125px]"
>
Thông Tin
</Link>
<Link
to="/leaderboard"
className="text-xl flex items-center justify-center font-semibold leading-6 text-black w-[125px]"
>
Xếp hạng
</Link>
<Link
to="/about"
className=" text-xl flex items-center justify-center font-semibold leading-6 text-black w-[125px]"
>
Nhân sự
</Link>
</div>

<div className=" justify-end ">
<button className="flex w-36 items-center justify-between">
<img className="size-1/4" src="../Youtube_MSOC.png" alt="DC_Logo" />
<a href="https://discord.gg/PMVTHDgerp">
</a>
</button>
</div>

<div className=" justify-end ">
<button className="flex w-36 space-x-1 items-center justify-between">
<img className="size-1/4" src="../x_MSOC.png" alt="DC_Logo" />
<a href="https://discord.gg/PMVTHDgerp">
</a>
</button>
</div>

<div className=" justify-end ">
<button className="flex w-36 space-x-1 items-center justify-between">
<img className="size-1/4" src="../DC_MSOC.png" alt="DC_Logo" />
<a href="https://discord.gg/PMVTHDgerp">
</a>
</button>
</div>


<div className=" justify-end ">
<button className="flex w-36 space-x-1 items-center justify-between">
<img className="size-1/4" src="../FB_MSOC.png" alt="FB_Logo" />
<a href="https://discord.gg/PMVTHDgerp">
</a>
</button>

</div>
</nav>
</div>
</header>
);
}
10 changes: 0 additions & 10 deletions MSOC/src/component/Home.js

This file was deleted.

26 changes: 0 additions & 26 deletions MSOC/src/component/Info.js

This file was deleted.

9 changes: 9 additions & 0 deletions MSOC/src/component/Info/DataNode.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export default function DataNode({ value }) {
return (
<li className="top-[-5px] m-0 p-0 text-[#00cec9] font-[verdana] text-[14px] list-none relative after:content-[''] block w-[12px] h-[12px] rounded-[50%] bg-[#81ecec] border-[2px] border-[solid] border-[#81ecec] [transition:background-color_.2s_ease]">
<span className="absolute top-[20px] left-2/4 -translate-x-1/2 translate-y-[0] inline-block text-center w-[100px]">
{value.time}
</span>
</li>
);
}
105 changes: 0 additions & 105 deletions MSOC/src/component/Leaderboard.js

This file was deleted.

Loading

0 comments on commit 8cd0679

Please sign in to comment.