-
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.
feat: updated template with latest designs
- Loading branch information
1 parent
96d390a
commit ddfc6b2
Showing
21 changed files
with
747 additions
and
211 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
pull_request: | ||
branches: | ||
- master | ||
- dev | ||
push: | ||
branches: | ||
- master | ||
|
File renamed without changes.
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,4 +1,4 @@ | ||
export const frontendBaseUrl: string = | ||
process.env.NEXT_PUBLIC_FRONTEND_BASE_URL + ""; | ||
export const backendBaseUrl: string = | ||
process.env.NEXT_PUBLIC_BACKEND_BASE_URL + ""; | ||
export const frontendBaseUrl: string = process.env | ||
.NEXT_PUBLIC_FRONTEND_BASE_URL as string; | ||
export const backendBaseUrl: string = process.env | ||
.NEXT_PUBLIC_BACKEND_BASE_URL as string; |
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,29 @@ | ||
import { TypographyProps } from "./types"; | ||
import styles from "./styles.module.scss"; | ||
import { stylesConfig } from "@/utils/functions"; | ||
import React from "react"; | ||
|
||
const classes = stylesConfig(styles, "typography-"); | ||
|
||
const Typography: React.FC<TypographyProps> = ({ | ||
type = "body", | ||
variant = "medium", | ||
format = "regular", | ||
children, | ||
className, | ||
...rest | ||
}: TypographyProps) => { | ||
return ( | ||
<span | ||
className={[ | ||
classes([type, variant, format].join("-")), | ||
className, | ||
].join(" ")} | ||
{...rest} | ||
> | ||
{children} | ||
</span> | ||
); | ||
}; | ||
|
||
export default Typography; |
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 "@/styles/config/typography"; | ||
|
||
.typography { | ||
@each $type in $types { | ||
@each $variant in $variants { | ||
@each $format in $formats { | ||
&-#{$type}-#{$variant}-#{$format} { | ||
@include typography($type, $variant, $format); | ||
} | ||
|
||
&-#{$type}-#{$variant} { | ||
@include typography($type, $variant, $format); | ||
} | ||
} | ||
} | ||
} | ||
} |
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,68 @@ | ||
/* | ||
Font Type | ||
- Heading | ||
- Body | ||
Font Variant | ||
- Heading | ||
- Display | ||
- Subtitle | ||
- Title 1 | ||
- Title 2 | ||
- Title 3 | ||
- Title 4 | ||
- Eyebrow | ||
- Body | ||
- Extra Large | ||
- Large | ||
- Medium | ||
- Small | ||
Font Format | ||
- Body | ||
- Regular | ||
- Medium | ||
- Bold | ||
- Underlined | ||
- Italic | ||
- Bold Italic | ||
*/ | ||
|
||
import React from "react"; | ||
|
||
export type FontType = "heading" | "body"; | ||
export type FontVariant<T extends FontType> = T extends "heading" | ||
? | ||
| "display" | ||
| "subtitle" | ||
| "title-1" | ||
| "title-2" | ||
| "title-3" | ||
| "title-4" | ||
| "eyebrow" | ||
: "extra-large" | "large" | "medium" | "small"; | ||
export type FontFormat<T extends FontType> = T extends "heading" | ||
? never | ||
: "regular" | "medium" | "bold" | "underlined" | "italic" | "bold-italic"; | ||
|
||
export interface FontHeading { | ||
type: "heading"; | ||
variant: FontVariant<"heading">; | ||
format?: FontFormat<"heading">; | ||
} | ||
|
||
export interface FontBody { | ||
type: "body"; | ||
variant: FontVariant<"body">; | ||
format?: FontFormat<"body">; | ||
} | ||
|
||
export type Font = FontHeading | FontBody; | ||
|
||
export type TypographyProps = Font & { | ||
children: React.ReactNode; | ||
className?: string; | ||
style?: React.CSSProperties; | ||
title?: string; | ||
onClick?: () => void; | ||
}; |
File renamed without changes.
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 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
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,9 @@ | ||
.home { | ||
width: 100vw; | ||
height: 100vh; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
flex-flow: column; | ||
gap: 36px; | ||
} |
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.