From 10112db8b2873e8958350e85eb767e533a3a0936 Mon Sep 17 00:00:00 2001 From: Lance Tan Date: Sun, 4 Feb 2024 15:14:06 -0800 Subject: [PATCH] Fix --- .../{backend/build.yml => backend-build.yml} | 0 .github/workflows/build.yml | 4 +- .../build.yml => frontend-build.yml} | 0 .github/workflows/release.yml | 6 +- frontend/src/hooks/.gitkeep | 0 frontend/src/pages/BidderLogInPage.jsx | 85 +++++++++++++++++++ frontend/src/utils/.gitkeep | 0 7 files changed, 90 insertions(+), 5 deletions(-) rename .github/workflows/{backend/build.yml => backend-build.yml} (100%) rename .github/workflows/{frontend/build.yml => frontend-build.yml} (100%) create mode 100644 frontend/src/hooks/.gitkeep create mode 100644 frontend/src/pages/BidderLogInPage.jsx create mode 100644 frontend/src/utils/.gitkeep diff --git a/.github/workflows/backend/build.yml b/.github/workflows/backend-build.yml similarity index 100% rename from .github/workflows/backend/build.yml rename to .github/workflows/backend-build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e01ffb..e96aaf8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,7 +8,7 @@ on: jobs: call-backend-build: - uses: ./.github/workflows/backend/build.yml + uses: ./.github/workflows/backend-build.yml with: pythonVersion: '3.10' secrets: @@ -19,6 +19,6 @@ jobs: AWS_S3_REGION_NAME: ${{ secrets.AWS_S3_REGION_NAME }} call-frontend-build: - uses: ./.github/workflows/frontend/build.yml + uses: ./.github/workflows/frontend-build.yml with: nodeVersion: '20.x' \ No newline at end of file diff --git a/.github/workflows/frontend/build.yml b/.github/workflows/frontend-build.yml similarity index 100% rename from .github/workflows/frontend/build.yml rename to .github/workflows/frontend-build.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49bd3f8..360e3cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,12 +12,12 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14' + node-version: '20.x' - name: Install dependencies run: npm install diff --git a/frontend/src/hooks/.gitkeep b/frontend/src/hooks/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/frontend/src/pages/BidderLogInPage.jsx b/frontend/src/pages/BidderLogInPage.jsx new file mode 100644 index 0000000..c9c61ff --- /dev/null +++ b/frontend/src/pages/BidderLogInPage.jsx @@ -0,0 +1,85 @@ +import React, { useState } from 'react'; +import { useNavigate } from 'react-router'; +import logo from '../assets/microvan_logo.svg'; +import OnboardingInputField from '../components/inputs/OnboardingInputField'; +import LogInButton from '../components/buttons/LogInButton'; + +export default function BidderLogInPage() { + const navigate = useNavigate(); + + const [email, setEmail] = useState(''); + const [password, setPassword] = useState(''); + + const handleEmailChange = (event) => setEmail(event.target.value); + const handlePasswordChange = (event) => setPassword(event.target.value); + + const handleLogIn = () => { + console.log(`Email: ${email}, Password: ${password}`); // eslint-disable-line no-console + }; + + return ( +
+
+ +
+ +
+ +
+ logo +

+ Microvan Inc. +

+

Virtual Auctions

+
+

Email

+ +
+
+

Password

+ +
+
+ +
+ +
+ +
+ +
+

+ © Microvan Inc. 2024 +

+
+
+ ); +} \ No newline at end of file diff --git a/frontend/src/utils/.gitkeep b/frontend/src/utils/.gitkeep new file mode 100644 index 0000000..e69de29