-
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.
Merge pull request #82 from GenerateNU/CC-77-login-page-styling
CC-77: Signup/Login/Home page style
- Loading branch information
Showing
21 changed files
with
330 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React from "react"; | ||
|
||
type Props = { | ||
titleText: string; | ||
subText: string; | ||
buttonText: string; | ||
onClick: () => void; | ||
image?: string; | ||
imageStyle?: string; | ||
textStyle?: string; | ||
className?: string; | ||
} | ||
const HomePrompt = ({ | ||
titleText, | ||
subText, | ||
buttonText, | ||
onClick, | ||
image, | ||
imageStyle, | ||
textStyle, | ||
className | ||
}: Props) => { | ||
return ( | ||
<div className={`flex flex-col ${className}`}> | ||
{image && <img className={`w-[22rem] h-[22rem] mb-12 ${imageStyle}`} src={image} />} | ||
<div className={`text-4xl font-seasons font-bold ${textStyle}`}> {titleText} </div> | ||
<div className="text-base font-proxima mt-4"> {subText} </div> | ||
<button className="btn-primary mt-12" onClick={onClick}> {buttonText} </button> | ||
</div> | ||
) | ||
} | ||
|
||
|
||
export default HomePrompt; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import Check from "../../images/check.svg"; | ||
import Error from "../../images/error.svg"; | ||
|
||
export type ValidationAlertProps = { | ||
fieldText: string; | ||
validationText: string; | ||
validationRule: RegExp; | ||
className?: string; | ||
} | ||
|
||
const ValidationAlert = ({ fieldText, validationText, validationRule, className }: ValidationAlertProps) => { | ||
return ( | ||
<div className={`flex items-center ${className}`}> | ||
<img className="w-4 h-4 mr-1" src={fieldText.match(validationRule) ? Check : Error} /> | ||
<span className="text-base"> {validationText} </span> | ||
</div> | ||
) | ||
} | ||
|
||
export default ValidationAlert; |
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
Oops, something went wrong.