Skip to content

Commit

Permalink
🚧 Added color to background and added Header
Browse files Browse the repository at this point in the history
  • Loading branch information
EdTonatto committed Jun 19, 2023
1 parent a0aae74 commit 58b7751
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { Header } from './components/Header'
import './global.css'

export function App() {
return (
<h1>Game Notes</h1>
<div>
<Header />
</div>
)
}
9 changes: 9 additions & 0 deletions src/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions src/components/Header.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import styles from './Header.module.css';
import gameNotesLogo from '../assets/logo.svg';

export function Header() {
return (
<header className={styles.header}>
<img src={gameNotesLogo} alt="Game Notes Logo" />
</header>
);
}
10 changes: 10 additions & 0 deletions src/components/Header.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
.header {
background: var(--black);
display: flex;
justify-content: center;
padding: 1.2rem 0;
}

.header img {
height: 3.87rem;
}
20 changes: 20 additions & 0 deletions src/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
:root {
--white: #fff;
--gray: #c4c4c4;
--blue-1: #4e8ddb;
--blue-2: #1a2141;
--blue-3: #0b1334;
--black: #040814;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
background: var(--blue-2);
color: var(--white);
-webkit-font-smoothing: antialiased;
}

0 comments on commit 58b7751

Please sign in to comment.