Second blood?

This commit is contained in:
J Francisco Rader committed 2020-08-21 23:45:41 -03:00
1 parent 6f9c87a423
commit f24c80de00
8 files changed
+56 -51

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

+39 -27
View File
@@ -1,38 +1,50 @@
.App { .PhoneWrapper {
text-align: center; width: 100vw;
height: 100vh;
} }
.App-logo { .Phone {
height: 40vmin; position: absolute;
pointer-events: none; bottom: 0vh;
right: 0vh;
width: 500px;
height: 1000px;
background-size: cover;
} }
@media (prefers-reduced-motion: no-preference) { .PhoneFrame {
.App-logo { position: absolute;
animation: App-logo-spin infinite 20s linear; z-index: 999;
} width: 500px;
height: 1000px;
pointer-events:none;
} }
.App-header { .PhoneScreen {
background-color: #282c34; overflow: hidden;
min-height: 100vh; position: absolute;
background-color: black;
bottom: 100px;
left: 50px;
right: 50px;
top: 100px;
display: flex; display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
} }
.App-link { * {
color: #61dafb; box-sizing: border-box;
} }
*::-webkit-scrollbar-track
@keyframes App-logo-spin { {
from { box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
transform: rotate(0deg); background-color: #F5F5F5;
} }
to { *::-webkit-scrollbar
transform: rotate(360deg); {
} width: 3px;
background-color: transparent;
}
*::-webkit-scrollbar-thumb
{
background-color: #666;
} }
+11 -20
View File
@@ -1,26 +1,17 @@
import React from 'react'; import React from "react";
import logo from './logo.svg'; import "./Phone.css";
import './App.css';
function App() { function Phone() {
return ( return (
<div className="App"> <div class="PhoneWrapper">
<header className="App-header"> <div class="Phone">
<img src={logo} className="App-logo" alt="logo" /> <div class="PhoneFrame" style={{backgroundImage: `url(/public/media/frames/defaults.png)`}}></div>
<p> <div class="PhoneScreen" id="phone">
Edit <code>src/App.js</code> and save to reload. Wasap
</p> </div>
<a </div>
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div> </div>
); );
} }
export default App; export default Phone;
+3 -3
View File
@@ -1,12 +1,12 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
import './index.css'; import './main.css';
import App from './App'; import Phone from './Phone';
import * as serviceWorker from './serviceWorker'; import * as serviceWorker from './serviceWorker';
ReactDOM.render( ReactDOM.render(
<React.StrictMode> <React.StrictMode>
<App /> <Phone />
</React.StrictMode>, </React.StrictMode>,
document.getElementById('root') document.getElementById('root')
); );
+3 -1
View File
@@ -1,10 +1,12 @@
body { body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif; sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
font-size: 20px;
margin: 0;
padding: 0;
} }
code { code {