simple hello world with gradient background with macos overscroll behaviour defined

This commit is contained in:
2025-09-04 21:00:57 -06:00
parent 0ff94da64e
commit 68b00e8eb7
4 changed files with 10 additions and 72 deletions

View File

@@ -1,38 +0,0 @@
.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);
}
}

View File

@@ -1,9 +0,0 @@
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();
});

View File

@@ -4,20 +4,11 @@ import './App.css';
function App() { function App() {
return ( return (
<div className="App"> <div>
<header className="App-header"> <header>
<img src={logo} className="App-logo" alt="logo" />
<p> <p>
Edit <code>src/App.tsx</code> and save to reload. Hello World!
</p> </p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header> </header>
</div> </div>
); );

View File

@@ -1,13 +1,7 @@
body { html,body {
overflow: hidden; /* Stop rubber-band on window for macos users */
background: linear-gradient(135deg, #3457f5eb, #8f50cf);
min-height: 100vh;
min-width: max-content;
margin: 0; 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;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
} }