mirror of
https://github.com/lemeow125/Ivy-Frontend.git
synced 2025-06-29 00:45:46 +08:00
Polished initial page
This commit is contained in:
parent
e43f1965f9
commit
da35d27e76
6 changed files with 121 additions and 46 deletions
38
src/App.css
38
src/App.css
|
@ -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);
|
||||
}
|
||||
}
|
14
src/App.tsx
14
src/App.tsx
|
@ -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;
|
||||
|
|
5
src/components/header/header.tsx
Normal file
5
src/components/header/header.tsx
Normal file
|
@ -0,0 +1,5 @@
|
|||
import React from "react";
|
||||
|
||||
export default function header() {
|
||||
return <div>{"header"}</div>;
|
||||
}
|
13
src/styles.tsx
Normal file
13
src/styles.tsx
Normal 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;
|
Loading…
Add table
Add a link
Reference in a new issue