-
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
13 changed files
with
114 additions
and
111 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 |
---|---|---|
@@ -1,9 +1,18 @@ | ||
import * as styles from "./index.module.scss"; | ||
|
||
type Props = React.InputHTMLAttributes<HTMLInputElement>; | ||
type Props = React.InputHTMLAttributes<HTMLInputElement> & { | ||
fullWidth?: boolean; | ||
}; | ||
|
||
const FormInput = ({ className, ...props }: Props) => ( | ||
<input {...props} className={[styles.input, className].join(" ")} /> | ||
const FormInput = ({ className, fullWidth, ...props }: Props) => ( | ||
<input | ||
{...props} | ||
className={[ | ||
styles.input, | ||
fullWidth ? styles.fullWidth : "", | ||
className, | ||
].join(" ")} | ||
/> | ||
); | ||
|
||
export default FormInput; |
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
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
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,62 @@ | ||
$breakpoint-mobile: 375px; | ||
$breakpoint-tablet: 768px; | ||
$breakpoint-laptop: 1025px; | ||
$breakpoint-desktop: 1208px; | ||
|
||
@mixin down-mobile { | ||
@media (max-width: $breakpoint-mobile - 1) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-mobile { | ||
@media (min-width: $breakpoint-mobile) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin down-tablet { | ||
@media (max-width: $breakpoint-tablet - 1) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-tablet { | ||
@media (min-width: $breakpoint-tablet) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin down-laptop { | ||
@media (max-width: $breakpoint-laptop - 1) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-laptop { | ||
@media (min-width: $breakpoint-laptop) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-desktop { | ||
@media (min-width: $breakpoint-desktop) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin gradient-text($gradient) { | ||
background-image: $gradient; | ||
// stylelint-disable-next-line | ||
-webkit-text-fill-color: rgba(0, 0, 0, 0); | ||
// stylelint-disable-next-line property-no-unknown | ||
text-fill-color: rgba(0, 0, 0, 0); | ||
// stylelint-disable-next-line | ||
background-clip: text; | ||
// stylelint-disable-next-line | ||
-webkit-background-clip: text; | ||
} | ||
|
||
@function spacing($num) { | ||
@return $num * 8px; | ||
} |
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 "src/styles/sass.scss"; | ||
|
||
.pageContainer { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 184px; | ||
margin: 0 auto; | ||
max-width: $breakpoint-desktop; | ||
|
||
@include down-laptop { | ||
gap: 40px; | ||
max-width: 100%; | ||
padding: 0 12px; | ||
} | ||
} |
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,64 +1,2 @@ | ||
@import "./colors.scss"; | ||
|
||
$breakpoint-mobile: 375px; | ||
$breakpoint-tablet: 768px; | ||
$breakpoint-laptop: 1025px; | ||
$breakpoint-desktop: 1208px; | ||
|
||
@mixin down-mobile { | ||
@media (max-width: $breakpoint-mobile - 1) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-mobile { | ||
@media (min-width: $breakpoint-mobile) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin down-tablet { | ||
@media (max-width: $breakpoint-tablet - 1) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-tablet { | ||
@media (min-width: $breakpoint-tablet) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin down-laptop { | ||
@media (max-width: $breakpoint-laptop - 1) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-laptop { | ||
@media (min-width: $breakpoint-laptop) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin up-desktop { | ||
@media (min-width: $breakpoint-desktop) { | ||
@content; | ||
} | ||
} | ||
|
||
@mixin gradient-text($gradient) { | ||
background-image: $gradient; | ||
// stylelint-disable-next-line | ||
-webkit-text-fill-color: rgba(0, 0, 0, 0); | ||
// stylelint-disable-next-line property-no-unknown | ||
text-fill-color: rgba(0, 0, 0, 0); | ||
// stylelint-disable-next-line | ||
background-clip: text; | ||
// stylelint-disable-next-line | ||
-webkit-background-clip: text; | ||
} | ||
|
||
@function spacing($num) { | ||
@return $num * 8px; | ||
} | ||
@import "./mixins.scss"; |