Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,425 changes: 5,425 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

42 changes: 0 additions & 42 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +0,0 @@
#root {
max-width: 1280px;
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;
}
34 changes: 8 additions & 26 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,17 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import DeleteButton from "./component/DeleteButton/DeleteButton";
import "./App.css";
import Footer from "./Components/Footer/Footer";

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<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>
<Footer />
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>

<DeleteButton></DeleteButton>
</>
)
);
}

export default App
export default App;
11 changes: 11 additions & 0 deletions src/Components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from "./Footer.module.css";

const Footer = () => {
return (
<footer className={styles.footer}>
<p>© 2025 GitTesting</p>
</footer>
);
};

export default Footer;
12 changes: 12 additions & 0 deletions src/Components/Footer/Footer.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.footer {
width: 100%;
padding: 1rem;
text-align: center;
font-size: 14px;
color: #333;
background-color: #f9f9f9;
}

.footer p {
text-align: center;
}
15 changes: 15 additions & 0 deletions src/component/DeleteButton/DeleteButton.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import styles from "../DeleteButton/DeleteButton.module.css";

function DeleteButton({ onDelete }) {
return (
<button
className={styles.deleteButton}
onClick={onDelete}
aria-label="Delete item"
>
Delete
</button>
);
}

export default DeleteButton;
16 changes: 16 additions & 0 deletions src/component/DeleteButton/DeleteButton.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.deleteButton {
background-color: #e53935;
color: white;
border: none;
padding: 8px 14px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.2s ease, transform 0.1s ease;
align-items: center;
gap: 6px;
}

.deleteButton:hover {
background-color: #c62828;
}
11 changes: 11 additions & 0 deletions src/components/Button/Button.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from "./Button.module.css";

export const Button = () => {
return (
<>
<button className={styles.blueBtn} type="button">
Add item
</button>
</>
);
};
3 changes: 3 additions & 0 deletions src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.blueBtn {
background-color: rgb(120, 122, 247);
}
16 changes: 16 additions & 0 deletions src/components/CustomInput/CustomInput.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { useState } from "react";
import styles from "./CustomInput.module.css";

export const CustomInput = () => {
const [value, setValue] = useState("");

return (
<input
type="text"
value={value}
onChange={(e) => setValue(e.target.value)}
placeholder="Say something.."
className={styles.input}
/>
);
};
19 changes: 19 additions & 0 deletions src/components/CustomInput/CustomInput.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.input {
padding: 12px 16px;
font-size: 16px;
border: none;
border-radius: 8px;
outline: none;
width: 100%;
background: linear-gradient(135deg, #aa91f6 0%, #5622f4 100%);
color: #333;
transition: background 0.3s ease;
}

.input::placeholder {
color: #666;
}

.input:focus {
background: linear-gradient(135deg, #f8b500 0%, #fceabb 100%);
}
54 changes: 0 additions & 54 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,57 +12,3 @@
-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;
}
}
14 changes: 7 additions & 7 deletions src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App.jsx";

createRoot(document.getElementById('root')).render(
createRoot(document.getElementById("root")).render(
<StrictMode>
<App />
</StrictMode>,
)
</StrictMode>
);