From 1c9d83ee578407c194ca2ddefe974f18e4664352 Mon Sep 17 00:00:00 2001 From: BKM-05 <149606410+BKM-05@users.noreply.github.com> Date: Tue, 7 Nov 2023 17:41:25 +0000 Subject: [PATCH 1/3] Added changes t readme file --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d6191dd92..5b3c5a8e2 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,10 @@ # Project Name Long Description about project. This project do that. This project is awesome... ## Team members -1. Name [Embed personal github URL] -2. Name [Embed perosnal github URL] +1. Bhagyasree Kishore Menon [Embed personal github URL] +2. Arya Krishna [Embed perosnal github URL] +3. Diya Bhatt A [Embed perosnal github URL] +4. Gayatri K B [Embed perosnal github URL] ## Team Id Team id here ## Link to product walkthrough From f8c07425e7b8c47de8ff083e05422bb00c90b6a3 Mon Sep 17 00:00:00 2001 From: BKM-05 Date: Tue, 7 Nov 2023 23:39:41 +0530 Subject: [PATCH 2/3] Create React4Frontend --- Eve-fests_web/Frontend_Eve-fests/React4Frontend | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 Eve-fests_web/Frontend_Eve-fests/React4Frontend diff --git a/Eve-fests_web/Frontend_Eve-fests/React4Frontend b/Eve-fests_web/Frontend_Eve-fests/React4Frontend new file mode 100644 index 000000000..e69de29bb From a662ce8817c0b5bd9d2e98794f0a8c399bf4e5df Mon Sep 17 00:00:00 2001 From: BKM-05 Date: Wed, 8 Nov 2023 00:29:14 +0530 Subject: [PATCH 3/3] IDK 1 --- .vscode/launch.json | 15 ++++ .../Frontend_Eve-fests/React4Frontend | 70 +++++++++++++++++++ Reactproject123/Reactapp | 3 + 3 files changed, 88 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 Reactproject123/Reactapp diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..2ba986f6f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/Eve-fests_web/Frontend_Eve-fests/React4Frontend b/Eve-fests_web/Frontend_Eve-fests/React4Frontend index e69de29bb..f7dc2ae2a 100644 --- a/Eve-fests_web/Frontend_Eve-fests/React4Frontend +++ b/Eve-fests_web/Frontend_Eve-fests/React4Frontend @@ -0,0 +1,70 @@ +import React from 'react'; +import ReactDOM from 'react-dom'; +import './index.css'; +import App from './App'; +import reportWebVitals from './reportWebVitals'; + +var element = React.createElement('h1', { className: 'greeting' }, 'Hello, world!'); +ReactDOM.render(element, document.getElementById('root')); + +reportWebVitals(); + +import React, { useState } from 'react'; + +function App() { + const [isRegistering, setIsRegistering] = useState(true); + const [email, setEmail] = useState(''); + const [password, setPassword] = useState(''); + const [loggedInUser, setLoggedInUser] = useState(null); + + const handleToggleMode = () => { + setIsRegistering(!isRegistering); + }; + + const handleAuth = () => { + if (isRegistering) { + // Simulated user registration + console.log('User registered with email:', email); + } else { + // Simulated user login + console.log('User logged in with email:', email); + setLoggedInUser(email); // Set the user's email as the logged-in user + } + }; + + return ( +
+

Eve-fests

+ {loggedInUser ? ( +
+

Welcome, {loggedInUser}!

+ +
+ ) : ( +
+

{isRegistering ? 'Register' : 'Log In'}

+ setEmail(e.target.value)} + /> + setPassword(e.target.value)} + /> + +

+ {isRegistering ? 'Already have an account? Log in' : 'Don\'t have an account? Register'} +

+
+ )} +
+ ); +} + +export default App; diff --git a/Reactproject123/Reactapp b/Reactproject123/Reactapp new file mode 100644 index 000000000..f32176acb --- /dev/null +++ b/Reactproject123/Reactapp @@ -0,0 +1,3 @@ +npx create-react-app my-react-app +cd my-react-app +npm start