diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 433a036..b3bb9b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,11 +1,11 @@ -name: Builb Test and push +name: Build, Test and Push on: - push: - branches: - - "**" - pull_request: - branches: - - "**" + push: + branches: + - "**" + pull_request: + branches: + - "**" jobs: build: runs-on: ubuntu-latest @@ -16,5 +16,4 @@ jobs: with: node-version: 20 - run: npm install - - run: npm run lint - - run: npm run dev + - run: npm run lint \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx deleted file mode 100644 index 11f3095..0000000 --- a/src/App.tsx +++ /dev/null @@ -1,11 +0,0 @@ -import './App.css' - -function App() { - return ( - <> -

login

- - ) -} - -export default App diff --git a/src/components/Login.tsx b/src/components/Login.tsx new file mode 100644 index 0000000..0e62d43 --- /dev/null +++ b/src/components/Login.tsx @@ -0,0 +1,9 @@ +import '../App.css' + +export default function Login() { + return ( + <> +

login

+ + ) +} diff --git a/src/components/index.tsx b/src/components/index.tsx new file mode 100644 index 0000000..e9b0c8c --- /dev/null +++ b/src/components/index.tsx @@ -0,0 +1 @@ +export { default as Login } from "./Login"; \ No newline at end of file diff --git a/src/components/login.tsx b/src/components/login.tsx new file mode 100644 index 0000000..353711c --- /dev/null +++ b/src/components/login.tsx @@ -0,0 +1,9 @@ +import '../App.css' + +export default function Login() { + return ( + <> +

login

+ + ) +} \ No newline at end of file diff --git a/src/main.tsx b/src/main.tsx index 4327232..4851725 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,16 +1,17 @@ import React from 'react' import ReactDOM from 'react-dom/client' -import App from './App.tsx' import './index.css' import { createBrowserRouter, RouterProvider, } from "react-router-dom"; - +import { + Login +} from "./components"; const router = createBrowserRouter([ { path: "/", - element: , + element: , }, { diff --git a/tailwind.config.ts b/tailwind.config.ts index 1ceb200..cb0a743 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -5,5 +5,7 @@ export default { theme: { extend: {}, }, - plugins: [], + plugins: [ + require('@tailwindcss/forms'), + ], } satisfies Config \ No newline at end of file