Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial commit #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/src.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import logo from './logo1.png';
import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Login from './Login'; // Adjust the import path based on your file structure
import BorS from './BorS'; // Import the new page component
import SignUp from './SignUp';


const App = () => {
return (
<Router>
<Routes>
<Route path="/" element={<Login />} />
<Route path="/bors" element={<BorS />} />
<Route path="/signup" element={<SignUp />} /> {/* Add the SignUp route */}
</Routes>
</Router>
);
};

export default App;


8 changes: 8 additions & 0 deletions App.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { render, screen } from '@testing-library/react';
import App from './App';

test('renders learn react link', () => {
render(<App />);
const linkElement = screen.getByText(/learn react/i);
expect(linkElement).toBeInTheDocument();
});
68 changes: 68 additions & 0 deletions BorS.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
.background {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #ffffff; /* White background */
}

.logo {
width: 400px;
height: 300px;
margin-bottom: 150px;
}

.rect_horiz {
width: 160px;
height: 340%;
color: #000000;
top: 30%;
left: 70px;
}
.bodyText {
margin-top: 20px;
bottom: 100px;
color: #fff; /* White text color */
text-align: left;
margin-top: 15px;
}
.bottomStuff {
width: 80%;
position: relative;
bottom: 0px;
text-align: center;
}

.input {
display: block;
width: 100%;
color: #fff; /* White text color */
background-color: #222; /* Dark background for input */
padding: 10px;
margin: 10px 0; /* Vertical margin for spacing between inputs */
border-radius: 5px;
border: none;
}

.button {
color: #fff; /* White text color for Login button words*/
background-color: #6c63ff; /* Purple background for login button*/
width: 100%;
padding: 10px;
border-radius: 5px;
border: none;
cursor: pointer;
margin: 10px;
}

.footer {
color: #fff; /* White text color */
text-align: center;
margin-top: 10px;
}

.link {
color: #6c63ff; /* Purple text color for links */
text-decoration: none;
}
13 changes: 13 additions & 0 deletions BorS.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import logo from './logo1.png';
import React from 'react';
import './BorS.css';

const BorS = () => {
return (
<div>
<div className="rect_horiz"></div>
</div>
);
};

export default BorS;
69 changes: 69 additions & 0 deletions Login.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.background {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #ffffff; /* White background */
}

.logo {
width: 400px;
height: 300px;
margin-bottom: 150px;
}

.bottom-half {
width: 100%;
height: 50%;
background-color: #000000; /* Black background */
position: absolute;
top: 55%;
left: 0;
}
.bodyText {
margin-top: 20px;
bottom: 100px;
color: #fff; /* White text color */
text-align: left;
margin-top: 15px;
}
.bottomStuff {
width: 80%;
position: relative;
bottom: 0px;
text-align: center;
}

.input {
display: block;
width: 100%;
color: #fff; /* White text color */
background-color: #222; /* Dark background for input */
padding: 10px;
margin: 10px 0; /* Vertical margin for spacing between inputs */
border-radius: 5px;
border: none;
}

.button {
color: #fff; /* White text color for Login button words*/
background-color: #6c63ff; /* Purple background for login button*/
width: 100%;
padding: 10px;
border-radius: 5px;
border: none;
cursor: pointer;
margin: 10px;
}

.footer {
color: #fff; /* White text color */
text-align: center;
margin-top: 10px;
}

.link {
color: #6c63ff; /* Purple text color for links */
text-decoration: none;
}
36 changes: 36 additions & 0 deletions Login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import logo from './logo1.png';
import { useNavigate } from 'react-router-dom'; // Import useNavigate from react-router-dom
import React from 'react';
import './Login.css';

const Login = () => {
const navigate = useNavigate();
const loginNav = () => {
navigate('/bors');
}
const signUpNav = () => {
navigate('/signup');
}
return (
<div className="background">
<div className="bottom-half"></div>
<img src={logo} alt="Logo" className="logo" />
<div className="bottomStuff">
<p className="bodyText">
Welcome to Husky Marketplace! Login below or create an account if you don't have one.
</p>
<input type="email" placeholder="Enter email" className="input" />
<input type="password" placeholder="Password" className="input" />
<button className="button" onClick={loginNav}>Login</button>
<p className="footer">
Don’t have an account?{' '}
<span className="link" onClick={signUpNav} style={{ cursor: 'pointer', color: '#6c63ff', textDecoration: 'underline' }}>
Sign Up
</span>
</p>
</div>
</div>
);
};

export default Login;
69 changes: 69 additions & 0 deletions SignUp.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
.background {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #ffffff; /* White background */
}

.logo {
width: 400px;
height: 300px;
margin-bottom: 150px;
}

.bottom-half {
width: 100%;
height: 50%;
background-color: #000000; /* Black background */
position: absolute;
top: 55%;
left: 0;
}
.bodyText {
margin-top: 20px;
bottom: 100px;
color: #fff; /* White text color */
text-align: left;
margin-top: 15px;
}
.bottomStuff {
width: 80%;
position: relative;
bottom: 0px;
text-align: center;
}

.input {
display: block;
width: 100%;
color: #fff; /* White text color */
background-color: #222; /* Dark background for input */
padding: 10px;
margin: 10px 0; /* Vertical margin for spacing between inputs */
border-radius: 5px;
border: none;
}

.button {
color: #fff; /* White text color for Login button words*/
background-color: #6c63ff; /* Purple background for login button*/
width: 100%;
padding: 10px;
border-radius: 5px;
border: none;
cursor: pointer;
margin: 10px;
}

.footer {
color: #fff; /* White text color */
text-align: center;
margin-top: 10px;
}

.link {
color: #6c63ff; /* Purple text color for links */
text-decoration: none;
}
16 changes: 16 additions & 0 deletions SignUp.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import logo from './logo1.png';
import React from 'react';

import './SignUp.css';

const SignUp = () => {
return (
<div>
<h1>Sign Up Page</h1>
<p>This is where users can create a new account.</p>
{/* Add your signup form here */}
</div>
);
};

export default SignUp;
13 changes: 13 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 1 addition & 0 deletions logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added logo1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading