Files
qr-code-generator/src/App.css
T
2025-05-10 22:52:40 +02:00

164 lines
3.6 KiB
CSS

.App {
text-align: center;
background-color: #fce4ec; /* Light pastel pink */
font-family: 'Comic Sans MS', 'Chalkboard SE', cursive; /* Playful font */
}
.App-logo {
height: 40vmin;
pointer-events: none;
border-radius: 50%; /* Rounded logo */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 10s linear; /* Slower spin */
}
}
.App-header {
background-color: #f8bbd0; /* Pastel pink */
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(12px + 2vmin);
color: #4a148c; /* Deep purple for contrast */
border: 5px solid #f48fb1; /* Cute border */
border-radius: 20px; /* Rounded corners */
padding: 20px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Soft shadow */
}
input {
padding: 10px;
font-size: 16px;
border: 2px solid #f48fb1; /* Pastel pink border */
border-radius: 10px; /* Rounded corners */
outline: none;
margin-bottom: 20px;
background-color: #fff3f4; /* Light pastel background */
color: #4a148c; /* Deep purple text */
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
}
input:focus {
border-color: #ce93d8; /* Light purple border on focus */
}
.App-link {
color: #ba68c8; /* Pastel purple */
text-decoration: none;
font-weight: bold;
}
.App-link:hover {
color: #ab47bc; /* Slightly darker purple on hover */
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.qr-code-container {
padding: 20px;
background-color: #fff3f4; /* Light pastel background */
border: 5px solid #f48fb1; /* Pastel pink border */
border-radius: 20px; /* Rounded corners */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Soft shadow */
display: inline-block; /* Ensures the container wraps tightly around the QR code */
}
button {
background-color: #f48fb1; /* Pastel pink */
color: #ffffff; /* White text */
font-size: 16px;
font-weight: bold;
padding: 10px 20px;
margin-top: 20px;
border: none;
border-radius: 20px; /* Rounded corners */
cursor: pointer;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Soft shadow */
transition: all 0.3s ease; /* Smooth transition for hover effects */
}
button:hover {
background-color: #f06292; /* Slightly darker pastel pink */
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
transform: translateY(-2px); /* Slight lift effect */
}
button:active {
background-color: #ec407a; /* Even darker pastel pink for active state */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Reduced shadow on click */
transform: translateY(0); /* Reset lift effect */
}
.input-text,
.input-file {
margin-bottom: 20px;
padding: 10px;
font-size: 16px;
}
.color-picker-container {
display: flex;
justify-content: center;
align-items: center;
gap: 30px;
margin-bottom: 20px;
}
.color-picker {
position: relative;
display: inline-block;
}
.color-input {
width: 90px;
height: 90px;
border: none;
cursor: pointer;
}
.color-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -30%);
font-size: 18px;
color: #000;
pointer-events: none;
}
.qr-code-container {
position: relative;
padding: 10px;
display: inline-block;
}
.uploaded-image {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60px;
height: 60px;
border-radius: 10%;
}
.download-button {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}