Skip to content

Commit

Permalink
Add a basic design
Browse files Browse the repository at this point in the history
  • Loading branch information
ozgrozer committed Jun 29, 2024
1 parent 6c0c0d4 commit 066aeb1
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 1 deletion.
21 changes: 21 additions & 0 deletions components/Colors.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import styles from '@styles/Colors.module.scss'

export default () => {
const colors = ['#a1e8af', '#94c595', '#747c92', '#372772', '#3a2449']

return (
<div className={styles.colors}>
{colors.map((color, key) => {
return (
<div
key={key}
className={styles.color}
style={{ backgroundColor: color }}
>
{color}
</div>
)
})}
</div>
)
}
4 changes: 3 additions & 1 deletion pages/index.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import Head from 'next/head'

import Colors from '@components/Colors'

export default () => {
return (
<>
<Head>
<title>Colors</title>
</Head>

<div>Hello World!</div>
<Colors />
</>
)
}
10 changes: 10 additions & 0 deletions styles/Colors.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.colors {
height: 100vh;
display: flex;
flex-direction: row;

.color {
flex: 1;
height: 100%;
}
}

0 comments on commit 066aeb1

Please sign in to comment.