Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kaamil-ahamadh committed Nov 18, 2022
1 parent 7542201 commit 91285d1
Show file tree
Hide file tree
Showing 11 changed files with 546 additions and 104 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
# production
/build

# env
.env

# misc
.DS_Store
.env.local
Expand Down
393 changes: 393 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"axios": "^1.1.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.6.0",
"react-loader-spinner": "^5.3.4",
"react-router-dom": "^6.4.3",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
},
Expand Down
27 changes: 2 additions & 25 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,14 @@
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
content="Play Videos Hub is a Hub for playing youtube videos"
/>
<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>
<title>Play Videos Hub</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>
158 changes: 137 additions & 21 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,154 @@
.App {
text-align: center;
body {
background: #000a1e;
color: #e8e6e3;
user-select: none;
}

.App-logo {
height: 40vmin;
pointer-events: none;
.header-container {
background: #006cff;
color: white;
width: 100vw;
height: 52px;
display: flex;
justify-content: center;
align-items: center;
font-weight: bold;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
.header-icon {
margin: 5px;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
input {
background: inherit;
color: white;
outline: none;
border-style: none;
border-radius: 8px;
}

.input-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.input {
border: 3px solid dodgerblue;
border-radius: 8px;
padding: 12px 16px;
margin: 16px;
}

.input-search {
width: 60vw;
}

.card-container {
display: flex;
flex-direction: column;
justify-content: center;
font-size: calc(10px + 2vmin);
align-items: center;
}

.card-video {
background: #041938;
color: white;
padding: 2px;
border-radius: 25px;
width: 90vw;
height: 400px;
border: 5px solid dodgerblue;
margin-bottom: 16px;
position: relative;
}

.App-link {
color: #61dafb;
.card-video:hover {
transform: scale(1.03);
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
.app-container {
display: flex;
flex-direction: column;
min-height: 100vh;
}

.screen-container {
margin: 16px;
flex: 0.92;
}

.footer {
display: flex;
justify-content: center;
align-items: center;
}

.footer-name {
text-decoration: none;
color: cyan;
font-weight: bold;
}

.loading-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 95vh;
color: #00bfff;
font-weight: bold;
font-size: 25px;
}

.loading-title {
margin-top: 16px;
}

.trending-title {
font-weight: bold;
font-size: 20px;
color: aqua;
margin-bottom: 16px;
text-align: center;
}

.video-thumbnail {
width: 100%;
height: 72%;
border-radius: 25px;
}

.video-details {
padding: 8px;
display: flex;
flex-direction: column;
}

.video-title {
font-weight: bold;
}

.video-wrapper {
flex-direction: row;
}

.play-image-icon {
position: absolute;
top: 140px;
left: 40%;
}

/* Responsive Website */
@media screen and (min-width: 350px) {
.card-video {
width: 300px;
display: flex;
flex-direction: column;
}
to {
transform: rotate(360deg);

.video-wrapper {
display: inline-block;
margin-left: 12px;
}
}
22 changes: 2 additions & 20 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
import logo from './logo.svg';
import './App.css';
import "./App.css";

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
return <div>Play Videos Hub</div>;
}

export default App;
8 changes: 0 additions & 8 deletions src/App.test.js

This file was deleted.

16 changes: 5 additions & 11 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";

const root = ReactDOM.createRoot(document.getElementById('root'));
const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(
<React.StrictMode>
<App />
</React.StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
1 change: 0 additions & 1 deletion src/logo.svg

This file was deleted.

13 changes: 0 additions & 13 deletions src/reportWebVitals.js

This file was deleted.

5 changes: 0 additions & 5 deletions src/setupTests.js

This file was deleted.

0 comments on commit 91285d1

Please sign in to comment.