Skip to content

Commit

Permalink
--update: new website basic str
Browse files Browse the repository at this point in the history
  • Loading branch information
goelaakash79 committed May 24, 2020
1 parent f37858d commit 0d831ad
Show file tree
Hide file tree
Showing 21 changed files with 6,053 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

.next
# dependencies
/node_modules
/.pnp
Expand Down
12 changes: 12 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"printWidth": 80,
"tabWidth": 4,
"useTabs": true,
"semi": true,
"singleQuote": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"arrowParens": "avoid",
"proseWrap": "preserve"
}
64 changes: 64 additions & 0 deletions components/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import React from "react";
// import { func, string } from "prop-types";
import styled from "styled-components";
import Link from "next/link";
import Lottie from "react-lottie";
import animationData from "../public/static/images/lf30_editor_qQ1FOd.json";

const Heading = styled.h2`
font-family: Sen;
font-weight: 700;
color: #424242;
margin-top: 120px;
`;

const SubText = styled.p`
font-family: Sen;
font-size: 18px;
color: #707070;
margin-top: 16px;
`;

const Button = styled.button`
font-family: Sen;
margin-top: 16px;
font-weight: 700;
padding: 8px 32px;
border-radius: 4px;
background: #4285f4;
border: none;
font-size: 16px;
color: #fff;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 2px 4px rgba(0, 0, 0, 0.2);
`;

const Header = ({ theme, toggleTheme }) => {
const defaultOptions = {
loop: true,
autoplay: true,
animationData: animationData,
rendererSettings: {
preserveAspectRatio: "xMidYMid slice"
}
};
return (
<div className="container">
<div className="row mt-5">
<div className="col-lg-1"></div>
<div className="col-lg-5">
<Heading>
Developer Student Clubs KIET Group of Institutions
</Heading>
<SubText>powered by Google Developers</SubText>
<Button>Become a member</Button>
</div>
<div className="col-lg-5">
<Lottie options={defaultOptions} height={400} width={400} />
</div>
<div className="col-lg-1"></div>
</div>
</div>
);
};

export default Header;
24 changes: 24 additions & 0 deletions components/Layout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import Head from "next/head";
import Navbar from "./Navbar";

const Layout = props => (
<div>
<Head>
<title>DSC KIET</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin="anonymous"
/>
<link
href="https://fonts.googleapis.com/css2?family=Sen:wght@400;700;800&display=swap"
rel="stylesheet"
></link>
</Head>
<Navbar />
<div className="container">{props.children}</div>
</div>
);

export default Layout;
146 changes: 146 additions & 0 deletions components/Navbar.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
import React from "react";
import { func, string } from "prop-types";
import styled from "styled-components";
import Link from "next/link";
const Container = styled.nav`
color: ${({ theme }) => theme.text} !important;
background-color: ${({ theme }) => theme.body};
margin-bottom: 1.45rem;
`;

const Nav = styled.nav`
font-family: Sen;
`;

const Navbar = ({ theme, toggleTheme }) => {
return (
<Nav
className="navbar navbar-expand-lg navbar-light"
style={{ boxShadow: "0px 1px 2px rgba(0,0,0,0.2)" }}
>
<div className="container">
<a
href="/"
style={{ fontWeight: "600" }}
className="nav-link navbar-brand"
>
<img
className="img-fluid mb-1"
src="static/images/logo.png"
alt="logo"
width="45"
/>{" "}
DSC KIET
</a>

<button
className="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span className="navbar-toggler-icon"></span>
</button>

<div
className="collapse navbar-collapse"
id="navbarSupportedContent"
>
<ul
className="navbar-nav mr-auto nav justify-content-end"
style={{ width: "100%" }}
>
<li
className="nav-item m-1 "
style={{ fontWeight: "600" }}
>
<Link href="/">
<a
to="/"
style={{ fontWeight: "600" }}
className="nav-link"
exact
activeClassName="active"
>
Home
</a>
</Link>
</li>
<li
className="nav-item m-1"
style={{ fontWeight: "600" }}
>
<Link href="/events">
<a
to="/events"
style={{ fontWeight: "600" }}
className="nav-link"
activeClassName="active"
>
Events
</a>
</Link>
</li>

<li
className="nav-item m-1"
style={{ fontWeight: "600" }}
>
<Link href="/about">
<a
to="/about"
style={{ fontWeight: "600" }}
className="nav-link"
activeClassName="active"
>
About
</a>
</Link>
</li>

<li
className="nav-item m-1"
style={{ fontWeight: "600" }}
>
<Link href="/team">
<a
to="/team"
style={{ fontWeight: "600" }}
className="nav-link"
activeClassName="active"
>
Team
</a>
</Link>
</li>
<li
className="nav-item m-1"
style={{ fontWeight: "600" }}
>
<Link href="/contact">
<a
to="/contact"
style={{ fontWeight: "600" }}
className="nav-link"
activeClassName="active"
>
Contact
</a>
</Link>
</li>
</ul>
</div>
</div>
</Nav>
);
};

// Navbar.propTypes = {
// theme: string.isRequired,
// toggleTheme: func.isRequired,
// };

export default Navbar;
58 changes: 58 additions & 0 deletions components/Prices.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
class Prices extends React.Component {
state = {
currency: "USD"
};

render() {
let list = "";

if (this.state.currency === "USD") {
list = (
<li className="list-group-item">
Bitcoin rate for {this.props.bpi.USD.description} :{" "}
<span className="badge badge-primary">
{this.props.bpi.USD.code}
</span>{" "}
+ <strong>{this.props.bpi.USD.rate}</strong>
</li>
);
} else if (this.state.currency === "GBP") {
list = (
<li className="list-group-item">
Bitcoin rate for {this.props.bpi.GBP.description} :{" "}
<span className="badge badge-primary">
{this.props.bpi.GBP.code}
</span>{" "}
<strong>{this.props.bpi.GBP.rate}</strong>
</li>
);
} else if (this.state.currency === "EUR") {
list = (
<li className="list-group-item">
Bitcoin rate for {this.props.bpi.EUR.description} :{" "}
<span className="badge badge-primary">
{this.props.bpi.EUR.code}
</span>{" "}
<strong>{this.props.bpi.EUR.rate}</strong>
</li>
);
}

return (
<div>
<ul className="list-group">{list}</ul>
<br />
<select
onChange={e => this.setState({ currency: e.target.value })}
className="form-control"
>
<option value="USD">USD</option>
<option value="GBP">GBP</option>
<option value="EUR">EUR</option>
</select>
</div>
);
}
}

export default Prices;
Empty file added components/navbar.module.css
Empty file.
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "dsckiet-website",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "next",
"build": "next build",
"start": "next start"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"bootstrap": "^4.5.0",
"next": "^9.4.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-lottie": "^1.2.3",
"styled-components": "^5.1.0"
}
}
5 changes: 5 additions & 0 deletions pages/1_app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// import "bootstrap/dist/css/bootstrap.min.css";

// export default function MyApp({ Component, pageProps }) {
// return <Component {...pageProps} />;
// }
17 changes: 17 additions & 0 deletions pages/about.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Layout from "../components/Layout";

const About = () => (
<Layout>
<div>
<h1>About us</h1>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nisi
alias saepe voluptatibus officiis corporis nihil ipsa fuga,
soluta, nesciunt expedita et fugiat! Rerum reiciendis at magnam,
molestiae earum hic fuga.
</p>
</div>
</Layout>
);

export default About;
23 changes: 23 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import Layout from "../components/Layout";
import Header from "../components/Header";

const Index = props => (
<Layout>
<div>
<Header />
{/* <Prices bpi={props.bpi} /> */}
</div>
</Layout>
);

// Index.getInitialProps = async function () {
// const res = await Fetch(
// "https://api.coindesk.com/v1/bpi/currentprice.json"
// );
// const data = await res.json();
// return {
// bpi: data.bpi
// };
// };

export default Index;
Binary file added public/static/images/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions public/static/images/lf30_editor_qQ1FOd.json

Large diffs are not rendered by default.

Binary file added public/static/images/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/static/images/side.gif
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/static/images/sideimg.jpeg
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 public/static/images/slack-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0d831ad

Please sign in to comment.