Skip to content

Commit

Permalink
feat:footer, headerの色を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
KikyoNanakusa committed Mar 29, 2024
1 parent 361515d commit 277f5b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion typing-app/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@tailwind utilities;

:root {
--foreground-rgb: 255, 255, 255;
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
Expand Down
5 changes: 2 additions & 3 deletions typing-app/src/components/molecules/UserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from "react";
import { Avatar, Box, Text, HStack, VStack } from "@chakra-ui/react";

const UserCard: React.FC = () => {
const bgColor = "#0000cd"; // 濃い青の背景色

// モックのユーザー情報
const user = {
Expand All @@ -13,10 +12,10 @@ const UserCard: React.FC = () => {

return (
user && (
<Box bg={bgColor} p={4} maxH="120px">
<Box bg={ "blue.600" } p={5} >
<HStack spacing={4}>
<Avatar src={user.avatarUrl} maxW="100px" borderRadius="9" />
<VStack align="start" spacing={1}>
<VStack align="start">
<Text fontSize="lg" fontWeight="bold" color={"white"}>
名前: {user.name}
</Text>
Expand Down
2 changes: 1 addition & 1 deletion typing-app/src/components/organism/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Footer: React.FC = () => {
return (
<>
<Separator />
<Flex alignItems="center" justifyContent="space-between">
<Flex alignItems="center" justifyContent="space-between" bg={ "blue.600" }>
<BrandText />
</Flex>
</>
Expand Down

0 comments on commit 277f5b9

Please sign in to comment.