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
99 changes: 99 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-free": "^6.6.0",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@tabler/icons-react": "^3.17.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"font-awesome": "^4.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
Expand Down
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
name="description"
content="Web site created using create-react-app"
/>

<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
Expand Down
123 changes: 99 additions & 24 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,113 @@
.App {
text-align: center;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
height: 100vh;
}

.App-logo {
height: 40vmin;
pointer-events: none;
.whole-phone {
width: 30rem;
overflow-y: scroll;
height: 80vh;
border-radius: 40px;
margin: 1rem 0;
border: 10px solid black;
box-shadow: 3px 4px 5px rgba(0, 0, 0, 0.1);
padding: 20px;
background-color: #f9f9f9;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
/* Table Styling */
table {
width: 100%;
table-layout: fixed;
border-collapse: collapse;
margin-top: 20px;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
th, td {
padding: 10px;
text-align: center;
vertical-align: middle;
border-bottom: 1px solid #ddd;
}

/* Thead and Th Styling */
thead {
background-color: #333;
color: white;
}

.App-link {
color: #61dafb;
th {
font-size: 12px;
text-transform: uppercase;
}

/* Tbody and Td Styling */
tbody tr:hover {
background-color: #f1f1f1;
}

td img {
width: 50px;
height: auto;
border-radius: 5px;
}

/* Trash Button */
.trash-btn {
border: none;
background-color: transparent;
cursor: pointer;
color: black;
padding: 0;
}

.trash-btn:hover {
transform: scale(1.2);
background-color: #888;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
width: 6px;
height: 3px;
}

::-webkit-scrollbar-thumb {
background: #888;
border-radius: 40px;
}

::-webkit-scrollbar-track {
background: transparent;
border-radius: 40px;

}

button {
padding: 8px 15px;
margin: 10px;
border-radius: 5px;
border: 1px solid #333;
cursor: pointer;
background-color: #333;
color: white;
}

button:hover {
background-color: #555;
}

/* Ensures consistent layout across the table */
.whole-phone > table > thead > tr > th,
.whole-phone > table > tbody > tr > td {
width: auto;
padding: 5px;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.whole-phone>table>tbody>tr td {
padding: 10px 0;
}
Loading