Skip to content
Snippets Groups Projects
Commit 1e3c3485 authored by Ganapathi Subramanyam  Jayam's avatar Ganapathi Subramanyam Jayam :dart:
Browse files

major update

parent 44d7ce62
Branches
No related tags found
No related merge requests found
Showing with 6605 additions and 7871 deletions
# 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:
### `npm 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.
### `npm 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.
### `npm run 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.
### `npm run 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)
### `npm run 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)
This diff is collapsed.
{
"name": "student-view",
"name": "react_admin_dashboard",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.5",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-router-dom": "^5.2.0",
"react-scripts": "4.0.3",
"react-under-construction": "^0.3.0",
"web-vitals": "^1.1.1"
"@testing-library/jest-dom": "^5.11.5",
"@testing-library/react": "^11.1.1",
"@testing-library/user-event": "^12.2.0",
"firebase": "^8.2.9",
"firebaseui": "^4.7.3",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-loader-spinner": "^4.0.0",
"react-scripts": "4.0.0",
"react-vis": "^1.11.7",
"uuid": "^8.3.1"
},
"scripts": {
"start": "react-scripts start",
......
......@@ -10,34 +10,17 @@
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>Digital Course File System Students View</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN"
crossorigin="anonymous"
/>
<title>Digital Course File System (Students View)</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>
import React from 'react'
export default function About() {
return <h2>About</h2>;
}
\ No newline at end of file
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@import url('https://fonts.googleapis.com/css?family=Roboto+Condensed&display=swap');
body {
color: #fff;
font-family: 'Roboto Condensed', sans-serif;
background-image: url(https://images.unsplash.com/photo-1508389377389-b8221c0bcc9e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1350&q=80);
background-position: top top;
background-size: cover;
margin: 0;
}
.App {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-align: center;
background: rgb(49, 49, 177);
background: linear-gradient(
0deg,
rgba(49, 49, 177, 1) 0%,
rgba(49, 49, 177, 1) 50%,
rgba(49, 49, 177, 0.6) 100%
);
}
.container {
width: 100%;
margin: 15% auto;
}
.col-4 {
width: 25%;
float: left;
}
h1 {
font-size: 38px;
text-transform: uppercase;
line-height: 1;
}
@media (min-width: 768px) {
.container {
width: 1100px;
}
h1 {
font-size: 58px;
}
}
import React from 'react'
import {
BrowserRouter as Router,
Switch,
Route,
Link,
useRouteMatch,
useParams,
} from 'react-router-dom'
import Home from './Home'
import About from './About'
import Construction from './construction'
import { useState } from "react";
import "./App.css";
import Main from "./components/main/Main";
import Navbar from "./components/navbar/Navbar";
import Sidebar from "./components/sidebar/Sidebar";
export default function App() {
const App = () => {
const [sidebarOpen, setsidebarOpen] = useState(false);
const openSidebar = () => {
setsidebarOpen(true);
};
const closeSidebar = () => {
setsidebarOpen(false);
};
return (
<Router>
<div>
<Switch>
<Route path='/about'>
<About />
</Route>
<Route path='/folders'>
<Construction />
</Route>
<Route path='/'>
<Home />
</Route>
</Switch>
<div className="container">
<Navbar sidebarOpen={sidebarOpen} openSidebar={openSidebar} />
<Main />
<Sidebar sidebarOpen={sidebarOpen} closeSidebar={closeSidebar} />
</div>
</Router>
)
}
);
};
export default App;
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();
});
import React from 'react';
import ReactDOM from "react-dom";
import Preloader from "./components/Preloader/Preloader";
import Timer from "./components/Countdown/Timer";
import Optin from "./components/Optin/Optin";
import {
BrowserRouter as Router,
Switch,
......@@ -25,8 +22,6 @@ export default function Background() {
<br />
Requested FolderID: {topicId}
</h1>
<Timer />
<Preloader />
</div>
</div>
);
......
import React from 'react'
export default function Home() {
return <h2>Home</h2>;
}
\ No newline at end of file
import React from 'react'
import {
BrowserRouter as Router,
Switch,
Route,
Link,
useRouteMatch,
useParams,
} from 'react-router-dom'
// import Home from './Home'
// import About from './About'
import Construction from './Construction'
export default function Routes() {
return (
<Router>
<div>
<Switch>
{/* <Route path='/about'>
<About />
</Route> */}
<Route path='/folders'>
<Construction />
</Route>
{/* <Route path='/'>
<Home />
</Route> */}
</Switch>
</div>
</Router>
)
}
<svg id="e59edb86-a3bc-4694-8aac-31e565ca5cfc" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="676" height="676" viewBox="0 0 676 676"><title>male_avatar</title><path d="M938,450a336.852,336.852,0,0,1-27.22,133.1L909.66,585.68A338.559,338.559,0,0,1,541.35,782.93q-3.045-.54-6.08-1.12a334.98111,334.98111,0,0,1-61.14-18.03q-4.815-1.935-9.56-4.01c-2.16-.94-4.32-1.91-6.46-2.91A338.41424,338.41424,0,0,1,262,450c0-186.67,151.33-338,338-338S938,263.33,938,450Z" transform="translate(-262 -112)" fill="#facc1d"/><path d="M541.35,782.93q-3.045-.54-6.08-1.12c-1.32-38.31-5.85-116.94-21.30005-199.29C505.52,537.45,493.79,491.25,477.52,449.95a412.60387,412.60387,0,0,0-19.07-41.84c-16.44-31.05-36.38-57.19-60.56-74.9l3.56-4.86q30.165,22.11,54.22,62.08,7.215,11.97,13.86005,25.54,7.125,14.52,13.59,30.83,4.125,10.38,7.97,21.48,16.74,48.195,28.46,109.98,2.59506,13.65,4.94,27.97C536.6,680.2,540.25,748.59,541.35,782.93Z" transform="translate(-262 -112)" opacity="0.2"/><path d="M464.57,759.77c-2.16-.94-4.32-1.91-6.46-2.91-2.09-22.7-5.93-50.86-12.95-77.59A254.55666,254.55666,0,0,0,433.35,644.07c-8.01-18.75-18.38-34.69-31.79-44.52l3.56-4.85c14.04,10.28,24.87,26.53,33.24,45.54,9.43,21.42,15.72,46.35,19.91,70.17C461.38,728.1,463.34,745.19,464.57,759.77Z" transform="translate(-262 -112)" opacity="0.2"/><circle cx="102.26174" cy="190.98167" r="30.08857" opacity="0.2"/><circle cx="111.9514" cy="449.99083" r="30.08857" opacity="0.2"/><path d="M483.71449,353.52139c-6.38046,35.99732,7.70456,68.59225,7.70456,68.59225s24.42979-25.76825,30.81025-61.76557-7.70457-68.59225-7.70457-68.59225S490.09494,317.52407,483.71449,353.52139Z" transform="translate(-262 -112)" opacity="0.2"/><path d="M383.71766,438.97122c34.33494,12.555,68.83676,4.498,68.83676,4.498s-21.16612-28.41279-55.50106-40.96784-68.83675-4.498-68.83675-4.498S349.38272,426.41617,383.71766,438.97122Z" transform="translate(-262 -112)" opacity="0.2"/><path d="M377.89534,668.333c24.066,8.80008,48.28314,3.0594,48.28314,3.0594S411.37687,651.384,387.31086,642.5839s-48.28314-3.0594-48.28314-3.0594S353.82933,659.53292,377.89534,668.333Z" transform="translate(-262 -112)" opacity="0.2"/><circle cx="337.30608" cy="281.0788" r="131.77014" fill="#d0cde1"/><path d="M547.83337,493.96531s16.47127,78.23852,16.47127,86.47415,78.23852,45.296,78.23852,45.296L712.546,613.382,737.253,539.26129s-41.17817-61.76725-41.17817-86.47415Z" transform="translate(-262 -112)" fill="#d0cde1"/><path d="M910.78,583.1,909.66,585.68A338.559,338.559,0,0,1,541.35,782.93q-3.045-.54-6.08-1.12a334.98111,334.98111,0,0,1-61.14-18.03q-4.815-1.935-9.56-4.01c-2.16-.94-4.32-1.91-6.46-2.91a337.59273,337.59273,0,0,1-55.25-32.28l-15.62-45.31,8.78-6.69995,18.06-13.79,19.27-14.71,5.01-3.83,75.61-57.72,5.58-4.26,39.3-30,.01-.01s42.5,69.25,104.27,48.66,60.42-79.63,60.42-79.63Z" transform="translate(-262 -112)" fill="#2f2e41"/><path d="M485.03538,286.916s41.83653-90.64581,122.02321-69.72755,125.50958,52.29566,128.996,83.67306-1.74319,78.44348-1.74319,78.44348-8.716-64.498-64.498-50.55247-142.94147,3.48638-142.94147,3.48638L512.9264,457.74849s-15.6887-22.66145-33.12058-8.71594S429.25335,314.807,485.03538,286.916Z" transform="translate(-262 -112)" fill="#2f2e41"/><path d="M474.13,763.78q-4.815-1.935-9.56-4.01c-2.16-.94-4.32-1.91-6.46-2.91a338.835,338.835,0,0,1-87.59-58.7c9.19-12.52,16.72-18.89,16.72-18.89h61.77l9.26,31.14Z" transform="translate(-262 -112)" fill="#2f2e41"/><path d="M856.67,576.32l52.99,9.36A337.94434,337.94434,0,0,1,852.9,674.25Z" transform="translate(-262 -112)" fill="#2f2e41"/></svg>
\ No newline at end of file
src/assets/favicon.ico

7.23 KiB

<svg id="a581a3db-2a43-4a80-ac9d-86c7ddaa56ac" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="903.82216" height="748.21523" viewBox="0 0 903.82216 748.21523"><defs><linearGradient id="fbde297d-ab9b-4106-ad77-f89466c8290f" x1="963.63174" y1="410.81483" x2="963.63174" y2="349.80222" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="gray" stop-opacity="0.25"/><stop offset="0.53514" stop-color="gray" stop-opacity="0.12"/><stop offset="1" stop-color="gray" stop-opacity="0.1"/></linearGradient><linearGradient id="b55aa966-9953-40ef-b933-2af4fb1d4bf9" x1="514.09486" y1="824.10762" x2="514.09486" y2="75.89238" xlink:href="#fbde297d-ab9b-4106-ad77-f89466c8290f"/><linearGradient id="a395c18f-205e-4149-866b-9e6fd62c4f5f" x1="725.6791" y1="487.07514" x2="725.6791" y2="484.07514" xlink:href="#fbde297d-ab9b-4106-ad77-f89466c8290f"/><linearGradient id="bfa05cfc-d7ec-49e0-8f8e-7dcb2e2661be" x1="647.53882" y1="341.17819" x2="647.53882" y2="183.07696" xlink:href="#fbde297d-ab9b-4106-ad77-f89466c8290f"/></defs><title>Hello</title><path d="M287.07624,677.78716c0,45.23881-26.89446,61.0365-60.06793,61.0365-.77234,0-1.54052-.00836-2.3045-.02923-1.53635-.0334-3.06018-.10019-4.56313-.20874-29.94213-2.11666-53.20445-18.72843-53.20445-60.79853,0-43.53546,55.62587-98.47249,59.8216-102.55134l.00836-.00418c.15865-.15862.24212-.23794.24212-.23794S287.07624,632.54417,287.07624,677.78716Z" transform="translate(-149.80335 -75.89238)" fill="#3f3d56"/><path d="M224.81651,731.90173,246.78882,701.204l-22.02658,34.06687-.05843,3.52358c-1.53635-.0334-3.06018-.10019-4.56313-.20874l2.36714-45.25968-.01671-.3507.04176-.06678.22126-4.27508L200.6733,654.47889l22.14764,30.94826.05427.906,1.791-34.19632-18.90376-35.2901,19.13337,29.28247,1.862-70.89335.00836-.24212v.23794l-.309,55.90561,18.81611-22.16436-18.89543,26.978-.49679,30.61846,17.572-29.38269L225.806,671.07815l-.27553,17.02093,25.5084-40.90115-25.60441,46.842Z" transform="translate(-149.80335 -75.89238)" fill="#f2f2f2"/><g opacity="0.7"><path d="M983.78769,360.69733V349.80222H929.31215V400.1921a10.62275,10.62275,0,0,0,10.62273,10.62273H973.165a10.62275,10.62275,0,0,0,10.62273-10.62273V389.02461a14.16364,14.16364,0,0,0,0-28.32728Zm0,22.87973V366.14489a8.71608,8.71608,0,1,1,0,17.43217Z" transform="translate(-149.80335 -75.89238)" fill="url(#fbde297d-ab9b-4106-ad77-f89466c8290f)"/></g><path d="M982.035,362.40265a12.932,12.932,0,1,0,12.932,12.932A12.932,12.932,0,0,0,982.035,362.40265Zm0,20.89019a7.95817,7.95817,0,1,1,7.95817-7.95817A7.95817,7.95817,0,0,1,982.035,383.29284Z" transform="translate(-149.80335 -75.89238)" fill="#facc1d"/><path d="M982.035,362.40265a12.932,12.932,0,1,0,12.932,12.932A12.932,12.932,0,0,0,982.035,362.40265Zm0,20.89019a7.95817,7.95817,0,1,1,7.95817-7.95817A7.95817,7.95817,0,0,1,982.035,383.29284Z" transform="translate(-149.80335 -75.89238)" opacity="0.1"/><path d="M782.49312,276.56256h49.73854a0,0,0,0,1,0,0v45.95716a9.75,9.75,0,0,1-9.75,9.75H792.24312a9.75,9.75,0,0,1-9.75-9.75V276.56256A0,0,0,0,1,782.49312,276.56256Z" fill="#facc1d"/><path d="M973.08206,352.455v46.00814a9.699,9.699,0,0,1-9.699,9.699h4.97385a9.699,9.699,0,0,0,9.699-9.699V352.455Z" transform="translate(-149.80335 -75.89238)" opacity="0.1"/><path d="M942.11171,315.37321a2.90423,2.90423,0,0,0-2.19651,1.11521c-.65244,1.18276.52985,2.51633,1.60877,3.329,1.99325,1.50147,4.09411,2.97632,5.449,5.072s1.78051,5.02022.29944,7.02867c-1.93388,2.62249-6.5477,3.18662-6.99421,6.4143-.28666,2.07216,1.50474,3.8403,3.31991,4.88008,4.48026,2.5664,10.25592,3.25107,13.50114,7.267,1.34248-2.76054,4.34522-4.35628,7.33829-5.03772s6.10288-.63057,9.13754-1.09285a3.15942,3.15942,0,0,0,2.52119-1.33731c.8483-1.72159-1.56944-3.78639-.735-5.51473.63511-1.31546,2.50083-1.2133,3.86328-1.74011,2.21844-.85777,3.13326-3.71287,2.50362-6.00651s-2.40819-4.08614-4.27841-5.55575c-5.0403-3.96061-11.10094-6.28982-17.23091-7.96517-2.851-.7792-6.19776-2.00112-9.159-2.11925C948.20129,313.996,944.94105,314.88918,942.11171,315.37321Z" transform="translate(-149.80335 -75.89238)" fill="#eee"/><line x1="443.20908" y1="344.01609" x2="339.20908" y2="668.01609" fill="none" stroke="#e0e0e0" stroke-miterlimit="10" stroke-width="8"/><g opacity="0.7"><path d="M673.59135,780.39881c-12.7927.74179-24.18945,11.45861-24.18945,11.45861l-5.51071-13.67007-.45.14631c2.69215-11.78463,57.46619-254.71944,2.63435-275.66276-42.13333-16.093-86.8238-36.008-121.83818-35.25969V410.02179h49.08874v-2.04536H612.188c7.44972-5.32121-3.375-8.98043-15.47324-11.26729a11.05637,11.05637,0,0,0,1.29657-1.82921L660.2541,283.20921s14.31755-23.52169,5.11341-34.77119-22.499,28.6351-22.499,28.6351L591.7344,350.70623s-51.60868-53.79049-84.43918-80.541a57.46883,57.46883,0,0,0-12.22144-9.23685c-5.993-4.05458-10.52937-6.15544-12.76636-5.33156-.0231.00849-.04114.02234-.06386.03127a57.28712,57.28712,0,0,0-15.27637-2.07664h-4.09073v-8.39106a65.60833,65.60833,0,0,0,40.5264-38.40126,73.69511,73.69511,0,0,0,5.83991-64.168,4.25825,4.25825,0,0,0,1.72234-.59629c1.85211-1.19228,2.03532-3.80048,1.85667-5.9959A45.55549,45.55549,0,0,0,489.699,100.38013c-5.18151-2.83335-11.1158-4.78552-14.93662-9.28853-3.28315-3.86932-4.66281-9.281-8.63562-12.43809-4.71992-3.75067-11.538-3.10588-17.32967-1.43228a63.05826,63.05826,0,0,0-18.08788,8.53556c-6.2648,4.29072-11.91858,9.80312-19.13085,12.17806-5.12464,1.68751-10.68242,1.65386-15.83958,3.2392A26.60455,26.60455,0,0,0,378.6221,117.8681a34.75071,34.75071,0,0,0-1.4643,13.04831,73.21928,73.21928,0,0,0-7.346,16.71183c-.38581.20842-.77394.41235-1.1562.62726l1.12125-.50423a73.61747,73.61747,0,0,0,20.742,75.089,65.55221,65.55221,0,0,0,31.4504,22.32011V255.3116a77.33331,77.33331,0,0,0-25.09984,10.27975l-.01092-.01348s-.65272.40392-1.7701,1.15532q-.16806.11283-.33531.22653c-7.56756,5.13613-32.9257,23.90319-32.0693,44.18275q-.05,1.16924.01329,2.34628a77.97484,77.97484,0,0,0-2.08874,17.88327V478.54149a72.27509,72.27509,0,0,0,15.51138,44.8263c-21.34143,4.78327-34.94234,12.0177-34.94234,20.114a6.55,6.55,0,0,1,0,2.04536c0,14.40269,43.03978,26.07839,96.13211,26.07839,6.41929,0,12.68959-.17215,18.75665-.49773l59.98988,48.56379-96.13212,154.425S388.22066,798.641,412.765,806.82245,487.42083,821.14,487.42083,821.14s8.18145-14.31755-3.06805-20.45365-26.58973-3.068-26.58973-3.068l2.04536-12.27219s166.69718-143.17549,131.926-192.26423c-6.65218-9.39127-13.30454-19.08147-20.014-28.62049l26.24156,2.39148,5.97143,224.757.74691-.24318c-1.49894,4.41531-12.10128,37.73967,11.39931,32.10025,25.15783-6.037,70.93278-27.33159,70.93278-27.33159S686.384,779.65708,673.59135,780.39881ZM573.32612,393.65888l-49.08874-14.25157V337.41136l53.35375,56.63708C574.968,393.7854,573.32612,393.65888,573.32612,393.65888Z" transform="translate(-149.80335 -75.89238)" fill="url(#b55aa966-9953-40ef-b933-2af4fb1d4bf9)"/></g><circle cx="292.20908" cy="99.01609" r="72"/><path d="M524.01243,339.90847,578.95956,398.237a10.735,10.735,0,0,0,17.19064-2.13449l60.86223-109.194-17-6-50,72s-93.86722-97.83676-107-93S524.01243,339.90847,524.01243,339.90847Z" transform="translate(-149.80335 -75.89238)" fill="#facc1d"/><line x1="269.20908" y1="466.01609" x2="188.20908" y2="676.01609" fill="none" stroke="#bdbdbd" stroke-miterlimit="10" stroke-width="5"/><line x1="309.20908" y1="466.01609" x2="390.20908" y2="676.01609" fill="none" stroke="#bdbdbd" stroke-miterlimit="10" stroke-width="5"/><ellipse cx="289.20908" cy="467.51609" rx="94" ry="25.5" fill="#b84733"/><ellipse cx="289.20908" cy="465.51609" rx="94" ry="25.5" fill="#f55f44"/><line x1="249.65524" y1="512.15438" x2="338.34537" y2="539.48372" fill="none" stroke="#bdbdbd" stroke-miterlimit="10" stroke-width="5"/><line x1="328.76293" y1="512.15438" x2="240.0728" y2="539.48372" fill="none" stroke="#bdbdbd" stroke-miterlimit="10" stroke-width="5"/><path d="M290.30373,182.01609h27.90535a56,56,0,0,1,56,56v148a0,0,0,0,1,0,0h-160a0,0,0,0,1,0,0V258.11073A76.09465,76.09465,0,0,1,290.30373,182.01609Z" fill="#facc1d"/><path d="M214.20908,386.01609h160a0,0,0,0,1,0,0v87a0,0,0,0,1,0,0h-89a71,71,0,0,1-71-71v-16A0,0,0,0,1,214.20908,386.01609Z" fill="#39447a"/><path d="M366.17338,317.94774l97.839,92.96073h108v-14l-93-27L399.45858,271.6682S363.33432,293.987,366.17338,317.94774Z" transform="translate(-149.80335 -75.89238)" opacity="0.05"/><path d="M366.17338,315.94774l97.839,92.96073h108v-14l-93-27L399.45858,269.6682S363.33432,291.987,366.17338,315.94774Z" transform="translate(-149.80335 -75.89238)" fill="#facc1d"/><path d="M572.01243,394.90847s52,4,38,14h-38Z" transform="translate(-149.80335 -75.89238)" fill="#fda57d"/><path d="M640.01243,280.90847s13-39,22-28-5,34-5,34Z" transform="translate(-149.80335 -75.89238)" fill="#fda57d"/><polygon points="214.209 386.016 214.209 390.683 374.209 391.016 374.209 386.016 214.209 386.016" opacity="0.05"/><path d="M488.4746,554.45287l107.62728,9.80835,5.839,219.77206L640.472,771.48922s57.6262-248.99812,2.67632-269.98649-114.34827-48.62584-149.81213-26.10219S488.4746,554.45287,488.4746,554.45287Z" transform="translate(-149.80335 -75.89238)" fill="#39447a"/><path d="M495.01243,486.90847s59,30,67,64" transform="translate(-149.80335 -75.89238)" opacity="0.1"/><path d="M432.01341,547.90847l83.999,68-94,151,39,11s163-140,129-188-68-104-110-105S432.01341,547.90847,432.01341,547.90847Z" transform="translate(-149.80335 -75.89238)" fill="#39447a"/><polygon points="414.209 251.016 435.209 287.016 440.209 277.016 414.209 251.016" opacity="0.05"/><path d="M422.01243,766.90847s-31,24-7,32,73,14,73,14,8-14-3-20-26-3-26-3l2-12Z" transform="translate(-149.80335 -75.89238)" fill="#333"/><path d="M602.83492,783.32322s-13.617,37.76379,10.98282,31.86062,69.35958-26.72544,69.35958-26.72544-.61451-16.1128-13.12346-15.38749-23.65292,11.20443-23.65292,11.20443l-5.38851-13.36687Z" transform="translate(-149.80335 -75.89238)" fill="#333"/><rect x="274.20908" y="147.01609" width="40" height="60" rx="19.99998" fill="#fda57d"/><path d="M444.01243,224.90847a20,20,0,0,0-20,19.99994v6.7951a64.00575,64.00575,0,0,0,40,0v-6.7951A20,20,0,0,0,444.01243,224.90847Z" transform="translate(-149.80335 -75.89238)" opacity="0.05"/><circle cx="294.20908" cy="113.01609" r="64" fill="#fda57d"/><path d="M380.01243,186.00437s16,4.12326,25-14.0616,16-28.10386,53-17.35826,44.44319,12.05663,46.2216,1.89539c1.21524-6.94351-11.94134-23.80913-20.39569-33.79439-4.12437-4.8712-10.85474-7.777-18.04778-7.777H424.01243l-25,11.57218-19,16.53168-4,22.31777Z" transform="translate(-149.80335 -75.89238)" opacity="0.05"/><path d="M380.01243,184.00437s16,4.12326,25-14.0616,16-28.10386,53-17.35826,44.44319,12.05663,46.2216,1.89539c1.21524-6.94351-11.94134-23.80913-20.39569-33.79439-4.12437-4.8712-10.85474-7.777-18.04778-7.777H424.01243l-25,11.57218-19,16.53168-4,22.31777Z" transform="translate(-149.80335 -75.89238)"/><ellipse cx="236.70908" cy="108.01609" rx="6.5" ry="13" fill="#fda57d"/><path d="M381.86673,150.45773c-1.48322-8.37131-2.94041-17.16183-.24-25.22325a26.01449,26.01449,0,0,1,16.737-16.32379c5.04277-1.55019,10.47728-1.51725,15.48824-3.16734,7.05234-2.32232,12.58072-7.71241,18.70655-11.908a61.65817,61.65817,0,0,1,17.68674-8.34627c5.66325-1.63651,12.33009-2.267,16.94527,1.40053,3.88476,3.08706,5.23381,8.37868,8.44414,12.1622,3.73606,4.40314,9.53875,6.312,14.6053,9.08256a44.54492,44.54492,0,0,1,22.61,34.82874c.17469,2.14674-.00446,4.69713-1.81551,5.86294a6.483,6.483,0,0,1-3.64722.66575c-25.57863-.36557-51.188-.73272-76.66129-3.08081-7.91886-.73-15.8534-1.65222-23.80013-1.35115a77.85459,77.85459,0,0,0-35.04458,9.888" transform="translate(-149.80335 -75.89238)"/><rect y="645.26708" width="154.0855" height="65.5683" rx="32.78412" fill="#facc1d"/><path d="M725.6791,487.07514a1.5009,1.5009,0,0,0,0-3,1.5009,1.5009,0,0,0,0,3Z" transform="translate(-149.80335 -75.89238)" fill="url(#a395c18f-205e-4149-866b-9e6fd62c4f5f)"/><line x1="795.97132" y1="344.01609" x2="899.97132" y2="714.10762" fill="none" stroke="#e0e0e0" stroke-miterlimit="10" stroke-width="8"/><rect x="338.7871" y="333.17819" width="561.6062" height="21.88496" fill="#e0e0e0"/><rect x="477.20908" y="328.01609" width="92" height="13" rx="6.49999" fill="#535461"/><g opacity="0.7"><rect x="533.20908" y="183.07696" width="228.65948" height="158.10123" rx="28.21956" fill="url(#bfa05cfc-d7ec-49e0-8f8e-7dcb2e2661be)"/></g><rect x="537.2857" y="185.99396" width="216.60901" height="155.18423" rx="26.83505" fill="#3e3f49"/><rect x="540.2857" y="185.99396" width="216.60901" height="155.18423" rx="26.83505" fill="#535461"/><circle cx="658.70908" cy="262.51609" r="7" fill="#e0e0e0"/></svg>
\ No newline at end of file
src/assets/logo.png

65.1 KiB

src/assets/screenshot.PNG

94.1 KiB

#countdown {
width: 250px;
padding: 10px;
background-color: rgba(255, 255, 255, 0.1);
display: inline-block;
text-align: center;
margin: auto;
}
#countdown .box {
padding: 10px;
border-right: solid 1px rgba(255, 255, 255, 0.2);
}
#countdown .col-4:last-child .box {
border-right-color: transparent;
}
#countdown .box p {
font-size: 20px;
font-weight: bold;
margin: 0;
}
#countdown .box .text {
font-size: 12px;
font-family: sans-serif;
}
@media (min-width: 768px) {
.container {
width: 1100px;
}
h1 {
font-size: 58px;
}
#countdown {
width: 350px;
padding: 20px;
}
}
import React, { Component } from "react";
// import moment from 'moment';
import "./Timer.css";
class CountDown extends Component {
constructor(props) {
super(props);
this.count = this.count.bind(this);
this.state = {
days: 0,
minutes: 0,
hours: 0,
secounds: 0,
time_up: ""
};
this.x = null;
this.deadline = null;
}
count() {
var now = new Date().getTime();
var t = this.deadline - now;
var dd = Math.floor(t / (1000 * 60 * 60 * 24));
var hh = Math.floor((t % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var mm = Math.floor((t % (1000 * 60 * 60)) / (1000 * 60));
var ss = Math.floor((t % (1000 * 60)) / 1000);
var days = dd < 10 ? "0" + dd : dd;
var hours = hh < 10 ? "0" + hh : hh;
var minutes = mm < 10 ? "0" + mm : mm;
var seconds = ss < 10 ? "0" + ss : ss;
this.setState({ days, minutes, hours, seconds });
if (t < 0) {
clearInterval(this.x);
this.setState({
days: 0,
minutes: 0,
hours: 0,
seconds: 0,
time_up: "TIME IS UP"
});
}
}
componentDidMount() {
this.deadline = new Date("Oct 08, 2022 21:00:00").getTime();
this.x = setInterval(this.count, 1000);
}
render() {
const { days, seconds, hours, minutes } = this.state;
return (
<div id="countdown">
<div className="col-4">
<div className="box">
<p id="day">{days}</p>
<span className="text">Days</span>
</div>
</div>
<div className="col-4">
<div className="box">
<p id="hour">{hours}</p>
<span className="text">Hours</span>
</div>
</div>
<div className="col-4">
<div className="box">
<p id="minute">{minutes}</p>
<span className="text">Minutes</span>
</div>
</div>
<div className="col-4">
<div className="box">
<p id="second">{seconds}</p>
<span className="text">Seconds</span>
</div>
</div>
</div>
);
}
}
export default CountDown;
.optin {
margin-top: 8%;
}
.optin p {
font-size: 14px;
font-weight: 100;
}
.optin button {
color: #fff;
padding: 6px 22px;
text-transform: uppercase;
font-family: "Roboto Condensed", sans-serif;
background-color: rgba(255, 255, 255, 0.1);
border: solid 2px transparent;
cursor: pointer;
}
.optin button:hover {
border-color: rgba(255, 255, 255, 0.3);
}
#modal {
position: fixed;
top: 100px;
left: 30%;
width: 500px;
background: #fff;
transition: opacity 1s;
box-shadow: 0 7px 2px #444;
z-index: 99999;
opacity: 0;
}
#modal.is_open {
}
#modal .wrapper {
color: #444;
text-align: center;
padding: 30px;
}
import React, { Component } from "react";
import "./Optin.css";
class Optin extends Component {
modal() {
const modal = document.getElementById("modal");
modal.classList.toggle("is_open");
}
render() {
return (
<div className="optin">
<p>Want to be the first to know when we launch?</p>
<button onClick={() => this.modal()}>Click Me</button>
<div id="modal">
<div className="wrapper">
<h3>Enter Your Email</h3>
<div className="clearfix">
<div className="col-8" />
<div className="col-3" />
</div>
</div>
</div>
</div>
);
}
}
export default Optin;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment