-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a layout for config and fixed grammer error
- Loading branch information
Showing
7 changed files
with
59 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Head from 'next/head' | ||
import { Navbar } from '../Navbar.jsx' | ||
import styles from "../../styles/components/layout/Layout.module.css" | ||
|
||
const MovingLayout = ({ children }) => { | ||
|
||
return ( | ||
<div className={styles.content}> | ||
<Head> | ||
<title>typo.io</title> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="color-scheme" content="dark light" /> | ||
</Head> | ||
|
||
<Navbar /> | ||
|
||
<main className={styles.main}> | ||
{children} | ||
</main> | ||
|
||
<div className={styles.footer}> | ||
<p> | ||
Powered by{' '} | ||
<code>niclas@127.0.0.1</code> | ||
</p> | ||
</div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
|
||
export default MovingLayout |
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,17 +1,20 @@ | ||
import { Checkbox } from "../../components/config/Checkbox.jsx" | ||
import { Mode } from "../../components/config/Mode.jsx" | ||
import MovingLayout from "../../components/layout/Moving-Layout.js" | ||
|
||
export default function Home() { | ||
return ( | ||
<> | ||
<Checkbox title="Error Sound" description="If this is enabled, you will hear a sound, every time you type a error. (Not recommend on Macbook's)" item="error_sounds" /> | ||
<Checkbox title="Click Sound" description="If this is enabled, you will hear a sound, every time you press a key. (Not recommend on Macbook's)" item="click_sounds" /> | ||
<Mode title="Input Mode" description="If you want to type quotes in you selected language, or just randomly placed words." item="input_mode" values={["Words", "Quotes"]} /> | ||
<Mode title="Unit" description="If you want to see your wpm or you cpm." item="unit" values={["WPM", "CPM"]} /> | ||
<Mode title="Unit" description="If you want to see your wpm or your cpm." item="unit" values={["WPM", "CPM"]} /> | ||
<Mode title="Mode" description="If you want to play in time, or just write a text." item="mode" values={["Text", "10s", "15s", "30s", "60s"]} /> | ||
<Mode title="Language" description="The Language, in which you want to type in" item="language" values={["English", "German", "France", "Russia"]} /> | ||
<Mode title="Font-Size" description="The size of the font" item="font-size" values={["15px", "20px", "25px", "30px"]} /> | ||
<Mode title="Font" description="The font" item="font-family" values={["'Arial'", "monospace", "'Roboto'", "Source Code Pro"]} /> | ||
</> | ||
) | ||
} | ||
|
||
Home.Layout = MovingLayout; |
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 |
---|---|---|
|
@@ -10,7 +10,6 @@ | |
padding: 0; | ||
margin: 0; | ||
height: 50px; | ||
border-bottom: 1px solid #eaeaea; | ||
} | ||
|
||
.navigation .logo { | ||
|
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
7b60f7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: