Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
proxy-manager-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aolda
proxy-manager-frontend
Commits
a318693d
Commit
a318693d
authored
4 months ago
by
한동현
Browse files
Options
Downloads
Patches
Plain Diff
feat: 로그인 페이지 추가
parent
c1c6fd6e
No related branches found
No related tags found
No related merge requests found
Pipeline
#11195
failed
4 months ago
Stage: build
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/login-form.tsx
+41
-0
41 additions, 0 deletions
src/components/login-form.tsx
src/pages/Login.tsx
+11
-0
11 additions, 0 deletions
src/pages/Login.tsx
src/routes.tsx
+2
-0
2 additions, 0 deletions
src/routes.tsx
with
54 additions
and
0 deletions
src/components/login-form.tsx
0 → 100644
+
41
−
0
View file @
a318693d
import
{
cn
}
from
'
@/lib/utils
'
;
import
{
Button
}
from
'
@/components/ui/button
'
;
import
{
Card
,
CardContent
,
CardDescription
,
CardHeader
,
CardTitle
}
from
'
@/components/ui/card
'
;
import
{
Input
}
from
'
@/components/ui/input
'
;
import
{
Label
}
from
'
@/components/ui/label
'
;
export
function
LoginForm
({
className
,
...
props
}:
React
.
ComponentPropsWithoutRef
<
'
div
'
>
)
{
return
(
<
div
className
=
{
cn
(
'
flex flex-col gap-6
'
,
className
)
}
{
...
props
}
>
<
Card
>
<
CardHeader
>
<
CardTitle
className
=
"text-2xl"
>
로그인
</
CardTitle
>
<
CardDescription
>
아올다 통합 계정을 사용하여 로그인합니다
</
CardDescription
>
</
CardHeader
>
<
CardContent
>
<
form
>
<
div
className
=
"flex flex-col gap-6"
>
<
div
className
=
"grid gap-2"
>
<
Label
htmlFor
=
"username"
>
사용자 이름
</
Label
>
<
Input
id
=
"username"
type
=
"text"
placeholder
=
"사용자 이름"
required
/>
</
div
>
<
div
className
=
"grid gap-2"
>
<
Label
htmlFor
=
"password"
>
비밀번호
</
Label
>
<
Input
id
=
"password"
type
=
"password"
placeholder
=
"비밀번호"
required
/>
</
div
>
<
Button
type
=
"submit"
className
=
"w-full"
>
로그인
</
Button
>
</
div
>
<
div
className
=
"mt-4 text-center text-sm"
>
계정이 없으신가요?
<
a
href
=
"#"
className
=
"ml-2 underline underline-offset-4"
>
아올다 프로젝트 신청하기
</
a
>
</
div
>
</
form
>
</
CardContent
>
</
Card
>
</
div
>
);
}
This diff is collapsed.
Click to expand it.
src/pages/Login.tsx
0 → 100644
+
11
−
0
View file @
a318693d
import
{
LoginForm
}
from
'
@/components/login-form
'
;
export
default
function
Page
()
{
return
(
<
div
className
=
"flex min-h-svh w-full justify-center p-6 md:p-10"
>
<
div
className
=
"w-full max-w-sm"
>
<
LoginForm
/>
</
div
>
</
div
>
);
}
This diff is collapsed.
Click to expand it.
src/routes.tsx
+
2
−
0
View file @
a318693d
import
{
Routes
,
Route
}
from
'
react-router
'
;
import
{
Routes
,
Route
}
from
'
react-router
'
;
import
Root
from
'
@/pages/Root
'
;
import
Root
from
'
@/pages/Root
'
;
import
Home
from
'
@/pages/Home
'
;
import
Home
from
'
@/pages/Home
'
;
import
Login
from
'
@/pages/Login
'
;
export
default
function
AppRoutes
()
{
export
default
function
AppRoutes
()
{
return
(
return
(
<
Routes
>
<
Routes
>
<
Route
path
=
"/"
element
=
{
<
Root
/>
}
>
<
Route
path
=
"/"
element
=
{
<
Root
/>
}
>
<
Route
index
element
=
{
<
Home
/>
}
/>
<
Route
index
element
=
{
<
Home
/>
}
/>
<
Route
path
=
"login"
element
=
{
<
Login
/>
}
/>
</
Route
>
</
Route
>
</
Routes
>
</
Routes
>
);
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment