From 4e2fb294c211f730986a99fb11b0bed65a5156ec Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 13 Feb 2023 23:54:15 +0800 Subject: [PATCH] Polished initial page --- src/App.tsx | 9 ++++---- src/components/Icons/AppLogo/AppLogo.tsx | 29 ++++++++++++++++++++++++ src/styles.tsx | 18 +++++++++++++-- 3 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 src/components/Icons/AppLogo/AppLogo.tsx diff --git a/src/App.tsx b/src/App.tsx index 043a16c..7524daa 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,14 +1,15 @@ import React from "react"; -import logo from "./img/ivy.svg"; +import AppLogo from "./components/Icons/AppLogo/AppLogo"; import styles from "./styles"; export default function App() { return (
- - logo +
+

Ivy - Inventory Manager

- +
+

Welcome!

); } diff --git a/src/components/Icons/AppLogo/AppLogo.tsx b/src/components/Icons/AppLogo/AppLogo.tsx new file mode 100644 index 0000000..8f824b3 --- /dev/null +++ b/src/components/Icons/AppLogo/AppLogo.tsx @@ -0,0 +1,29 @@ +import React from "react"; + +export interface props { + size: number; + color: string; +} +export default function AppLogo(props: props) { + return ( + + + + + + + + + ); +} diff --git a/src/styles.tsx b/src/styles.tsx index e331968..f53ea86 100644 --- a/src/styles.tsx +++ b/src/styles.tsx @@ -1,13 +1,27 @@ import React from "react"; -const styles = { +const styles: { [key: string]: React.CSSProperties } = { background: { backgroundColor: "#0b2322", height: "100vh", display: "flex", + flexDirection: "column", justifyContent: "center", alignItems: "center", fontWeight: "bold", color: "white", - } as React.CSSProperties, + }, + flex_row: { + display: "flex", + flexDirection: "row", + justifyContent: "center", + alignItems: "center", + }, + header: { + display: "flex", + flexDirection: "row", + position: "sticky", + top: 0, + left: 0, + }, }; export default styles;