From 6dbd389f02f6b9f5da78125b31bc34f331f0be2d Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Sat, 11 Sep 2021 19:32:24 +0200 Subject: [PATCH] stub login page --- src/App.tsx | 4 +++- src/components/CreateDirButton.tsx | 2 +- src/components/FileBrowser.tsx | 2 +- src/components/Login.tsx | 25 +++++++++++++++++++++++++ src/index.scss | 6 ++++++ 5 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 src/components/Login.tsx diff --git a/src/App.tsx b/src/App.tsx index 4e3b2f8..909e800 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2,12 +2,14 @@ import React from "react" import FileBrowser from "./components/FileBrowser" import { BrowserRouter as Router, Switch, Route, Redirect } from "react-router-dom" import NotFound from "./components/NotFound" +import Login from "./components/Login" const App: React.FC = () => { return ( -
+
+ diff --git a/src/components/CreateDirButton.tsx b/src/components/CreateDirButton.tsx index de51ec9..e8dddbf 100644 --- a/src/components/CreateDirButton.tsx +++ b/src/components/CreateDirButton.tsx @@ -38,7 +38,7 @@ const CreateDirButton: React.FC = (props) => { }}> setName(e.target.value)} value={name} diff --git a/src/components/FileBrowser.tsx b/src/components/FileBrowser.tsx index 792e745..cf0e032 100644 --- a/src/components/FileBrowser.tsx +++ b/src/components/FileBrowser.tsx @@ -111,7 +111,7 @@ const FileBrowser: React.FC = (props) => { } return ( -
+
{ + return ( +
+
+
{ + e.preventDefault() + }} > + + + +
+
+
+ ) +} + +export default Login diff --git a/src/index.scss b/src/index.scss index b5c61c9..6e6244c 100644 --- a/src/index.scss +++ b/src/index.scss @@ -1,3 +1,9 @@ @tailwind base; @tailwind components; @tailwind utilities; + +/* Commonly used classes*/ + +.text-input{ + @apply bg-transparent border-gray-900 dark:border-gray-300 dark:text-gray-300 outline-none border-b +}