From 68b00e8eb71ef82bb1cb4d736a9f75571ad5a01b Mon Sep 17 00:00:00 2001 From: Bayda77 Date: Thu, 4 Sep 2025 21:00:57 -0600 Subject: [PATCH] simple hello world with gradient background with macos overscroll behaviour defined --- src/App.css | 38 -------------------------------------- src/App.test.tsx | 9 --------- src/App.tsx | 15 +++------------ src/index.css | 20 +++++++------------- 4 files changed, 10 insertions(+), 72 deletions(-) delete mode 100644 src/App.test.tsx diff --git a/src/App.css b/src/App.css index 74b5e05..e69de29 100644 --- a/src/App.css +++ b/src/App.css @@ -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); - } -} diff --git a/src/App.test.tsx b/src/App.test.tsx deleted file mode 100644 index 2a68616..0000000 --- a/src/App.test.tsx +++ /dev/null @@ -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(); - const linkElement = screen.getByText(/learn react/i); - expect(linkElement).toBeInTheDocument(); -}); diff --git a/src/App.tsx b/src/App.tsx index a53698a..e8466b4 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,20 +4,11 @@ import './App.css'; function App() { return ( -
-
- logo +
+

- Edit src/App.tsx and save to reload. + Hello World!

- - Learn React -
); diff --git a/src/index.css b/src/index.css index ec2585e..be021c8 100644 --- a/src/index.css +++ b/src/index.css @@ -1,13 +1,7 @@ -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; -} - -code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; -} +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; +} \ No newline at end of file