Skip to content

Commit

Permalink
created home page for the website
Browse files Browse the repository at this point in the history
  • Loading branch information
Sucheta Mahata committed Nov 2, 2021
1 parent 5b3433b commit 683b7b7
Show file tree
Hide file tree
Showing 34 changed files with 16,623 additions and 0 deletions.
16,025 changes: 16,025 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

43 changes: 43 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "gdsc_website",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"@types/jest": "^26.0.24",
"@types/node": "^12.20.33",
"@types/react": "^17.0.30",
"@types/react-dom": "^17.0.9",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"typescript": "^4.4.4",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts 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"
]
}
}
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/images/gdsc-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<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"
/>
<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`.
-->
<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`.
-->
</body>
</html>
Binary file added public/logo192.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/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
8 changes: 8 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

.App{
display: grid;
grid-template-rows: .5fr 5fr .6fr ;
max-width: 100vw;
height: 100vh
}

9 changes: 9 additions & 0 deletions src/App.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react';
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();
});
18 changes: 18 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import React from 'react';
import './App.css';
import Body from './components/Body/body';
import Footer from './components/Footer/footer';
import Header from './components/Header/header';


function App() {
return (
<div className="App">
<Header/>
<Body/>
<Footer/>
</div>
);
}

export default App;
101 changes: 101 additions & 0 deletions src/components/Body/body.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
.bodyDiv{
max-width: 100vw;
height: 80vh;
}

.topCircle{
height: 18vmin;
}
.bodySubDiv{
display:flex;
justify-content: space-between;
font-size: 1.5rem;
}

.bodyButton{
height: 2rem;
border-radius: 1rem;
width: 8rem;
background: #4285F4;
border-color: #4285F4;
margin-top: 1rem;
margin-left: 2rem;
}

.bodyText{
color:#6D6D6D;
font-size: 1.5rem;
margin-left: 2rem;

}
.dottedDesign{
height: 20vmin;
margin-top: 0rem;
}

.bodyHead{
margin-left: 2rem;
}

.orangeCircle{
height: 7vh;
}

.App-logo {
height: 70vmin;
}
.App-logo2 {
height: 70vmin;
display: none;
}

@media (max-width: 1024px){
.bodyDiv{
margin-top: 2rem;
}
.bodySubDiv {
font-size: 1rem;
}
.bodyText {
font-size: .8rem;
}
.App-logo {
height: 40vmin;
}
.topCircle {
height: 20vmin;
}
.bodyHead{
margin-left: 2rem;
}
}

@media (max-width: 425px) {
.bodyDiv{
margin-top: 0rem;
}
.bodySubDiv {
font-size: 1rem;
}
.bodyText {
font-size: 1rem;
}
.App-logo{
display: none;
}
.App-logo2{
height: 70vmin;
display:block;
}
.topCircle {
height: 22vmin;
}
.bodyHead{
margin-left: 2rem;
}
.bodyButton{
width: 5rem;
margin-top: 1.5rem;
}
}

34 changes: 34 additions & 0 deletions src/components/Body/body.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import logo from '../../svgimageFiles/logo.svg';
import topcircle from '../../svgimageFiles/top-circle.svg';
import orangecircle from '../../svgimageFiles/leftOrangeCircle.svg';
import dottedDesign from '../../svgimageFiles/dottedDesign.svg'
import './body.css'

const Body = () => {
return (
<div className='bodyDiv' >
<div className='bodySubDiv'>
<div>
<img src={topcircle} className="topCircle" alt="google developer student club" />

<h1 className='bodyHead'> Welcome to <br /> GDSC SNU </h1>
<p className='bodyText'>Google Developer Student Club (GDSC) is a Google
Developers program for university students to learn
web, mobile, and google technologies in a peer-to-peer
learning environment.
</p>
<button className='bodyButton' > Join Us</button>
<button className='bodyButton' style={{background: 'white'}}> Contact us</button>
<br />
<img src={dottedDesign} className="dottedDesign" alt="google developer student club" />

</div>
<img src={logo} className="App-logo" alt="logo" />
<img src={orangecircle} className="orangeCircle" alt="google developer student club" />
</div>
<img src={logo} className="App-logo2" alt="logo" />
</div>
)
}

export default Body
40 changes: 40 additions & 0 deletions src/components/Footer/footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.footerDiv{
width: 100vw;
height: 5vh;
display: flex;
justify-content: space-between;
}

.footerSubDiv{
margin-left: 40rem;
}

.greenCircle{
height: 9.5vmin;
}

.logo{
height: 4vmin;
margin: 2rem
}

@media (max-width: 1024px){
.footerSubDiv{
margin-left: 15rem;
}
}

@media (max-width: 425px) {
.footerSubDiv{
margin-left: 5rem;
}
}

@media (max-width: 425px) {
.footerSubDiv{
margin-left: 0rem;
}
.greenCircle{
height: 7.5vmin;
}
}
24 changes: 24 additions & 0 deletions src/components/Footer/footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import './footer.css'
import greenCircle from '../../svgimageFiles/greenCircle.svg'
import linkedin from '../../svgimageFiles/linkedinLogo.svg'
import youtube from '../../svgimageFiles/youtubeLogo.svg'
import twitter from '../../svgimageFiles/twitterLogo.svg'
import facebook from '../../svgimageFiles/facebookLogo.svg'


const Footer = () => {
return (
<div className='footerDiv'>
<div className='footerSubDiv'>
<img src={linkedin} className="logo" alt="google developer student club" />
<img src={facebook} className="logo" alt="google developer student club" />
<img src={twitter} className="logo" alt="google developer student club" />
<img src={youtube} className="logo" alt="google developer student club" />
</div>
<img src={greenCircle} className="greenCircle" alt="google developer student club" />

</div>
)
}

export default Footer
34 changes: 34 additions & 0 deletions src/components/Header/header.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.headerDiv{
height: 7vh;
width: 100vw;
display: flex;
color:rgb(146, 142, 137);
font-size: 1rem;
}
.title{
font-size: 2rem;
}

.headerLogo{
height: 3vmin;
margin: 1.5rem;
}

@media (max-width: 425px) {
.title{
font-size: 1.13rem;
}
.headerLogo{
margin: 1rem;
}
.headerDiv{
font-size: .8rem;
margin-top: 1rem;
}
}

@media (max-width: 320px) {
.title{
font-size: .9rem;
}
}
Loading

0 comments on commit 683b7b7

Please sign in to comment.