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

KashiYatra-Assignment-3 #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
17 changes: 0 additions & 17 deletions README.md

This file was deleted.

Binary file added Screenshots/SS1.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 Screenshots/SS2.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 Screenshots/SS3.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 Screenshots/SS4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { removeModuleScopePlugin } = require("customize-cra");

module.exports = function override(config, env) {
if (!config.plugins) {
config.plugins = [];
}
removeModuleScopePlugin()(config);

return config;
};
35,561 changes: 35,561 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

47 changes: 47 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "archit_site",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"bootstrap": "^5.0.0-alpha1",
"gh-pages": "^3.1.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.0",
"web-vitals": "^0.2.4"
},
"scripts": {
"predeploy": "npm run build",
"deploy": "gh-pages -d build",
"start": "react-app-rewired start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"customize-cra": "^1.0.0",
"react-app-rewired": "^2.1.6"
}
}
19 changes: 19 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>

<title>GrowMore Inc.</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>

</body>
</html>
26 changes: 26 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react";
import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
import "../node_modules/bootstrap/dist/js/bootstrap.bundle";
import { Switch, Route, Redirect } from "react-router-dom";
import Home from "./Home";
import Benefits from "./Benefits";
import Contact from "./Contact";
import Duties from "./Duties";
import Navbar from "./Navbar";

function App() {
return (
<>
<Navbar />
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/benefits" component={Benefits} />
<Route exact path="/duties" component={Duties} />
<Route exact path="/contact" component={Contact} />
<Redirect to="/" />
</Switch>
</>
);
}

export default App;
18 changes: 18 additions & 0 deletions src/Benefits.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from "react";
import Common2 from "./Common2";
import web from "../src/Pictures/img3.png";

function Benefits() {
return (
<>
<Common2
name="Benefits of a"
imgsrc={web}
visit="/contact"
btname="Contact Us"
/>
</>
);
}

export default Benefits;
26 changes: 26 additions & 0 deletions src/Card.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from "react";
import { NavLink } from "react-router-dom";

function Card({ title, imgsrc }) {
return (
<>
<div className="col-md-4 col-10 mx-auto">
<div className="card">
<img src={imgsrc} className="card-img-top" alt="..." />
<div className="card-body">
<h5 className="card-title">{title}</h5>
<p className="card-text">
Some quick example text to build on the card title and make up the
bulk of the card's content.
</p>
<NavLink to="/contact" className="btn btn-primary">
Get Quote
</NavLink>
</div>
</div>
</div>
</>
);
}

export default Card;
45 changes: 45 additions & 0 deletions src/Common.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import React from "react";
import { NavLink } from "react-router-dom";

function Common({ name, imgsrc, visit, btname }) {
return (
<>
<section id="header" className="d-flex align-items-center">
<div className="container-fluid nav_bg">
<div className="row">
<div className="col-10 mx-auto">
<div className="row">
<div className="col-md-6 pt-5 pt-lg-0 order-2 order-lg-1 d-flex justify-content-center flex-column">
<h1>
{name}
<strong className="brand-name"> 2022</strong>
</h1>

<h2 className="my-3">
The Annual Social-cultural festival of Indian Institute of Technology (BHU) Varanasi.
</h2>

<div className="mt-3">
<NavLink to={visit} className="btn-get-started">
{btname}
</NavLink>
</div>
</div>

<div className="col-lg-6 order-1 order-lg-2 header-img">
<img
src={imgsrc}
className="img-fluid animated"
alt="HomeImg"
/>
</div>
</div>
</div>
</div>
</div>
</section>
</>
);
}

export default Common;
61 changes: 61 additions & 0 deletions src/Common2.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
import React from "react";
import { NavLink } from "react-router-dom";

function Common2({ name, imgsrc, visit, btname }) {
return (
<>
<section id="header" className="d-flex align-items-center">
<div className="container-fluid nav_bg">
<div className="row">
<div className="col-10 mx-auto">
<div className="row">
<div className="col-md-6 pt-5 pt-lg-0 order-2 order-lg-1 d-flex justify-content-center flex-column">
<h1>
{name}
<strong className="brand-name"> Campus Ambassador</strong>
</h1>

<h2 className="my-3">
Certification
</h2>
<p className="my-3">
Certificate of appreciation undersignedby Kashiyatra IIT (BHU) Varanasi to all CA's
</p>
<h2 className="my-3">
Prizes
</h2>
<p className="my-3">
Exciting Prizes for top 5 campus Ambassdors
</p>
<h2 className="my-3">
Concert Passes
</h2>
<p className="my-3">
Get premium access to concerts and EDM nights
</p>

<div className="mt-3">
<NavLink to={visit} className="btn-get-started">
{btname}
</NavLink>
</div>
</div>

<div className="col-lg-6 order-1 order-lg-2 header-img">
<img
src={imgsrc}
className="img-fluid animated"
alt="HomeImg"
/>
</div>
</div>
</div>
</div>
</div>
</section>
</>
);
}

export default Common2;

75 changes: 75 additions & 0 deletions src/Contact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
import React from "react";

function onClickButton(event) {
event.preventDefault();
}

function Contact() {
return (
<>
<div className="my-5">
<h1 className="text-center">Contact Us</h1>
</div>

<div className="container contact-div">
<div className="row">
<div className="col-md-6 col-10 mx-auto">
<form>
<div className="form-group">
<label for="exampleFormControlInput1">Enter Full Name</label>
<input
type="text"
className="form-control"
id="exampleFormControlInput1"
placeholder="Enter Your Name"
/>
</div>
<div className="form-group pt-3">
<label for="exampleFormControlInput1">Contact Number</label>
<input
type="text"
className="form-control"
id="exampleFormControlInput1"
placeholder="+91-"
/>
</div>
<div className="form-group pt-3">
<label for="exampleFormControlInput1">Email address</label>
<input
type="email"
className="form-control"
id="exampleFormControlInput1"
placeholder="name@example.com"
/>
</div>

<div className="form-group pt-3">
<label for="exampleFormControlTextarea1">
Type your Message Here
</label>
<textarea
className="form-control"
id="exampleFormControlTextarea1"
rows="3"
placeholder="Message"
></textarea>
</div>

<div className="col-12 pt-3">
<button
onClick={onClickButton}
className="btn btn-outline-primary"
type="submit"
>
Submit form
</button>
</div>
</form>
</div>
</div>
</div>
</>
);
}

export default Contact;
Loading