Skip to content

Commit

Permalink
ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bookpanda committed Aug 16, 2024
1 parent 3df5819 commit 54dda52
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 8 deletions.
1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
},
"dependencies": {
"axios": "^1.7.3",
"clsx": "^2.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
Expand Down
9 changes: 9 additions & 0 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion frontend/src/app/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function Home() {
style={{ backgroundColor: BG_COLOR }}
className="flex h-screen w-screen items-center justify-center"
>
<div className="flex h-[40vh] w-[60vw] flex-col items-center justify-center rounded-xl bg-white px-8 py-[10vh] drop-shadow-xl md:w-[40vw] xl:w-[30vw] 2xl:w-[20vw]">
<div className="flex h-[40vh] w-[80vw] flex-col items-center justify-center rounded-xl bg-white px-8 py-[10vh] drop-shadow-xl md:w-[40vw] xl:w-[30vw] 2xl:w-[20vw]">
<h1 className="text-4xl font-bold">{SERVICE}</h1>
{SSOLoginStatus()}

Expand Down
9 changes: 7 additions & 2 deletions frontend/src/components/Button.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
import clsx from "clsx";
import { FC, ReactNode } from "react";

interface ButtonProps {
children: ReactNode;
className?: string;
onClick: () => void;
}

export const Button: FC<ButtonProps> = ({ children, onClick }) => {
export const Button: FC<ButtonProps> = ({ children, className, onClick }) => {
return (
<button
onClick={onClick}
className="mt-8 flex w-[80%] items-center justify-center rounded-lg border border-gray-300 py-2 text-lg text-gray-600 duration-300 ease-in-out hover:bg-slate-100"
className={clsx(
"mt-8 flex w-[80%] items-center justify-center rounded-lg border border-gray-300 py-2 text-lg text-gray-600 duration-300 ease-in-out hover:bg-slate-100",
className
)}
>
{children}
</button>
Expand Down
10 changes: 5 additions & 5 deletions sample-service.generated.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.5.002.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "backend", "backend\backend.csproj", "{9E2CAF6B-7B3A-4F17-A932-9966F774237C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "backend", "backend\backend.csproj", "{DFA4BBB4-401F-4F9B-90BC-E5D370E66EA4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{9E2CAF6B-7B3A-4F17-A932-9966F774237C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E2CAF6B-7B3A-4F17-A932-9966F774237C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9E2CAF6B-7B3A-4F17-A932-9966F774237C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9E2CAF6B-7B3A-4F17-A932-9966F774237C}.Release|Any CPU.Build.0 = Release|Any CPU
{DFA4BBB4-401F-4F9B-90BC-E5D370E66EA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DFA4BBB4-401F-4F9B-90BC-E5D370E66EA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DFA4BBB4-401F-4F9B-90BC-E5D370E66EA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DFA4BBB4-401F-4F9B-90BC-E5D370E66EA4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 54dda52

Please sign in to comment.