-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
171 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// @tailwind base; | ||
// @tailwind components; | ||
// @tailwind utilities; | ||
@import 'tailwindcss/base'; | ||
@import 'tailwindcss/components'; | ||
@import 'tailwindcss/utilities'; | ||
|
||
// Base | ||
@import './base'; | ||
|
||
// Layouts | ||
@import 'layouts/main'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@font-face { | ||
font-family: 'Neuzeit'; | ||
font-style: normal; | ||
font-display: swap; | ||
|
||
src: url('/assets/fonts/Neuzeit-S-LT-Std.ttf') format('truetype'); | ||
} | ||
|
||
@font-face { | ||
font-family: 'Neuzeit'; | ||
font-weight: bold; | ||
font-display: swap; | ||
|
||
src: url('/assets/fonts/Neuzeit-S-LT-Std-Bold.ttf') format('truetype'); | ||
} | ||
|
||
html, | ||
body { | ||
font-family: 'Neuzeit', sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import './font'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
html, | ||
body { | ||
top: 0; | ||
height: 100%; // Enables min-height 100% in .root-container | ||
|
||
background-color: #fff; | ||
|
||
.root-container { | ||
display: grid; | ||
grid-auto-flow: row; | ||
min-height: 100%; | ||
|
||
background-color: #fff; | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React from 'react'; | ||
|
||
interface TextInputProps { | ||
label?: string; | ||
inputAttributes: { | ||
id: string; | ||
type: string; | ||
required?: boolean; | ||
placeholder?: string; | ||
'data-test-id'?: string; | ||
}; | ||
} | ||
const TextInput = ({ label, inputAttributes }: TextInputProps): JSX.Element => { | ||
return ( | ||
<div> | ||
{label !== null && ( | ||
<label className="text-white text-[15px] font-extrabold" htmlFor={inputAttributes.id}> | ||
{label} | ||
</label> | ||
)} | ||
<input | ||
{...inputAttributes} | ||
className="block appearance-none bg-white bg-opacity-[.18] rounded-[12px] w-full h-14 focus:outline-none focus:ring-transparent px-3 text-white text-[17px]" | ||
placeholder={inputAttributes.placeholder} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TextInput; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
|
||
import { render, screen } from '@testing-library/react'; | ||
|
||
import SignInScreen from '.'; | ||
|
||
describe('SignInScreen', () => { | ||
it('renders learn react link', () => { | ||
render(<SignInScreen />); | ||
|
||
const logoElement = screen.getByTestId('nimble-logo-img'); | ||
|
||
expect(logoElement).toBeInTheDocument(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
|
||
import nimbleLogoWhite from 'assets/images/icons/nimble-logo-white.svg'; | ||
import background from 'assets/images/illustrations/background-sign-in.png'; | ||
import TextInput from 'components/TextInput'; | ||
|
||
const SignInScreen = (): JSX.Element => { | ||
return ( | ||
<div | ||
className="sign-in bg-cover min-h-screen flex flex-col justify-center items-center" | ||
style={{ backgroundImage: 'url(' + background + ')' }} | ||
> | ||
<img className="mx-auto" src={nimbleLogoWhite} alt="nimble logo" data-test-id="nimble-logo-img" /> | ||
<div className="mt-6 mb-8 text-white opacity-60 text-[17px]">Sign in to Nimble</div> | ||
<form className="w-80"> | ||
<div className="mb-6"> | ||
<TextInput | ||
label="Email" | ||
inputAttributes={{ | ||
id: 'form-sign-in-email', | ||
required: true, | ||
type: 'text', | ||
}} | ||
/> | ||
</div> | ||
<div className="mb-6"> | ||
<TextInput | ||
label="Password" | ||
inputAttributes={{ | ||
id: 'form-sign-in-password', | ||
required: true, | ||
type: 'password', | ||
}} | ||
/> | ||
</div> | ||
<button | ||
className="bg-white text-[#15151A] font-bold text-[17px] rounded-[10px] focus:outline-none focus:shadow-outline w-full h-14" | ||
type="button" | ||
> | ||
Sign In | ||
</button> | ||
</form> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SignInScreen; |