From 6dce9e480aaf13e6707dd827aff60c9e3697b427 Mon Sep 17 00:00:00 2001 From: tarunnjoshi Date: Mon, 4 Dec 2023 11:45:32 +0530 Subject: [PATCH 1/3] Add bg change color functionaity --- bgChanger/src/App.jsx | 20 +++++++----- bgChanger/src/index.css | 69 ----------------------------------------- 2 files changed, 13 insertions(+), 76 deletions(-) diff --git a/bgChanger/src/App.jsx b/bgChanger/src/App.jsx index a2cbd27..58f86ee 100644 --- a/bgChanger/src/App.jsx +++ b/bgChanger/src/App.jsx @@ -1,15 +1,21 @@ import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from '/vite.svg' -import './App.css' + function App() { - const [count, setCount] = useState(0) + const [color, setcolor] = useState("olive") return ( - <> -
hell
- + <> +
+
+
+ + + +
+
+
+ ) } diff --git a/bgChanger/src/index.css b/bgChanger/src/index.css index e7d4bb2..b5c61c9 100644 --- a/bgChanger/src/index.css +++ b/bgChanger/src/index.css @@ -1,72 +1,3 @@ @tailwind base; @tailwind components; @tailwind utilities; - -:root { - font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; - 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; - display: flex; - place-items: center; - min-width: 320px; - min-height: 100vh; -} - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; - 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) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} From 4799eed7ea3295c98ac507b1392cd6c46bc96518 Mon Sep 17 00:00:00 2001 From: tarunnjoshi Date: Mon, 4 Dec 2023 13:34:07 +0530 Subject: [PATCH 2/3] add-2 --- bgChanger/src/App.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/bgChanger/src/App.jsx b/bgChanger/src/App.jsx index 58f86ee..89c4a82 100644 --- a/bgChanger/src/App.jsx +++ b/bgChanger/src/App.jsx @@ -14,6 +14,7 @@ function App() { + fnsdjfjdnfdsf ) From 6f38a7cde3c20aa041e151433dde36f64725e281 Mon Sep 17 00:00:00 2001 From: tarunnjoshi Date: Mon, 4 Dec 2023 13:37:55 +0530 Subject: [PATCH 3/3] dsfsdf --- bgChanger/src/App.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/bgChanger/src/App.jsx b/bgChanger/src/App.jsx index 89c4a82..4fe52de 100644 --- a/bgChanger/src/App.jsx +++ b/bgChanger/src/App.jsx @@ -15,6 +15,7 @@ function App() { fnsdjfjdnfdsf + kdsnjfnjdsnfnfndf )