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 {
text-align: center;
.PhoneWrapper {
width: 100vw;
height: 100vh;
}
.App-logo {
height: 40vmin;
pointer-events: none;
.Phone {
position: absolute;
bottom: 0vh;
right: 0vh;
width: 500px;
height: 1000px;
background-size: cover;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
.PhoneFrame {
position: absolute;
z-index: 999;
width: 500px;
height: 1000px;
pointer-events:none;
}
.App-header {
background-color: #282c34;
min-height: 100vh;
.PhoneScreen {
overflow: hidden;
position: absolute;
background-color: black;
bottom: 100px;
left: 50px;
right: 50px;
top: 100px;
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;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
*::-webkit-scrollbar-track
{
box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
background-color: #F5F5F5;
}
*::-webkit-scrollbar
{
width: 3px;
background-color: transparent;
}
*::-webkit-scrollbar-thumb
{
background-color: #666;
}
+11 -20
View File
@@ -1,26 +1,17 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import React from "react";
import "./Phone.css";
function App() {
function Phone() {
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 class="PhoneWrapper">
<div class="Phone">
<div class="PhoneFrame" style={{backgroundImage: `url(/public/media/frames/defaults.png)`}}></div>
<div class="PhoneScreen" id="phone">
Wasap
</div>
</div>
</div>
);
}
export default App;
export default Phone;
+3 -3
View File
@@ -1,12 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import './main.css';
import Phone from './Phone';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
<Phone />
</React.StrictMode>,
document.getElementById('root')
);
+3 -1
View File
@@ -1,10 +1,12 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 20px;
margin: 0;
padding: 0;
}
code {