Polished initial page

This commit is contained in:
Keannu Christian Bernasol 2023-02-13 22:49:32 +08:00
parent e43f1965f9
commit da35d27e76
6 changed files with 121 additions and 46 deletions

View file

@ -1,38 +0,0 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View file

@ -1,16 +1,14 @@
import React from "react";
import logo from "./img/ivy.svg";
import "./App.css";
import styles from "./styles";
function App() {
export default function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} alt="logo" style={{ width: 128, height: 128 }} />
<div style={styles.background}>
<body style={styles.background}>
<img src={logo} alt="logo" />
<p>Ivy - Inventory Manager</p>
</header>
</body>
</div>
);
}
export default App;

View file

@ -0,0 +1,5 @@
import React from "react";
export default function header() {
return <div>{"header"}</div>;
}

13
src/styles.tsx Normal file
View file

@ -0,0 +1,13 @@
import React from "react";
const styles = {
background: {
backgroundColor: "#0b2322",
height: "100vh",
display: "flex",
justifyContent: "center",
alignItems: "center",
fontWeight: "bold",
color: "white",
} as React.CSSProperties,
};
export default styles;