React starter page and docker startup true for react

This commit is contained in:
MathewFrancis 2025-05-17 12:26:50 +05:30
parent 17c03d39cd
commit a348e1367e
7 changed files with 20 additions and 123 deletions

View File

@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}

View File

@ -56,6 +56,7 @@ services:
react_app: react_app:
image: mathewfrancisv/cezen_react:v1.0.0 image: mathewfrancisv/cezen_react:v1.0.0
container_name: react_cezenpbx container_name: react_cezenpbx
restart: always
working_dir: /app working_dir: /app
volumes: volumes:
- ./reactcezenpbx:/app - ./reactcezenpbx:/app

View File

@ -1,42 +1,3 @@
#root { p{
max-width: 1280px; background-color: aqua;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}
@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
} }

View File

@ -8,26 +8,7 @@ function App() {
return ( return (
<> <>
<div> <p>Hello world</p>
<a href="https://vite.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.jsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more HELLO sbin
</p>
</> </>
) )
} }

View File

@ -1,68 +1,19 @@
:root { *{
font-family: system-ui, Avenir, Helvetica, Arial, sans-serif; padding: 0;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
margin: 0; margin: 0;
display: flex; box-sizing: border-box;
place-items: center;
min-width: 320px;
min-height: 100vh;
} }
h1 { html{
font-size: 3.2em; font-size: 62%;
line-height: 1.1; overflow: hidden;
} }
button { body{
border-radius: 8px; font-family: "Rubik",sans-serif;
border: 1px solid transparent; line-height: 1;
padding: 0.6em 1.2em; font-weight: 400;
font-size: 1em; color: #555;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}
@media (prefers-color-scheme: light) { overflow: hidden;
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
} }