Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions app/loading.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.container {
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
height: 100vh;
@include typo-b1;
color: $color-gray-700;
}
20 changes: 20 additions & 0 deletions app/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
'use client'

import classNames from 'classnames/bind'

import Spinner from '@/shared/ui/spinner'

import styles from './loading.module.scss'

const cx = classNames.bind(styles)

const LoadingPage = () => {
return (
<div className={cx('container')}>
<p>Loading...</p>
<Spinner />
</div>
)
}

export default LoadingPage
11 changes: 11 additions & 0 deletions shared/styles/base/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,14 @@
overflow: hidden;
}
}

// skeleton
@mixin skeleton {
border-radius: 6px;
background-color: $color-gray-200;

div {
border-radius: 6px;
background-color: $color-gray-300;
}
}
15 changes: 15 additions & 0 deletions shared/ui/spinner/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import classNames from 'classnames/bind'

import styles from './styles.module.scss'

const cx = classNames.bind(styles)

interface Props {
className?: string
}

const Spinner = ({ className }: Props) => {
return <div className={cx('spinner', className)} />
}

export default Spinner
17 changes: 17 additions & 0 deletions shared/ui/spinner/styles.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.spinner {
width: 32px;
height: 32px;
border: 4px solid $color-gray-200;
border-top: 4px solid $color-orange-500;
border-radius: 50%;
animation: spin 1s linear infinite;
}

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}