-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
108 lines (95 loc) · 2.06 KB
/
Copy pathstyle.css
File metadata and controls
108 lines (95 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/* Reset default margins and paddings */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Center the app on the screen with a gradient background */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
color: #333;
}
/* The main white card */
.container {
background-color: #ffffff;
padding: 2.5rem;
border-radius: 15px;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
width: 90%;
max-width: 400px;
text-align: center;
}
h1 {
font-size: 1.8rem;
margin-bottom: 1.5rem;
color: #2d3748;
}
/* Input Field Styling */
#url-input {
width: 100%;
padding: 12px 15px;
font-size: 1rem;
border: 2px solid #e2e8f0;
border-radius: 8px;
margin-bottom: 1rem;
outline: none;
transition: border-color 0.3s ease;
}
#url-input:focus {
border-color: #667eea;
}
/* Button Styling */
#generate-btn {
width: 100%;
background-color: #667eea;
color: white;
border: none;
padding: 12px;
font-size: 1rem;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.1s ease;
}
#generate-btn:hover {
background-color: #5a67d8;
}
#generate-btn:active {
transform: scale(0.97);
}
/* QR Code Container and Image Styling */
#qr-code-container {
margin-top: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
}
#qr-code {
max-width: 200px;
width: 100%;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
/* Hide the broken image icon initially when src is empty */
display: none;
}
/* Class to be added via JavaScript when the QR code is ready */
.show-img {
display: block !important;
}
/* Styling for the error message */
#error-message {
color: #e74c3c; /* Red color */
font-size: 0.9rem;
margin-top: -0.5rem;
margin-bottom: 1rem;
display: none; /* Hidden by default */
}
/* Class to make the error visible via JavaScript */
.show-error {
display: block !important;
}