-
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 #16 from builtbysuraj/filter-ui
Filter UI - Refactor, Add Applied filters
- Loading branch information
Showing
51 changed files
with
567 additions
and
618 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 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,22 @@ | ||
.AppContainer { | ||
background-color: #f1f3f6; | ||
z-index: -1; | ||
min-height: 100vh; | ||
} | ||
|
||
hr { | ||
border-top: 1px solid rgba(96, 96, 96, 0.217); | ||
margin: 15px 0 0 0; | ||
} | ||
|
||
.sidebar section { | ||
margin: 10px 0; | ||
} | ||
|
||
.sidebar section input { | ||
margin: 8px 0; | ||
} | ||
|
||
.sidebar section label { | ||
padding: 0 10px; | ||
} |
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 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,49 @@ | ||
import { Link } from 'react-router-dom' | ||
import styles from './Form.module.css' | ||
|
||
type FormProps = { | ||
mode: string | ||
promptText: string | ||
promptLink: string | ||
promptLinkText: string | ||
} | ||
|
||
export default function From({ | ||
mode, | ||
promptText, | ||
promptLink, | ||
promptLinkText, | ||
}: FormProps) { | ||
return ( | ||
<div className={styles.loginContainer}> | ||
<div className={styles.left}> | ||
<div className={styles.loginTitle}> | ||
<span>{mode}</span> | ||
</div> | ||
<div className={styles.loginDesc}> | ||
<p>Get access to your Orders,</p> | ||
<p>Wishlist and Recommendations</p> | ||
</div> | ||
</div> | ||
<div className={styles.right}> | ||
<form className={styles.loginForm}> | ||
<input type="text" placeholder="Enter Email/Username" /> | ||
<input type="password" placeholder="Password" /> | ||
<small> | ||
By continuing, you agree to Flipkart's | ||
<span className={styles.demoLink}> Terms of Use </span> | ||
and | ||
<span className={styles.demoLink}> Privacy Policy.</span> | ||
</small> | ||
<button>{mode}</button> | ||
<p> | ||
{promptText}{' '} | ||
<Link to={promptLink} className={styles.demoLink}> | ||
{promptLinkText} | ||
</Link> | ||
</p> | ||
</form> | ||
</div> | ||
</div> | ||
) | ||
} |
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,17 @@ | ||
import { CircularProgress } from '@mui/material' | ||
|
||
export default function Loader() { | ||
return ( | ||
<div | ||
style={{ | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
minHeight: '100vh', | ||
maxWidth: '100vw', | ||
}} | ||
> | ||
<CircularProgress size="3rem" /> | ||
</div> | ||
) | ||
} |
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 |
---|---|---|
@@ -1,9 +1,43 @@ | ||
/* eslint-disable react-refresh/only-export-components */ | ||
type InputProps = { | ||
type: string | ||
name?: string | ||
placeholder?: string | ||
id?: string | ||
value: string | ||
onChange: React.ChangeEventHandler<HTMLInputElement> | undefined | ||
checked?: boolean | ||
label?: string | ||
className?: string | ||
} | ||
|
||
// import { forwardRef } from 'react' | ||
function Input({ | ||
type, | ||
name, | ||
placeholder, | ||
id, | ||
value, | ||
onChange, | ||
checked, | ||
label, | ||
className = '', | ||
}: InputProps) { | ||
return ( | ||
<> | ||
<input | ||
type={type} | ||
name={name} | ||
placeholder={placeholder} | ||
id={id} | ||
value={value} | ||
onChange={onChange} | ||
checked={checked} | ||
className={className} | ||
/> | ||
<label className={className} htmlFor={id}> | ||
{label} | ||
</label> | ||
</> | ||
) | ||
} | ||
|
||
// function Input({ label, type = 'text', className = '', ...props }, ref) { | ||
// return <>{label && <label htmlFor="">{label}</label>}</> | ||
// } | ||
|
||
// export default forwardRef(Input) | ||
export default Input |
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
Oops, something went wrong.