Spaces:
Running
Running
BraydenMoore
commited on
Commit
·
35e9ce0
1
Parent(s):
4eb20e1
Update styling
Browse files- web/static/styles.css +81 -31
- web/templates/index.html +0 -1
web/static/styles.css
CHANGED
@@ -1,11 +1,16 @@
|
|
1 |
body {
|
2 |
font-family: 'Helvetica';
|
3 |
-
margin: 100px
|
|
|
|
|
4 |
padding: 0;
|
5 |
}
|
6 |
|
7 |
.header {
|
8 |
-
|
|
|
|
|
|
|
9 |
position: absolute;
|
10 |
text-align: center;
|
11 |
top: 40px;
|
@@ -15,31 +20,35 @@ body {
|
|
15 |
|
16 |
.container {
|
17 |
margin-top: 120px;
|
|
|
|
|
18 |
display: flex;
|
19 |
-
justify-content: space-
|
20 |
padding: 20px;
|
|
|
21 |
align-items: stretch;
|
22 |
}
|
23 |
|
24 |
-
.left-container, .right-container, .dropzone {
|
25 |
-
padding: 20px;
|
26 |
-
box-sizing: border-box; /* Include padding and border in the element's total width and height */
|
27 |
-
}
|
28 |
-
|
29 |
.left-container {
|
30 |
width: 52%;
|
|
|
31 |
text-align: center;
|
|
|
|
|
32 |
}
|
33 |
|
34 |
.right-container {
|
|
|
35 |
width: 48%;
|
36 |
-
|
|
|
|
|
37 |
}
|
38 |
|
39 |
.dropzone {
|
40 |
width: 52%;
|
41 |
min-height: 500px;
|
42 |
-
border: 2px solid #
|
43 |
display: flex;
|
44 |
justify-content: center;
|
45 |
align-items: center;
|
@@ -50,9 +59,10 @@ body {
|
|
50 |
max-width: 100%;
|
51 |
max-height: 200px;
|
52 |
display: none;
|
|
|
53 |
}
|
54 |
|
55 |
-
.github-container
|
56 |
display: flex;
|
57 |
justify-content: center;
|
58 |
margin-top: 100px;
|
@@ -60,58 +70,98 @@ body {
|
|
60 |
|
61 |
.github-container a {
|
62 |
display: flex;
|
63 |
-
color
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
|
|
|
66 |
#predicted-images {
|
67 |
display: grid;
|
68 |
-
gap: 1%;
|
|
|
|
|
69 |
grid-template-columns: repeat(3, 1fr);
|
|
|
|
|
70 |
}
|
71 |
|
|
|
72 |
#predicted-images img {
|
73 |
width: 100%;
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
#predicted-images img:hover {
|
78 |
-
filter: brightness(70%);
|
79 |
-
transform: scale(1.07);
|
80 |
}
|
81 |
|
|
|
82 |
.image-tooltip {
|
83 |
position: absolute;
|
84 |
-
bottom: 100%;
|
85 |
-
left: 50%;
|
86 |
-
transform: translate(
|
87 |
background-color: rgba(0, 0, 0, 0.6);
|
88 |
-
padding: 10px;
|
|
|
|
|
|
|
89 |
color: white;
|
90 |
font-size: 12px;
|
91 |
pointer-events: none;
|
92 |
-
opacity: 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
93 |
}
|
94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
#predicted-images .image-container:hover .image-tooltip {
|
96 |
-
|
97 |
-
|
98 |
}
|
99 |
|
|
|
100 |
.image-caption {
|
101 |
bottom: 0;
|
102 |
left: 0;
|
|
|
|
|
103 |
padding: 10px;
|
104 |
-
|
|
|
105 |
font-size: 14px;
|
106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
107 |
}
|
108 |
|
109 |
#predicted-images a {
|
110 |
color: #4e4e4e;
|
111 |
-
text-decoration: none;
|
|
|
112 |
}
|
113 |
|
114 |
-
#predicted-images > div > a:hover .image-caption
|
115 |
-
color: #
|
|
|
116 |
transition: 0.5s;
|
117 |
}
|
|
|
|
1 |
body {
|
2 |
font-family: 'Helvetica';
|
3 |
+
margin-top: 100px;
|
4 |
+
margin-left: 100px;
|
5 |
+
margin-right: 100px;
|
6 |
padding: 0;
|
7 |
}
|
8 |
|
9 |
.header {
|
10 |
+
margin-top: 40px;
|
11 |
+
margin-bottom: 20px;
|
12 |
+
|
13 |
+
color: #000000;
|
14 |
position: absolute;
|
15 |
text-align: center;
|
16 |
top: 40px;
|
|
|
20 |
|
21 |
.container {
|
22 |
margin-top: 120px;
|
23 |
+
height: auto;
|
24 |
+
top: 100px;
|
25 |
display: flex;
|
26 |
+
justify-content: space-around;
|
27 |
padding: 20px;
|
28 |
+
position: relative;
|
29 |
align-items: stretch;
|
30 |
}
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
.left-container {
|
33 |
width: 52%;
|
34 |
+
padding: 20px;
|
35 |
text-align: center;
|
36 |
+
align-items: center;
|
37 |
+
align-content: center;
|
38 |
}
|
39 |
|
40 |
.right-container {
|
41 |
+
margin-left:-2px;
|
42 |
width: 48%;
|
43 |
+
padding: 20px;
|
44 |
+
border: 2px solid #000000;
|
45 |
+
text-align: left;
|
46 |
}
|
47 |
|
48 |
.dropzone {
|
49 |
width: 52%;
|
50 |
min-height: 500px;
|
51 |
+
border: 2px solid #000000;
|
52 |
display: flex;
|
53 |
justify-content: center;
|
54 |
align-items: center;
|
|
|
59 |
max-width: 100%;
|
60 |
max-height: 200px;
|
61 |
display: none;
|
62 |
+
align-items: center;
|
63 |
}
|
64 |
|
65 |
+
.github-container {
|
66 |
display: flex;
|
67 |
justify-content: center;
|
68 |
margin-top: 100px;
|
|
|
70 |
|
71 |
.github-container a {
|
72 |
display: flex;
|
73 |
+
color:#000000;
|
74 |
+
align-items: center;
|
75 |
+
}
|
76 |
+
|
77 |
+
.feature-select {
|
78 |
+
display: flex;
|
79 |
+
justify-content: center;
|
80 |
+
margin-top: 10px;
|
81 |
}
|
82 |
|
83 |
+
/* The container for the predicted images */
|
84 |
#predicted-images {
|
85 |
display: grid;
|
86 |
+
row-gap: 1%;
|
87 |
+
column-gap: 1%;
|
88 |
+
width: 100%;
|
89 |
grid-template-columns: repeat(3, 1fr);
|
90 |
+
grid-template-rows: repeat(3, fr);
|
91 |
+
position: relative; /* Set the container as a relative positioning context */
|
92 |
}
|
93 |
|
94 |
+
/* The predicted image */
|
95 |
#predicted-images img {
|
96 |
width: 100%;
|
97 |
+
height: auto;
|
98 |
+
display: block;
|
99 |
+
align-items: center;
|
|
|
|
|
|
|
100 |
}
|
101 |
|
102 |
+
/* The tooltip */
|
103 |
.image-tooltip {
|
104 |
position: absolute;
|
105 |
+
bottom: 100%; /* Position the tooltip above the image */
|
106 |
+
left: 50%; /* Center the tooltip horizontally */
|
107 |
+
transform: translate(0%, -60%); /* Center both horizontally and vertically */
|
108 |
background-color: rgba(0, 0, 0, 0.6);
|
109 |
+
padding-left: 10px;
|
110 |
+
padding-right: 10px;
|
111 |
+
padding-top: 10px;
|
112 |
+
padding-bottom: 20px;
|
113 |
color: white;
|
114 |
font-size: 12px;
|
115 |
pointer-events: none;
|
116 |
+
opacity: 0; /* Initially set the tooltip to be transparent */
|
117 |
+
}
|
118 |
+
|
119 |
+
/* Apply the hover effect */
|
120 |
+
#predicted-images img {
|
121 |
+
/* Set initial transition properties */
|
122 |
+
transition: all 0.3s ease-in-out;
|
123 |
+
transform: scale(1); /* Set the initial scale to 1 (normal size) */
|
124 |
}
|
125 |
|
126 |
+
#predicted-images img:hover {
|
127 |
+
filter: brightness(70%);
|
128 |
+
transform: scale(1.07); /* Scale the image up to 1.1 times its original size on hover */
|
129 |
+
}
|
130 |
+
|
131 |
+
/* Show the tooltip on image hover */
|
132 |
#predicted-images .image-container:hover .image-tooltip {
|
133 |
+
opacity: 1; /* Make the tooltip visible on image hover */
|
134 |
+
visibility: visible; /* Show the tooltip on image hover */
|
135 |
}
|
136 |
|
137 |
+
/* The caption */
|
138 |
.image-caption {
|
139 |
bottom: 0;
|
140 |
left: 0;
|
141 |
+
width: auto;
|
142 |
+
gap: 0%;
|
143 |
padding: 10px;
|
144 |
+
align-items: center;
|
145 |
+
text-decoration: none;
|
146 |
font-size: 14px;
|
147 |
+
text-align: center;
|
148 |
+
font-weight: normal;
|
149 |
+
pointer-events: none; /* Prevent caption from blocking clicks */
|
150 |
+
}
|
151 |
+
|
152 |
+
.image-species {
|
153 |
+
opacity: 0;
|
154 |
}
|
155 |
|
156 |
#predicted-images a {
|
157 |
color: #4e4e4e;
|
158 |
+
text-decoration: none;
|
159 |
+
font-weight: normal;
|
160 |
}
|
161 |
|
162 |
+
#predicted-images > div > a:hover .image-caption{
|
163 |
+
color: #000000;
|
164 |
+
font-size: 14px;
|
165 |
transition: 0.5s;
|
166 |
}
|
167 |
+
|
web/templates/index.html
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
4 |
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5 |
<title>What Plant Is This?</title>
|
6 |
<link rel="stylesheet" href="static/styles.css">
|
7 |
<link rel="icon" type="image/png" href="https://images.squarespace-cdn.com/content/v1/64790f5777b5d772678cce83/6d71eaee-f825-4324-be9b-2def32469eac/Untitled+drawing+%2811%29.png?format=100w">
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
<head>
|
|
|
4 |
<title>What Plant Is This?</title>
|
5 |
<link rel="stylesheet" href="static/styles.css">
|
6 |
<link rel="icon" type="image/png" href="https://images.squarespace-cdn.com/content/v1/64790f5777b5d772678cce83/6d71eaee-f825-4324-be9b-2def32469eac/Untitled+drawing+%2811%29.png?format=100w">
|