-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from su-its/feat/frontend/frame
Feat/frontend/frame
- Loading branch information
Showing
21 changed files
with
192 additions
and
78 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import GamePage from "@/components/pages/Game"; | ||
|
||
export default function Typing() { | ||
return <GamePage />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import HomePage from "@/components/pages/Home"; | ||
|
||
export default function Home() { | ||
return <div>Home View</div>; | ||
return <HomePage />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import RankingPage from "@/components/pages/Ranking"; | ||
|
||
export default function Ranking() { | ||
return <div>Ranking View</div>; | ||
return <RankingPage />; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
import { Box, Image } from "@chakra-ui/react"; | ||
import bannerImage from "@/assets/images/banner.png"; | ||
|
||
const Banner: React.FC = () => { | ||
return ( | ||
<Box> | ||
<Image src={bannerImage.src} alt="Logo" maxH={100} /> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Banner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import React from "react"; | ||
import { Box } from "@chakra-ui/react"; | ||
|
||
interface SeparatorProps { | ||
height?: string; | ||
backgroundColor?: string; | ||
} | ||
|
||
const Separator: React.FC<SeparatorProps> = ({ height = "5px", backgroundColor = "white" }) => { | ||
return <Box height={height} bg={backgroundColor} width="100%" />; | ||
}; | ||
|
||
export default Separator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import { Box, HStack, Text } from "@chakra-ui/react"; | ||
|
||
const BrandText: React.FC = () => { | ||
return ( | ||
<Box> | ||
<HStack> | ||
<Text fontSize="50px">ITS</Text> | ||
<Text fontSize="sm">静岡大学ITソルーション室</Text> | ||
</HStack> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default BrandText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from "react"; | ||
import { Avatar, Box, Text, HStack, VStack } from "@chakra-ui/react"; | ||
|
||
const UserCard: React.FC = () => { | ||
const bgColor = "#0000cd"; // 濃い青の背景色 | ||
|
||
// モックのユーザー情報 | ||
const user = { | ||
name: "テストユーザー", | ||
studentId: "24AB1234", | ||
avatarUrl: "https://avatars.githubusercontent.com/u/12345678?v=4", | ||
}; | ||
|
||
return ( | ||
user && ( | ||
<Box bg={bgColor} p={4} maxH="120px"> | ||
<HStack spacing={4}> | ||
<Avatar src={user.avatarUrl} maxW="100px" borderRadius="9" /> | ||
<VStack align="start" spacing={1}> | ||
<Text fontSize="lg" fontWeight="bold"> | ||
名前: {user.name} | ||
</Text> | ||
<Text>学籍番号: {user.studentId}</Text> | ||
</VStack> | ||
</HStack> | ||
</Box> | ||
) | ||
); | ||
}; | ||
|
||
export default UserCard; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from "react"; | ||
import { Flex, Box } from "@chakra-ui/react"; | ||
import BrandText from "../molecules/BrandText"; | ||
import Separator from "../atoms/Separater"; | ||
|
||
const Footer: React.FC = () => { | ||
return ( | ||
<> | ||
<Separator /> | ||
<Flex alignItems="center" justifyContent="space-between"> | ||
<BrandText /> | ||
</Flex> | ||
</> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React from "react"; | ||
import { Box, Flex } from "@chakra-ui/react"; | ||
// import { useAuth } from "@/hooks/useAuth"; // TODO: 実装 | ||
import Banner from "@/components/atoms/Banner"; | ||
import UserCard from "@/components/molecules/UserCard"; | ||
import Separator from "@/components/atoms/Separater"; | ||
|
||
const Header: React.FC = () => { | ||
return ( | ||
<> | ||
<Flex alignItems="center" justifyContent="space-between"> | ||
<Banner /> | ||
<UserCard /> | ||
</Flex> | ||
<Separator /> | ||
</> | ||
); | ||
}; | ||
|
||
export default Header; |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import { Text, VStack } from "@chakra-ui/react"; | ||
|
||
const GamePage: React.FC = () => { | ||
return ( | ||
<> | ||
<VStack> | ||
<Text fontSize="2xl">Hello, World!</Text> | ||
<Text fontSize="xl">Welcome to the Game Page</Text> | ||
</VStack> | ||
</> | ||
); | ||
}; | ||
|
||
export default GamePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import { Text, VStack } from "@chakra-ui/react"; | ||
|
||
const HomePage: React.FC = () => { | ||
return ( | ||
<> | ||
<VStack> | ||
<Text fontSize="2xl">Hello, World!</Text> | ||
<Text fontSize="xl">Welcome to the ITS Room</Text> | ||
</VStack> | ||
</> | ||
); | ||
}; | ||
|
||
export default HomePage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from "react"; | ||
import { Text, VStack } from "@chakra-ui/react"; | ||
|
||
const RankingPage: React.FC = () => { | ||
return ( | ||
<> | ||
<VStack> | ||
<Text fontSize="2xl">Hello, World!</Text> | ||
<Text fontSize="xl">Welcome to the Ranking Page</Text> | ||
</VStack> | ||
</> | ||
); | ||
}; | ||
|
||
export default RankingPage; |