-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
98 lines (91 loc) · 2.43 KB
/
Copy pathindex.html
File metadata and controls
98 lines (91 loc) · 2.43 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Image Uploader</title>
<style>
/* 1. Define our Blue and Gold Palette */
:root {
--light-blue: #f5f9ff;
--dark-blue: #0052e1;
--gold: #f1b900;
--soft-gold: #ffdf00;
--text-white: #e6f1ff;
}
html {
height: 100%;
overflow: hidden;
}
/* 2. Style the Body */
body {
margin: 0;
padding: 12px;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: var(--light-blue);
color: var(--text-white);
display: flex;
justify-content: center;
align-items: center;
height: 100%;
min-height: 100%;
overflow: hidden;
}
/* 3. Container for your React App */
#root {
background-color: var(--dark-blue);
padding: 1rem 1.25rem;
border-radius: 12px;
border: 2px solid var(--gold);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
text-align: center;
width: min(800px, 100%);
max-width: 800px;
height: calc(100dvh - 24px);
max-height: calc(100dvh - 24px);
box-sizing: border-box;
overflow: hidden;
display: flex;
flex-direction: column;
min-height: 0;
}
/* 4. Global styles for buttons inside your React components */
button {
background-color: var(--gold);
color: var(--light-blue);
border: 2px solid var(--light-blue);
padding: 12px 24px;
font-weight: bold;
border-radius: 8px;
cursor: pointer;
transition: transform 0.2s, background-color 0.2s;
}
button:hover {
background-color: var(--soft-gold);
transform: translateY(-2px);
}
.image-container {
flex: 1 1 auto;
min-height: 0;
min-width: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
container-type: size;
}
.image-stage {
position: relative;
display: inline-block;
line-height: 0;
max-width: 100cqw;
}
</style>
</head>
<body>
<div id="root">
</div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>