Skip to content
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
87 changes: 70 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,70 @@
# LAUREL : : CERTIFICATE GENERATOR BASED ON TEMPLATES

- FORK THIS PROJECT
- CLONE IT
- RUN THE FOLLOWING
```
cd laurel
npm install
```
- CREATE A FIREBASE PROJECT AND SET UP HOSTING
- CHANGE THE `firebaseConfig` in `src/firebase.js`
- RUN THE FOLLOWING
```
npm start
```

THIS WILL GET THE PROJECT RUNNING.
# Getting Started with Create React App

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.\
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)

### Analyzing the Bundle Size

This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)

### Making a Progressive Web App

This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)

### Advanced Configuration

This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)

### Deployment

This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)

### `yarn build` fails to minify

This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
20 changes: 6 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,16 @@
{
"name": "laurel",
"name": "login-ui",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"bootstrap": "^5.1.3",
"firebase": "^9.3.0",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.2",
"react-bootstrap": "^2.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^6.0.1",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2",
"workbox-core": "^6.3.0",
"workbox-expiration": "^6.3.0",
"workbox-precaching": "^6.3.0",
"workbox-routing": "^6.3.0",
"workbox-strategies": "^6.3.0"
"styled-components": "^5.3.3",
"web-vitals": "^1.0.1"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Binary file added public/images/GDSC RCCIIT Logo.png
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 public/images/Rectangle 1.png
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 public/images/circle highlight.png
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 public/images/google-crowdsource 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 public/images/logo big.png
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 public/images/pattern-background-png-4 1 (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 16 additions & 25 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,26 @@
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.

Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css"
integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2"
crossorigin="anonymous"
/>
<title>React App</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.

You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.

To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
crossorigin="anonymous"
></script>
</body>
</html>
26 changes: 26 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Roboto;
overflow: hidden;
}
.App {
display: flex;
}
.leftside {
flex: 6;
}
.rightside {
flex: 6;
}
.middle-image {
position: fixed;
top: 50%;
left: 50%;
/* bring your own prefixes */
transform: translate(-50%, -50%);
z-index: 2;
}
27 changes: 15 additions & 12 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import './App.css';
import {
BrowserRouter as Router,
Routes,
Route,
} from "react-router-dom";
import Home from './Components/Home';
import "./App.css";
import LeftSide from "./components/LeftSide";
import Navbar from "./components/Navbar";
import RightSide from "./components/RightSide";

function App() {
return (
<Router>
<Routes>
<Route exact path="/" element={<Home/>} />
</Routes>
</Router>
<div className="App">
<div className="leftside">
<Navbar />
<LeftSide />
</div>
<img src="images/logo big.png" alt="" className="middle-image" />

<div className="rightside">
<RightSide />
</div>
</div>
);
}

Expand Down
150 changes: 150 additions & 0 deletions src/Components/LeftSide.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
import React from "react";
import styled from "styled-components";

const LeftSide = () => {
return (
<LeftSideContainer>
<LoginMain>
<BackGroundImgContainer>
<BackGroundImg
src="images/GDSC RCCIIT Logo.png"
alt="gdsclogo"
></BackGroundImg>
</BackGroundImgContainer>
<LoginBox>
<label htmlFor="name">Name:</label>
<input required type="text" id="name" className="rounded-pill" />
<label htmlFor="email">Email Id:</label>
<input required type="email" id="email" className="rounded-pill" />
<label htmlFor="password">Password</label>
<input
required
type="password"
id="password"
className="rounded-pill"
/>
<button type="submit" className="rounded-pill">
Signup Now
</button>
<LoginButtonBottom>
<a>Login</a>
<a>Forget Password ?</a>
</LoginButtonBottom>
</LoginBox>
</LoginMain>
<BottomImageContainer>
<img src="images/google-crowdsource 1.png" alt="" />
</BottomImageContainer>
</LeftSideContainer>
);
};

const LeftSideContainer = styled.div`
min-height: calc(100vh-50px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-around;
position: relative;
z-index: 3;
background-color: transparent;
`;
const BackGroundImgContainer = styled.div`
flex: 1;
`;
const BackGroundImg = styled.img`
width: 100%;
height: 100%;
object-fit: cover;

padding: 20px;
margin-bottom: 20px;
`;

const LoginMain = styled.div`
width: 100%;
/* margin-top: 10px; */
/* margin-left: 140px; */
flex: 1;
display: flex;
flex-direction: column;
/* justify-content: center; */
align-items: center;
background-color: transparent;
/* justify-content: space-between; */
`;
const LoginBox = styled.form`
position: relative;
top: -40px;
height: 50vh;

padding: 20px;
background-color: white;
border-radius: 10px;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-bottom: 0;
input {
width: 100%;
}
& > label {
width: 107px;
height: 32px;
left: 97px;
top: 338px;
font-family: "Roboto Slab", serif;
font-style: normal;
font-weight: bold;
font-size: 24px;
line-height: 32px;
}
button {
margin-top: 10px;
/* width: 100%;
height: 100%; */
background-color: #1c1818;
border-radius: 50px;
width: 430px;
height: 52px;
left: 94px;
top: 608px;
color: #fff;
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 30px;
line-height: 35px;
text-align: center;
}
`;
const LoginButtonBottom = styled.div`
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
a {
cursor: pointer;
font-size: 24px;
font-family: "Roboto", sans-serif;
color: #929292;
font-weight: 500;
}
`;
const BottomImageContainer = styled.div`
flex: 1;
position: relative;
width: 100%;
height: 160px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
img {
object-fit: cover;
width: 80%;
height: 80%;
}
`;

export default LeftSide;
Loading