-
-
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 #107 from lumirlumir/develop-style
Develop style sidebar header
- Loading branch information
Showing
41 changed files
with
2,081 additions
and
97 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 |
---|---|---|
@@ -1,16 +1,27 @@ | ||
const path = require('path'); | ||
const isProduction = process.env.NODE_ENV === 'production'; | ||
|
||
module.exports = { | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
hostname: 'avatars.githubusercontent.com', // Allow GitHub profile image. | ||
}, | ||
], | ||
}, | ||
sassOptions: { | ||
includePaths: [path.resolve(__dirname, 'src', 'styles')], | ||
additionalData: ` | ||
@import 'mixins'; | ||
@import 'utils/mixins'; | ||
@import 'utils/variables'; | ||
`, | ||
}, | ||
// Remove `console.*` output except `console.error` | ||
compiler: { | ||
removeConsole: { | ||
exclude: ['error'], | ||
// Remove `console.*` output except `console.warn` and `console.error` only in production. | ||
...(isProduction && { | ||
compiler: { | ||
removeConsole: { | ||
exclude: ['warn', 'error'], | ||
}, | ||
}, | ||
}, | ||
}), | ||
}; |
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
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,5 @@ | ||
import LoadingGif from '@/components/common/Loading'; | ||
import LoadingOriginal from '@/components/common/Loading'; | ||
|
||
export default function Loading() { | ||
return <LoadingGif />; | ||
return <LoadingOriginal content="문서" />; | ||
} |
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,74 @@ | ||
.categories { | ||
/* variables */ | ||
$grid-template-rows-1: $size-24; | ||
$grid-template-rows-2: $size-16; | ||
$grid-template-columns: $grid-template-rows-1 + $grid-template-rows-2 + $size-8; | ||
|
||
/* properties */ | ||
display: flex; | ||
flex-direction: column; | ||
|
||
/* selectors */ | ||
> li > a { | ||
@include selector-hover-default; | ||
|
||
display: grid; | ||
grid-template-rows: $grid-template-rows-1 $grid-template-rows-2; | ||
grid-template-columns: $grid-template-columns 1fr $grid-template-columns; | ||
padding: $size-8 $size-4; | ||
margin: $size-4 $size-8; | ||
|
||
&:hover { | ||
> div.react-icons { | ||
@include props-animation-shake; | ||
} | ||
} | ||
|
||
> div.react-icons { | ||
@include props-flex-center; | ||
|
||
grid-area: 1 / 1 / 3 / 2; | ||
|
||
> svg { | ||
width: $size-24; | ||
height: $size-24; | ||
} | ||
} | ||
|
||
> div.name-en { | ||
grid-area: 1 / 2 / 2 / 3; | ||
letter-spacing: -1px; | ||
} | ||
|
||
> div.name-ko { | ||
grid-area: 2 / 2 / 3 / 3; | ||
font-size: 11px; | ||
color: var(--color-fg-muted); | ||
letter-spacing: -1px; | ||
} | ||
|
||
> div.count-docs { | ||
@include props-flex-center; | ||
|
||
grid-area: 1 / 3 / 3 / 4; | ||
|
||
> span { | ||
@include props-flex-center; | ||
|
||
width: 20px; | ||
height: 20px; | ||
font-size: 12px; | ||
font-weight: $text-weight-semibold; | ||
letter-spacing: -1px; | ||
border: 1px solid var(--color-border-default); | ||
border-radius: 50%; | ||
} | ||
|
||
> svg { | ||
width: 10px; | ||
height: 10px; | ||
transform: translate(-3px, -10px); | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Link from 'next/link'; | ||
import { FaHouseChimney, FaGithub } from 'react-icons/fa6'; | ||
|
||
import { GITHUB_USER_HTML_URL } from '@/constants'; | ||
|
||
import styles from './Links.module.scss'; | ||
|
||
export default async function Links() { | ||
return ( | ||
<ul className={styles.links}> | ||
<li> | ||
<Link href="/"> | ||
<FaHouseChimney /> | ||
<span>Home</span> | ||
</Link> | ||
</li> | ||
<li> | ||
<Link href={GITHUB_USER_HTML_URL}> | ||
<FaGithub /> | ||
<span>GitHub</span> | ||
</Link> | ||
</li> | ||
</ul> | ||
); | ||
} |
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,37 @@ | ||
.links { | ||
@include props-flex-center; | ||
|
||
padding: 8px 0 16px; | ||
margin: 8px 0; | ||
|
||
> li > a { | ||
@include props-flex-center; | ||
@include selector-hover-default; | ||
|
||
&:hover { | ||
> svg { | ||
@include props-animation-shake; | ||
} | ||
} | ||
|
||
flex-direction: column; | ||
padding: 6px; | ||
|
||
> * { | ||
width: 40px; | ||
margin: 2px; | ||
} | ||
|
||
> svg { | ||
width: $size-24; | ||
height: $size-24; | ||
} | ||
|
||
> span { | ||
@include props-flex-center; | ||
|
||
color: var(--color-fg-muted); | ||
letter-spacing: -1px; | ||
} | ||
} | ||
} |
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,3 @@ | ||
import Links from './Links'; | ||
|
||
export default Links; |
Oops, something went wrong.