Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Code Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
zismaildev authored and github-actions[bot] committed Mar 15, 2024
1 parent 682e4f3 commit ab5a4b3
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 44 deletions.
70 changes: 35 additions & 35 deletions Client/src/components/navtour.jsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
import { BreadcrumbItem, Breadcrumbs } from "@nextui-org/react";
import React from "react";
import { Breadcrumbs, BreadcrumbItem } from "@nextui-org/react";

export default function NavTorunaments() {
const [currentPage, setCurrentPage] = React.useState("music");
const [currentPage, setCurrentPage] = React.useState("music");

return (
<Breadcrumbs
size="md"
onAction={(key) => setCurrentPage(key)}
classNames={{
list: "gap-2",
}}
itemClasses={{
item: [
"px-5 py-1 border-small border-default-400 rounded-small",
"data-[current=true]:border-foreground data-[current=true]:bg-foreground data-[current=true]:text-background transition-colors",
"data-[disabled=true]:border-default-400 data-[disabled=true]:bg-default-100",
],
separator: "hidden",
}}
>
<BreadcrumbItem key="home" isCurrent={currentPage === "home"}>
ทั้งหมด
</BreadcrumbItem>
<BreadcrumbItem key="music" isCurrent={currentPage === "music"}>
กำลังจะเปิด
</BreadcrumbItem>
<BreadcrumbItem key="artist" isCurrent={currentPage === "artist"}>
เปิดรับสมัคร
</BreadcrumbItem>
<BreadcrumbItem key="album" isCurrent={currentPage === "album"}>
อยู่ระหว่างการแข่งขัน
</BreadcrumbItem>
<BreadcrumbItem key="song" isCurrent={currentPage === "song"}>
จบการแข่งขัน
</BreadcrumbItem>
</Breadcrumbs>
);
return (
<Breadcrumbs
classNames={{
list: "gap-2",
}}
itemClasses={{
item: [
"px-5 py-1 border-small border-default-400 rounded-small",
"data-[current=true]:border-foreground data-[current=true]:bg-foreground data-[current=true]:text-background transition-colors",
"data-[disabled=true]:border-default-400 data-[disabled=true]:bg-default-100",
],
separator: "hidden",
}}
onAction={(key) => setCurrentPage(key)}
size="md"
>
<BreadcrumbItem isCurrent={currentPage === "home"} key="home">
ทั้งหมด
</BreadcrumbItem>
<BreadcrumbItem isCurrent={currentPage === "music"} key="music">
กำลังจะเปิด
</BreadcrumbItem>
<BreadcrumbItem isCurrent={currentPage === "artist"} key="artist">
เปิดรับสมัคร
</BreadcrumbItem>
<BreadcrumbItem isCurrent={currentPage === "album"} key="album">
อยู่ระหว่างการแข่งขัน
</BreadcrumbItem>
<BreadcrumbItem isCurrent={currentPage === "song"} key="song">
จบการแข่งขัน
</BreadcrumbItem>
</Breadcrumbs>
);
}
10 changes: 7 additions & 3 deletions Client/src/pages/contents/about.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function Staff() {
อาจารย์ที่ปรึกษาชมรม
</h2>

<div className="mt-8 mx-auto grid gap-10 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-2">
<div className="mx-auto mt-8 grid gap-10 md:grid-cols-2 lg:grid-cols-2 xl:grid-cols-2">
{lecturerData.map((item, index) => (
<Card className="p-4 text-center" key={index}>
<div className="flex flex-col items-center">
Expand Down Expand Up @@ -124,8 +124,12 @@ export default function Staff() {
</div>
<CardBody className="gap-3">
<div className="text-center">
<h4 className="mt-4 text-lg font-semibold">{item.title}</h4>
<h4 className="text-sm text-gray-500">{item.staffrole}</h4>
<h4 className="mt-4 text-lg font-semibold">
{item.title}
</h4>
<h4 className="text-sm text-gray-500">
{item.staffrole}
</h4>
<h4 className="text-sm text-gray-500">{item.faculty}</h4>
<h4 className="text-sm text-gray-500">{item.major}</h4>
</div>
Expand Down
4 changes: 2 additions & 2 deletions Client/src/pages/contents/tournaments.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import NavTorunaments from "@/components/navtour";
import Head from "next/head";
import React from "react";
import NavTorunaments from "@/components/navtour";

export default function Tournaments() {
return (
Expand All @@ -12,7 +12,7 @@ export default function Tournaments() {
<link href="/logo.ico" rel="icon" />
</Head>
<div className="mx-auto max-w-7xl text-center sm:px-6 lg:px-8">
<h2 className="tracking-tig ht text-3xl font-bold sm:text-4xl py-5">
<h2 className="tracking-tig ht py-5 text-3xl font-bold sm:text-4xl">
รายการแข่งขัน
</h2>
<NavTorunaments />
Expand Down
5 changes: 2 additions & 3 deletions Client/src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// Test
import ROV from "@/assets/game/rov.jpg";
import { subtitle, title } from "@/components/primitives";
import { GameListData } from "@/data/game";
import { Link } from "@nextui-org/link";
Expand All @@ -6,9 +8,6 @@ import Head from "next/head";
import Image from "next/image";
import React from "react";

// Test
import ROV from "@/assets/game/rov.jpg"

export default function Home() {
return (
<div>
Expand Down
2 changes: 1 addition & 1 deletion Client/src/pages/teams/[teamlist].jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Components
// Data
import { TeamData } from "@/data/team";
import { Card, CardBody, } from "@nextui-org/react";
import { Card, CardBody } from "@nextui-org/react";
import Head from "next/head";
import Image from "next/image";
import { useRouter } from "next/router";
Expand Down

0 comments on commit ab5a4b3

Please sign in to comment.