Skip to content

Commit

Permalink
Merge pull request #29 from SystemEngineeringTeam/issue/13
Browse files Browse the repository at this point in the history
Issue/13
  • Loading branch information
kinako1415 authored Jun 15, 2024
2 parents 50a7d71 + ec91f2f commit 9a96778
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/components/achievements/Info.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { Flex, Text, Avatar, Box} from "@radix-ui/themes";
import { type ReactElement } from "react";

export default function Page(): ReactElement {
const achievementTest = {
id: 1,
name: "first blood",
description: "Get the first kill in a match.",
icon: "https://placehold.jp/150x150.png",
tag: ["kill"],
};

return (

<Box maxWidth="8rem" >
<Flex direction="column" align="center">

<Avatar
size="7"
src="https://images.unsplash.com/photo-1607346256330-dee7af15f7c5?&w=64&h=64&dpr=2&q=70&crop=focalpoint&fp-x=0.67&fp-y=0.5&fp-z=1.4&fit=crop"
radius="full"
fallback="T"
/>

<Text size="6" weight="bold">
恋愛失敗
</Text>

</Flex>

{achievementTest.tag.map((tag,index) => (
<Text key={index} color="gray">タグ {tag}</Text>
))}

</Box>

);
}
8 changes: 8 additions & 0 deletions src/pages/hayato.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { type ReactElement } from "react";
import Info from "@/components/achievements/Info";

export default function Page(): ReactElement {
return (
<Info />
);
}
1 change: 1 addition & 0 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export type Path =
| `/auth/callback`
| `/auth/login`
| `/create`
| `/hayato`
| `/members`
| `/members/:id`
| `/ranking`
Expand Down

0 comments on commit 9a96778

Please sign in to comment.