Skip to content

Commit

Permalink
Yeha im done for today
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkoetzler committed Nov 4, 2024
1 parent 95eee7e commit 1967281
Show file tree
Hide file tree
Showing 15 changed files with 95 additions and 31 deletions.
8 changes: 0 additions & 8 deletions antonkoetzler.github.io/__tests__/App.test.tsx

This file was deleted.

7 changes: 0 additions & 7 deletions antonkoetzler.github.io/src/app/App.tsx

This file was deleted.

14 changes: 14 additions & 0 deletions antonkoetzler.github.io/src/app/componnets/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import '../css/App.css';
import AppBar from './AppBar';
import AppBody from './AppBody';

const App = () => {
return (
<div id='app'>
<AppBar />
<AppBody />
</div>
);
}

export default App;
11 changes: 11 additions & 0 deletions antonkoetzler.github.io/src/app/componnets/AppBar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import '../css/AppBar.css';

const AppBar = () => {
return (
<header id='appBar'>
Start
</header>
);
};

export default AppBar;
10 changes: 10 additions & 0 deletions antonkoetzler.github.io/src/app/componnets/AppBody.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import '../css/AppBody.css';

const AppBody = () => {
return (
<article id='appBody'>
</article>
);
};

export default AppBody;
8 changes: 8 additions & 0 deletions antonkoetzler.github.io/src/app/css/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#app {
width: 100%;
height: 100%;
position: fixed;
background: var(--primary-dark-mode-color);
display: flex;
flex-direction: column;
}
3 changes: 3 additions & 0 deletions antonkoetzler.github.io/src/app/css/AppBar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#appBar {
background: pink;
}
5 changes: 5 additions & 0 deletions antonkoetzler.github.io/src/app/css/AppBody.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#appBody {
flex: 1;
background: lightgreen;
opacity: 0.3;
}
41 changes: 41 additions & 0 deletions antonkoetzler.github.io/src/app/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
:root {
--primary-dark-mode-color: #181818;
--primary-light-mode-color: #EDE6D6;
}

/* Regular font. */
@font-face {
font-family: 'Iosevka';
src: url('../../assets/fonts/Iosevka-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}

/* Italic font. */
@font-face {
font-family: 'Iosevka';
src: url('../../assets/fonts/Iosevka-Italic.ttf') format('truetype');
font-weight: normal;
font-style: italic;
}

/* Bold font. */
@font-face {
font-family: 'Iosevka';
src: url('../../assets/fonts/Iosevka-Bold.ttf') format('truetype');
font-weight: bold;
font-style: normal;
}

body {
/* Disable default HTML margin. */
margin: 0;

/* Default font and font color. */
font-family: 'Iosevka';
color: var(--primary-light-mode-color);

/* Smooth text. */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
13 changes: 0 additions & 13 deletions antonkoetzler.github.io/src/css/index.css

This file was deleted.

4 changes: 2 additions & 2 deletions antonkoetzler.github.io/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './css/index.css';
import App from './app/App';
import './app/css/index.css';
import App from './app/componnets/App';
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(
Expand Down
2 changes: 1 addition & 1 deletion antonkoetzler.github.io/src/tests/App.test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { render, screen } from '@testing-library/react';
import App from '../app/App';
import App from '../app/componnets/App';

test('renders learn react link', () => {
render(<App />);
Expand Down

0 comments on commit 1967281

Please sign in to comment.