-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert 'contact' page to App Router [#134]
- Loading branch information
Showing
9 changed files
with
73 additions
and
40 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
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,11 @@ | ||
import { ReactElement, ReactNode } from "react"; | ||
|
||
import styles from "./styles.module.css"; | ||
|
||
export default function FlexCenter({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}): ReactElement { | ||
return <div className={styles.flexCenter}>{children}</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,6 @@ | ||
.flexCenter { | ||
display: flex; | ||
justify-content: center; | ||
margin: 0px; | ||
padding: 0px; | ||
} |
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,11 @@ | ||
import { ReactElement, ReactNode } from "react"; | ||
|
||
import styles from "./styles.module.css"; | ||
|
||
export default function FocusParagraphNarrow({ | ||
children, | ||
}: { | ||
children: ReactNode; | ||
}): ReactElement { | ||
return <p className={styles.focus}>{children}</p>; | ||
} |
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,8 @@ | ||
.focus { | ||
font-size: var(--niceFontSize); | ||
font-weight: 300; | ||
line-height: var(--tightLineHight); | ||
margin: 20px 0px 0px; | ||
max-width: 640px; | ||
text-align: left; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,25 @@ | ||
declare module '*.yaml' { | ||
declare module "*.css" { | ||
const value: unknown; | ||
export default value; | ||
} | ||
|
||
declare module "*.jpg" { | ||
const value: { src: string }; | ||
export default value; | ||
} | ||
|
||
declare module "*.png" { | ||
const value: { src: string }; | ||
export default value; | ||
} | ||
|
||
declare module "*.svg" { | ||
const value: { src: string }; | ||
export default value; | ||
} | ||
|
||
declare module "*.yaml" { | ||
// Actual type should be set upon import via type assertion. | ||
const contents: unknown | ||
export default contents | ||
const contents: unknown; | ||
export default contents; | ||
} |