-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
256 lines (232 loc) · 12.6 KB
/
index.html
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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<!DOCTYPE html>
<html lang="en">
<head>
<title>code & coffee</title>
<meta charset="utf-8" />
<meta name="title" content="code & coffee" />
<meta name="description" content="Your space to build." />
<meta name="theme-color" content="#e83b3b" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="/media/logo/transparent.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/pure-min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/build/grids-responsive-min.css" />
<link rel="stylesheet" href="./global.css" />
<link rel="stylesheet" href="./index.css" />
</head>
<body>
<header>
<div id="logo">
<img src="/media/logo/transparent.png" alt="Coffee cup icon logo" draggable="false">
</div>
<h1>Code & Coffee</h1>
</header>
<section id="main">
<div id="hero-container">
<img src="/media/hero/IMGP0599.JPG" draggable="true" class="draggable">
<img src="/media/hero/DSC00105.JPG" draggable="true" class="draggable">
<img src="/media/hero/IMGP0603.JPG" draggable="true" class="draggable">
</div>
<div id="splash">
<h1>Saturdays @ 1pm</h1>
<p>
A group of programmers, designers, creatives,
and everyone in between, coming together
on Saturdays to build together.
</p>
<p class="mono">📍 Philadelphia, PA</p>
<div class="button hero-button">
<a href="https://www.meetup.com/code-coffee-philly/" target="_blank">
RSVP
</a>
<!-- <a href="https://lu.ma/event/evt-VrXemuGOjtR3Qq0" class="luma-checkout--button" data-luma-action="checkout" data-luma-event-id="evt-VrXemuGOjtR3Qq0">
RSVP
</a> -->
</div>
<p id="attention-line"><img src="/media/gizmo/attention-line.svg" draggable="false"></p>
</div>
</section>
<section id="about" class="pure-g">
<div class="pure-u-1-3"> <!-- info: formatting div --> </div>
<div class="pure-u-md-1-3 text-center">
<div class="point">
<img src="/media/doodle/laptop.svg" draggable="false" height="150px">
<p>Bring your laptop. You'll get the space for a few hours to work. Plus, there's coffee!</p>
</div>
<p><img src="/media/gizmo/elegant-hr.svg" draggable="false"></p>
<div class="point">
<img src="/media/doodle/sprout_mole.svg" draggable="false" height="100px">
<p>We encourage you to explore and work on a new interest, and share your ideas with others.</p>
</div>
</div>
<div class="pure-u-1-3"> <!-- info: formatting div --> </div>
</section>
<section id="projects">
<div>
<h2 id="work" class="text-center">people are working on...</h2>
<div class="evil-container">
<div class="card-container">
<div class="card">
<a href="https://github.com/ryan-michael-19/web-drones" target="_blank"><img src="/media/icon/link.svg" draggable="false"></a>
<h2>Web Drones</h2>
<p>ryan is building a code learning game</p>
<div class="tag-container">
<div class="tag">go</div>
<div class="tag">psql</div>
<div class="tag">ts</div>
</div>
</div>
<div class="card">
<a href="https://crosslocked.com/" target="_blank"><img src="/media/icon/link.svg" draggable="false"></a>
<h2>Cross Locked</h2>
<p>austin is building an online board game</p>
<div class="tag-container">
<div class="tag">unity</div>
<div class="tag">figma</div>
</div>
</div>
<div class="card">
<a href="" target="_blank" hidden><img src="/media/icon/link.svg" draggable="false"></a>
<h2>Swifty Beams</h2>
<p>mark is working on a gameboy game</p>
<div class="tag-container">
<div class="tag">C</div>
<div class="tag">GBDK</div>
</div>
</div>
<div class="card">
<a href="" target="_blank" hidden><img src="/media/icon/link.svg" draggable="false"></a>
<h2>Mars Rover</h2>
<p>tony is calibrating the heat shield on a rover</p>
<div class="tag-container">
<div class="tag">python</div>
</div>
</div>
<!--
<div class="card">
<a href="" target="_blank"><img src="/media/icon/link.svg" draggable="false"></a>
<h2>Project Title 4/7</h2>
<p>Introduction, short description</p>
<div class="tag-container">
<div class="tag">tag</div>
<div class="tag">tag</div>
</div>
</div>
-->
</div>
</div>
</div>
</section>
<section id="footer" class="pure-g">
<div class="pure-u-1-5"> <!-- info: formatting div --> </div>
<div class="pure-u-md-1-2">
<p class="footer-text">
If you're passionate about what you're working on, and want to build around others, we'd love for you to join us :)
</p>
<p class="footer-text handwriting" style="text-align: left;">
<span style="font-size: medium; margin-right: 3.5em;">your hosts,</span>
<br>
<span style="font-size: medium; margin-right: 3em;"><a href="https://evehartwell.com/" target="_blank">eve</a>, <a href="https://vivime.info" target="_blank">vish</a> & <a href="https://github.com/Tony363" target="_blank">tony</a></span>
</p>
<div id="footer-buttons">
<div class="button">
<a href="https://www.meetup.com/code-coffee-philly/" target="_blank">
RSVP
</a>
<!-- <a href="https://lu.ma/event/evt-VrXemuGOjtR3Qq0" class="luma-checkout--button" data-luma-action="checkout" data-luma-event-id="evt-VrXemuGOjtR3Qq0">
RSVP
</a> -->
</div>
<div class="button">
<a id="instagram" href="https://instagram.com/philly_codes" target="_blank">Insta</a>
</div>
</div>
</div>
<div class="pure-u-1-6" >
<img class="pure-img hide-mobile" src="/media/misc/computer.png" draggable="false">
</div>
<div class="pure-u-1-5"></div>
</section>
<section id="true-footer">
<p style="text-align: center;">
<span style="user-select: none;">
<br /><br />
code & coffee philadelphia is a node of <a href="https://socratica.info" target="_blank">socratica</a> and <a href="https://codeandcoffee.org/" target="_blank">code & coffee</a><br />
<br />
</span>
</p>
</section>
<script id="luma-checkout" src="https://embed.lu.ma/checkout-button.js"></script>
<!-- make hero images draggable! -->
<script>
document.addEventListener('DOMContentLoaded', () => {
const draggables = document.querySelectorAll('.draggable');
let activeItem = null;
let initialX;
let initialY;
let xOffset = 0;
let yOffset = 0;
// Get the initial rotation for each image and store it
draggables.forEach((draggable, index) => {
// Store initial rotations
const rotations = ['-12deg', '0deg', '5deg'];
draggable.dataset.rotation = rotations[index];
// Set initial transforms
const startX = ['10%', '15%', '20%'][index];
const startY = ['20%', '30%', '40%'][index];
draggable.style.transform = `translate(${startX}, ${startY}) rotate(${rotations[index]})`;
// Prevent default dragging behavior
draggable.addEventListener('dragstart', (e) => e.preventDefault());
});
function dragStart(e) {
// Prevent any default behaviors
e.preventDefault();
if (e.target.classList.contains('draggable')) {
activeItem = e.target;
const rect = activeItem.getBoundingClientRect();
const transform = window.getComputedStyle(activeItem).transform;
const matrix = new DOMMatrix(transform);
// Get current position accounting for rotation
xOffset = matrix.m41;
yOffset = matrix.m42;
initialX = (e.type === "touchstart" ? e.touches[0].clientX : e.clientX) - xOffset;
initialY = (e.type === "touchstart" ? e.touches[0].clientY : e.clientY) - yOffset;
// Bring active item to front
activeItem.style.zIndex = '1000';
document.addEventListener('mousemove', drag);
document.addEventListener('touchmove', drag);
document.addEventListener('mouseup', dragEnd);
document.addEventListener('touchend', dragEnd);
}
}
function drag(e) {
if (activeItem) {
e.preventDefault();
const currentX = (e.type === "touchmove" ? e.touches[0].clientX : e.clientX) - initialX;
const currentY = (e.type === "touchmove" ? e.touches[0].clientY : e.clientY) - initialY;
xOffset = currentX;
yOffset = currentY;
const rotation = activeItem.dataset.rotation || '0deg';
activeItem.style.transform = `translate(${currentX}px, ${currentY}px) rotate(${rotation})`;
}
}
function dragEnd(e) {
if (activeItem) {
// Reset z-index
activeItem.style.zIndex = '';
activeItem = null;
// Remove event listeners
document.removeEventListener('mousemove', drag);
document.removeEventListener('touchmove', drag);
document.removeEventListener('mouseup', dragEnd);
document.removeEventListener('touchend', dragEnd);
}
}
// Add initial event listeners
draggables.forEach(draggable => {
draggable.addEventListener('mousedown', dragStart);
draggable.addEventListener('touchstart', dragStart);
});
});
</script>
</body>
</html>