-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
172 lines (154 loc) · 5.07 KB
/
main.py
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
import streamlit as st
from dotenv import load_dotenv
import os
from supabase import create_client, Client
load_dotenv()
SUPABASE_URL = os.getenv("SUPABASE_URL")
SUPABASE_ANON_KEY = os.getenv("SUPABASE_ANON_KEY")
supabase: Client = create_client(SUPABASE_URL, SUPABASE_ANON_KEY)
st.set_page_config(
page_title="Main Page",
page_icon="🌊",
layout="wide"
)
st.markdown(
"""
<style>
/* Create an animated gradient background */
@keyframes gradient {
0% { background-position: 0% 100%; }
50% { background-position: 0% 140%; }
100% { background-position: 0% 100%; }
}
.stApp {
background: linear-gradient(0deg, #000000, #000000, #39FF14, #000000, #000000);
background-size: 600% 600%;
animation: gradient 12s ease infinite;
}
</style>
""",
unsafe_allow_html=True
)
st.sidebar.title("#ALIVE")
st.session_state["captured_image"] = None
st.session_state["geocode_done"] = False
html_string = """
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<style>
.text-drop-shadow {
display: inline-block;
color: #39FF14;
font-size: 6rem;
font-weight: bold;
filter: drop-shadow(0 0 10px #39FF14);
margin-right: 2rem;
}
.marquee-container {
overflow: hidden;
width: 100%;
display: flex;
align-items: center;
}
.marquee-content {
display: flex;
/* Ensure the content width adjusts based on its content */
width: max-content;
animation: scroll-left 10s linear infinite;
}
/* Prevent items from shrinking when overflowing */
.marquee-content > * {
flex-shrink: 0;
}
@keyframes scroll-left {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
</style>
</head>
<body>
<div class="marquee-container">
<div class="marquee-content">
<!-- Original Content -->
<div class="marquee-group">
<p class="text-drop-shadow">#ALIVE</p>
<p class="text-drop-shadow">#ALIVE</p>
<p class="text-drop-shadow">#ALIVE</p>
<p class="text-drop-shadow">#ALIVE</p>
</div>
<!-- Duplicate Content -->
<div class="marquee-group">
<p class="text-drop-shadow">#ALIVE</p>
<p class="text-drop-shadow">#ALIVE</p>
<p class="text-drop-shadow">#ALIVE</p>
<p class="text-drop-shadow">#ALIVE</p>
</div>
</div>
</div>
</body>
"""
mission_statement = """
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
<style>
.text-drop-shadow {
display: inline-block;
color: #39FF14;
font-size: 6rem;
font-weight: bold;
filter: drop-shadow(0 0 10px #39FF14);
margin-right: 2rem;
}
.scrolling-text {
display: inline-block;
white-space: nowrap;
}
.marquee-container {
overflow: hidden;
width: 100%;
background-color: #000000;
display: flex;
align-items: center;
}
.marquee-content {
display: flex;
width: 200%;
animation: scroll-left 20s linear infinite;
}
@keyframes scroll-left {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
</style>
</head>
<body>
<div class="marquee-container h-full bg-transparent">
<p class="scrolling-text text-drop-shadow text-7xl mb-6">#MISSION STATEMENT</p>
</div>
<p class="scrolling-text text-drop-shadow text-2xl mb-20">Our mission is to empower communities and enhance disaster response efforts <br/> through a crowd-sourced incident tracking platform. <br/> By connecting people in crisis, we aim to improve situational awareness, <br/> streamline rescue operations, and ultimately save lives during natural disasters.</p>
<p class="text-drop-shadow text-2xl">By: #Hemanshu Boppana</p>
<p class="text-drop-shadow text-2xl">#Department of Statistics</p>
<p class="text-drop-shadow text-2xl">#Eren Chang</p>
<p class="text-drop-shadow text-2xl">#HWCOE</p>
<p class="text-drop-shadow text-2xl">#Chuyang Zhang</p>
<p class="text-drop-shadow text-2xl">#HWCOE</p>
<p class="text-drop-shadow text-2xl">#Jack Gordon</p>
<p class="text-drop-shadow text-2xl">#HWCOE</p>
<p class="text-drop-shadow text-2xl">#Maggie Yan</p>
<p class="text-drop-shadow text-2xl">#HWCOE</p>
</body>
"""
st.components.v1.html(html_string, height=196)
st.components.v1.html(mission_statement, height=400)