Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Daily Thought App
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COM3014-Coursework
Daily Thought App
Commits
9b5cc5fd
Commit
9b5cc5fd
authored
1 year ago
by
Matt Kirby
Browse files
Options
Downloads
Patches
Plain Diff
Simple sign in page
parent
dd041672
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
daily-thought-frontend/src/pages/signIn.tsx
+85
-0
85 additions, 0 deletions
daily-thought-frontend/src/pages/signIn.tsx
with
85 additions
and
0 deletions
daily-thought-frontend/src/pages/signIn.tsx
0 → 100644
+
85
−
0
View file @
9b5cc5fd
const
SignIn
=
()
=>
{
return
(
<>
<
div
className
=
"flex min-h-full items-center justify-center px-4 py-12 sm:px-6 lg:px-8"
>
<
div
className
=
"w-full max-w-md space-y-8"
>
<
div
>
<
h2
className
=
"mt-6 text-center text-3xl font-bold tracking-tight text-gray-900"
>
Sign in to your account
</
h2
>
<
p
className
=
"mt-2 text-center text-sm text-gray-600"
>
Or
{
'
'
}
<
a
href
=
"/register"
className
=
"font-medium text-c-pink hover:text-indigo-500"
>
register
</
a
>
</
p
>
</
div
>
<
form
className
=
"mt-8 space-y-6"
action
=
"#"
method
=
"POST"
>
<
input
type
=
"hidden"
name
=
"remember"
defaultValue
=
"true"
/>
<
div
className
=
"-space-y-px rounded-md shadow-sm"
>
<
div
>
<
label
htmlFor
=
"email-address"
className
=
"sr-only"
>
Email address
</
label
>
<
input
id
=
"email-address"
name
=
"email"
type
=
"email"
autoComplete
=
"email"
required
className
=
"relative block w-full rounded-t-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
placeholder
=
"Email address"
/>
</
div
>
<
div
>
<
label
htmlFor
=
"password"
className
=
"sr-only"
>
Password
</
label
>
<
input
id
=
"password"
name
=
"password"
type
=
"password"
autoComplete
=
"current-password"
required
className
=
"relative block w-full rounded-b-md border-0 py-1.5 text-gray-900 ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:z-10 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6"
placeholder
=
"Password"
/>
</
div
>
</
div
>
<
div
className
=
"flex items-center justify-between"
>
<
div
className
=
"flex items-center"
>
<
input
id
=
"remember-me"
name
=
"remember-me"
type
=
"checkbox"
className
=
"h-4 w-4 rounded border-gray-300 text-c-pink focus:ring-indigo-600"
/>
<
label
htmlFor
=
"remember-me"
className
=
"ml-2 block text-sm text-gray-900"
>
Remember me
</
label
>
</
div
>
<
div
className
=
"text-sm"
>
<
a
href
=
"#"
className
=
"font-medium text-c-pink hover:text-indigo-500"
>
Forgot your password?
</
a
>
</
div
>
</
div
>
<
div
>
<
button
type
=
"submit"
className
=
"group relative flex w-full justify-center rounded-md bg-c-pink px-3 py-2 text-sm font-semibold text-white hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
>
Sign in
</
button
>
</
div
>
</
form
>
</
div
>
</
div
>
</>
)
}
export
default
SignIn
;
\ No newline at end of file
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