File size: 6,544 Bytes
d3a295a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Political Speech Semantic Map Gallery</title>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f0f4f8;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 40px 20px;
        }
        header {
            background-color: #2c3e50;
            color: white;
            text-align: center;
            padding: 60px 0;
            margin-bottom: 40px;
        }
        h1 {
            font-size: 2.5em;
            margin: 0;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        .subtitle {
            font-size: 1.2em;
            font-weight: 300;
            margin-top: 10px;
        }
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        .map-item {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }
        .map-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }
        .map-preview {
            position: relative;
            height: 200px;
            overflow: hidden;
        }
        .map-preview iframe {
            width: 100%;
            height: 100%;
            border: none;
            pointer-events: none;
        }
        .map-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(44, 62, 80, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .map-item:hover .map-overlay {
            opacity: 1;
        }
        .view-button {
            padding: 10px 20px;
            background-color: #e74c3c;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-weight: bold;
            text-transform: uppercase;
            transition: background-color 0.3s ease;
        }
        .view-button:hover {
            background-color: #c0392b;
        }
        .map-info {
            padding: 20px;
        }
        .map-info h2 {
            margin: 0 0 10px 0;
            color: #2c3e50;
            font-size: 1.4em;
        }
        .map-info p {
            margin: 0;
            color: #7f8c8d;
            font-size: 0.9em;
        }
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.8);
        }
        .modal-content {
            position: relative;
            width: 90%;
            height: 90%;
            margin: 2% auto;
            background-color: #fff;
            border-radius: 10px;
            overflow: hidden;
        }
        .close-modal {
            position: absolute;
            top: 10px;
            right: 20px;
            color: #fff;
            font-size: 30px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1001;
        }
        .modal iframe {
            width: 100%;
            height: 100%;
            border: none;
        }
    </style>
</head>
<body>
    <header>
        <h1>Political Speech Semantic Map Gallery</h1>
        <p class="subtitle">Explore visual topic modeling of political speeches</p>
    </header>
    <div class="container">
        <div class="gallery">
            <div class="map-item">
                <div class="map-preview">
                    <iframe src="trump_speeches.html"></iframe>
                    <div class="map-overlay">
                        <a href="#" class="view-button" data-map="trump_speeches.html">View Map</a>
                    </div>
                </div>
                <div class="map-info">
                    <h2>Trump Speeches Analysis</h2>
                    <p>Visual topic modeling of Trump's speeches, with metadata about which parts of his speeches discuss each topic.</p>
                </div>
            </div>
            <div class="map-item">
                <div class="map-preview">
                    <iframe src="inaugural_speeches_map.html"></iframe>
                    <div class="map-overlay">
                        <a href="#" class="view-button" data-map="inaugural_speeches_map.html">View Map</a>
                    </div>
                </div>
                <div class="map-info">
                    <h2>US Presidential Inaugural Speeches</h2>
                    <p>Visual topic modeling of various US presidential inaugural speeches throughout history.</p>
                </div>
            </div>
        </div>
    </div>

    <div id="mapModal" class="modal">
        <span class="close-modal">&times;</span>
        <div class="modal-content">
            <iframe id="modalIframe" src=""></iframe>
        </div>
    </div>

    <script>
        const modal = document.getElementById('mapModal');
        const modalIframe = document.getElementById('modalIframe');
        const viewButtons = document.querySelectorAll('.view-button');
        const closeModal = document.querySelector('.close-modal');

        viewButtons.forEach(button => {
            button.addEventListener('click', (e) => {
                e.preventDefault();
                const mapSrc = button.getAttribute('data-map');
                modalIframe.src = mapSrc;
                modal.style.display = 'block';
            });
        });

        closeModal.addEventListener('click', () => {
            modal.style.display = 'none';
            modalIframe.src = '';
        });

        window.addEventListener('click', (e) => {
            if (e.target == modal) {
                modal.style.display = 'none';
                modalIframe.src = '';
            }
        });
    </script>
</body>
</html>