-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebflow-integration.html
More file actions
196 lines (160 loc) · 4.54 KB
/
webflow-integration.html
File metadata and controls
196 lines (160 loc) · 4.54 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
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Webflow Integration Example</title>
<!-- PLACE THIS IN THE <HEAD> nevermind since we're bundling React on our own bc CORS below??? -->
<!-- React and ReactDOM from CDN -->
<!-- <script src="https://unpkg.com/react@19.1.1/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@19.1.1/umd/react-dom.production.min.js" crossorigin></script> -->
<!-- Leaflet CSS for the map -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<style>
#react-target {
width: 100%;
height: 80vh;
min-height: 600px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(31, 48, 86, 0.2);
}
</style>
<!-- end webflow <head> addition -->
<!-- and place Your bundled React app before the </body> -->
<script src="https://cdn.jsdelivr.net/gh/brucestarlove/mm-map@main/dist/bundle.js"></script>
<style>
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}
.page-wrapper {
background: #e4dfd5;
min-height: 100vh;
}
.hero-section {
background: linear-gradient(135deg, #1f3056 0%, #263c59 100%);
color: #fefeff;
padding: 2rem;
text-align: center;
}
.hero-section h1 {
font-size: 3rem;
margin-bottom: 1rem;
background: linear-gradient(45deg, #fefeff, #e5c422);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-section p {
font-size: 1.2rem;
opacity: 0.9;
max-width: 600px;
margin: 0 auto;
}
.map-section {
padding: 2rem;
}
.section-title {
text-align: center;
color: #1f3056;
font-size: 2.5rem;
margin-bottom: 1rem;
}
.section-subtitle {
text-align: center;
color: #263c59;
font-size: 1.1rem;
margin-bottom: 2rem;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
/* Make the map component full width within its container */
#react-target {
width: 100%;
height: 80vh;
min-height: 600px;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 8px 32px rgba(31, 48, 86, 0.2);
}
@media (max-width: 768px) {
.hero-section {
padding: 1.5rem 1rem;
}
.hero-section h1 {
font-size: 2rem;
}
.hero-section p {
font-size: 1rem;
}
.map-section {
padding: 1rem;
}
.section-title {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.section-subtitle {
font-size: 1rem;
margin-bottom: 1.5rem;
}
#react-target {
height: 75vh;
min-height: 400px;
border-radius: 8px;
}
}
@media (max-width: 480px) {
.hero-section {
padding: 1rem 0.75rem;
}
.hero-section h1 {
font-size: 1.75rem;
}
.hero-section p {
font-size: 0.9rem;
}
.map-section {
padding: 0.75rem;
}
.section-title {
font-size: 1.75rem;
}
.section-subtitle {
font-size: 0.95rem;
}
#react-target {
height: 70vh;
min-height: 350px;
border-radius: 6px;
}
}
</style>
</head>
<body>
<div class="page-wrapper">
<!-- Hero Section -->
<section class="hero-section">
<div class="container">
<h1>Monument Map & Cultural Library</h1>
<p>Explore monuments, patrons, organizations, programs, and concepts that inspire awe and ambition. Discover the
stories behind America's most significant cultural landmarks and the visionaries who brought them to life.</p>
</div>
</section>
<!-- Map Section -->
<section class="map-section">
<div class="container">
<h2 class="section-title">Interactive Monument Explorer</h2>
<p class="section-subtitle">Navigate through our comprehensive database of monuments and cultural institutions.
Search, filter, and discover the rich tapestry of American heritage and the people who shaped it.</p>
<!-- This is where the React component will render -->
<div id="react-target"></div>
</div>
</section>
</div>
<script src="https://cdn.jsdelivr.net/gh/brucestarlove/mm-map@main/dist/bundle.js"></script>
</body>
</html>