-
Notifications
You must be signed in to change notification settings - Fork 1
/
wedding-polymer.html
687 lines (629 loc) · 33.3 KB
/
wedding-polymer.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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="bower_components/paper-card/paper-card.html">
<link rel="import" href="bower_components/paper-button/paper-button.html">
<link rel="import" href="bower_components/paper-tabs/paper-tabs.html">
<link rel="import" href="bower_components/iron-collapse/iron-collapse.html">
<link rel="import" href="bower_components/iron-flex-layout/iron-flex-layout.html">
<link rel="import" href="bower_components/iron-image/iron-image.html">
<link rel="import" href="bower_components/iron-pages/iron-pages.html">
<link rel="import" href="bower_components/wedding-map/wedding-map.html">
<link rel="import" href="bower_components/wedding-gallery/wedding-gallery.html">
<!--
A wedding website.
##### Examples
<wedding-polymer></wedding-polymer>
@demo
@element wedding-polymer
@author Eric Leichtenschlag
### Based off of http://Granze.github.io/flip-clock
-->
<dom-module id="wedding-polymer">
<style>
:host {
font-family: PT_Serif;
}
h2 {
font-size: 20px;
}
.site {
display: table;
margin: auto;
}
.content {
width: 960px;
background-image: url("images/background-white-0.75.png");
display: table-cell;
position: relative;
}
.main-date-absolute {
position: absolute;
top: 20px;
left: 35px;
padding: 10px;
border-radius: 50%;
background-color: #996699;
color: white;
}
.main-days-absolute {
position: absolute;
top: 20px;
right: 35px;
padding: 10px;
border-radius: 50%;
background-color: #996699;
color: white;
}
paper-tabs.transparent-teal {
background-color: transparent;
font-size: 20px;
font-weight: bold;
color: #660066;
}
.table-cell {
display: table-cell;
}
.lace-left {
background-image: url("images/lace-left.png");
background-repeat: repeat-y;
width: 23px; /* update if width changes. */
}
.lace-right {
background-image: url("images/lace-right.png");
background-repeat: repeat-y;
width: 23px; /* update if width changes. */
}
iron-pages {
/* height: 1000px; */
margin-top: 10px;
margin-left: 30px;
margin-right: 30px;
}
paper-tabs {
--paper-tabs-selection-bar-color: #660066;
}
paper-tab {
--paper-tab-ink: #660066;
}
.centerme {
display: block;
margin-left: auto;
margin-right: auto;
}
@font-face {
font-family: Edwardian;
src: url('fonts/Edwardian_Script_ITC.otf');
}
@font-face {
font-family: PT_Serif;
src: url('fonts/PT_Serif.ttf');
}
.home paper-card {
/* Default is inline-block, but for some reason it pushes the homepage card down about 10px. */
display: block;
}
.home-intro {
margin-bottom: 10px;
padding: 10px;
font-size: 20px;
text-align: justify;
}
.about {
@apply(--layout-horizontal);
@apply(--layout-start);
@apply(--layout-justified);
}
.about-card {
width: 48%;
margin-bottom: 16px;
}
.about-card-name {
--paper-card-header-color: var(--paper-purple-500);
font-size: 24px;
text-align: center;
padding-bottom: 10px;
}
.about-card paper-card {
width: 100%;
padding-left: 10px;
padding-right: 10px;
box-sizing: border-box;
margin-bottom: 10px;
}
.about-card-image {
padding: 10px;
}
.sized {
display: block;
width: 100%;
box-sizing: border-box;
}
.details paper-card {
width: 100%;
padding: 10px;
margin-bottom: 10px;
}
.details iron-collapse {
margin-left: 50px;
margin-right: 50px;
margin-bottom: 10px;
}
.details-header {
cursor: pointer;
}
.details-header img {
margin-right: 10px;
width: 15px;
height: 15px;
}
.details-header span {
font-size: 20px;
font-weight: bold;
}
.details-ceremony {
@apply(--layout-horizontal);
@apply(--layout-center);
}
.details-ceremony img {
width: 50%;
padding-left: 10px;
box-sizing: border-box;
}
.details-ceremony td {
padding-left: 10px;
padding-right: 10px;
}
.gallery {
margin: 5px;
width: 45%;
max-height: 500px;
}
wedding-gallery img {
margin: 5px;
max-height: 150px;
cursor: pointer;
}
.registry-info {
width: 100%;
padding: 10px;
margin-bottom: 10px;
font-size: 20px;
text-align: center;
}
/*
https://css-tricks.com/snippets/css/a-guide-to-flexbox/
https://elements.polymer-project.org/guides/flex-layout
Polymer flex classes:
flex
layout (req'd for horizontal or vertical)
horizontal or vertical
center or start
etc.
Classes don't seem to work. Use mixins instead.
*/
</style>
<template>
<div class="site">
<div class="table-cell lace-left"></div>
<div class="content">
<!-- Absolutely positioned -->
<paper-card elevation="3" class="main-date-absolute">April 8, 2016</paper-card>
<paper-card elevation="3" class="main-days-absolute">Married for [[daysMarried]] days</paper-card>
<img src="images/flowers-banner.png" class="centerme" style="margin-bottom: 10px" width=800>
<paper-tabs class="transparent-teal" selected="0" align-bottom style="margin-bottom: 1px">
<paper-tab>HOME</paper-tab>
<paper-tab>OUR STORY</paper-tab>
<paper-tab>WEDDING DETAILS</paper-tab>
<paper-tab>GALLERY</paper-tab>
<paper-tab>REGISTRY</paper-tab>
</paper-tabs>
<iron-pages selected="0">
<div class="home"> <!-- Home -->
<paper-card elevation="3" style="margin-bottom: 10px">
<img src="images/homepage.jpg" style="width: 100%" class="centerme"/>
</paper-card>
<paper-card elevation="3" class="home-intro">
<p>
Welcome to our wedding website! We are looking forward to celebrating our big day
with <b>YOU</b> -- our friends and family! April 8th, 2016 will be a day that we forever
hold in our hearts, so we hope you are able to make it and share in the love!
</p>
<p>
You can find information relating to our upcoming wedding celebration on this site.
Use the tabs above to explore hotel accommodations, registry information, and more.
This website was built using our combined creative talents, so we hope you enjoy!
</p>
</paper-card>
</div>
<div class="about"> <!-- Our story -->
<div class="about-card">
<paper-card heading="Nicole Alexi Smith" elevation="3" class="about-card-name">
<img class="sized" src="images/nicole.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>HOW WE MET</h2>
<p>
It was my freshmen year at the University of Florida. I didn't know too many
people, just a few new kids I had met in my classes and a handful of old high
school friends that had also started at UF that year. I started hanging out with
my friend Winnie a lot--she had a brother, Billy, that lived in the same dorm
building as I, and it became very easy to frequently meet up!
</p>
<p>
One day, Winnie invited me to play ultimate frisbee with Billy and his roommates.
I thought to myself "Sure! A new sport and some new people!" Among those
roommates was Eric, and I quickly noticed how cute and athletic he was. After
that day, I spent a lot of time with Winnie, Billy, Eric, and their other
roommate Rivy. We watched movies, ate dinner together, and played card games.
At one point, Eric asked if he could join my workouts at the Swamp stadium.
Later, Eric began waiting for me after my morning class and we would walk back
to our dorm building together. I loved spending time with him and started to
develop a crush. As the holidays approached, Eric sent me an adorable bumper
sticker on Facebook telling me that he liked me. He asked me out on an official
date a few days later and the love story began!
</p>
</paper-card>
<paper-card elevation="3" class="about-card-image">
<img class="sized" src="images/about/football.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>THE EARLY DAYS</h2>
<p>
Since we lived in the same building, I saw Eric every day. We worked out together,
ate our meals together, and Eric would even help me with homework if I was stuck!
We started cooking breakfast every Sunday and would invite our friends to eat with
us. Eric would make french toast and bacon and I would make home fries. To this
day, Eric and I cook breakfast together at least once each weekend.
</p>
</paper-card>
<paper-card elevation="3" class="about-card-image">
<img class="sized" src="images/about/goldengate.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>DEFEATING LONG DISTANCE</h2>
<p>
At the end of Eric's senior year, he received a job offer from Google located in
Mountain View, California. I was heartbroken thinking that our relationship might
soon end, but Eric promised to call every day and visit me every few months.
Eric kept his promise and then some... we talked twice a day,
every day during the year and half that we were separated. We took turns visiting
each other--Eric coming down for holidays and I going to California during the
summer and spring break. The distance was starting to take its toll, however, so
one day I told Eric that I would find a job in San Francisco so we may have some
real time together again. I found an internship with Arup the summer of 2013, and
packed my bags for the west coast. I was nervous that despite our constant
communication, Eric and I might have grown apart in some way, but my fears were
misplaced and we quickly fell right back into our old swing.
</p>
</paper-card>
<paper-card elevation="3" class="about-card-image">
<img class="sized" src="images/about/proposal.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>THE PROPOSAL</h2>
<p>
I said yes!!! I had just graduated from UF and was home for the holidays. In a
few short months I would be permanently relocating to the Bay Area. Eric came
over Christmas morning to open presents with my family. My dad handed Eric the
last present saying "Here Eric, we got you something else too." I thought I already
knew everything that my parents had bought for Eric but I figured that I must have
missed this one. Eric opened the present and then looked at me. He said "Actually,
this present is not for me, it's for you." He opened the box, which contained a ring
box and I couldn't believe it! He got down on one knee and proposed. I honestly
only remember half of what he said, I was so shocked. I said yes and started crying
immediately. It was the perfect proposal. I was so happy that Eric knew to share
this moment with my family. It is a day and feeling that I will never forget.
</p>
</paper-card>
</div>
<div class="about-card">
<paper-card heading="Eric Daniel Leichtenschlag" elevation="3" class="about-card-name">
<img class="sized" src="images/eric.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>HOW WE MET</h2>
<p>
It was Fall 2009; I just started my junior year at the University of Florida,
when I met Nicole during a game of Ultimate Frisbee. I thought she was cute, and
made sure she was on my team that day. She continued to hang out with me and my
group of friends, watching movies in the dorms, running in the Swamp, and attending
<a href="https://www.union.ufl.edu/ProgramsArtsLeisure/GatorNights">Gator Nights</a>.
Every time I saw her it made me smile.
</p>
<p>
We used to exchange bumper stickers on Facebook, and if you accepted the sticker it
went on your wall. On Christmas, I sent her a bumper sticker that said something like
"The only present I want for Christmas is you". And she accepted it! The rest is
history...
</p>
</paper-card>
<paper-card elevation="3" class="about-card-image">
<img class="sized" src="images/about/breakfast.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>THE EARLY DAYS</h2>
<p>
We became Facebook official shortly later, on January 9th, 2010. During the beginning
of our relationship, we spent almost all of our time together. We loved to eat at
local restaurants, and would have frequent movie nights at my dorm.
</p>
<p>
On our first Valentine's Day, we took a bus to get dinner at
<a href="http://www.bentocafesushi.com/">Bento Cafe</a>, saw a movie at the theater, and
by that time the bus wasn't running anymore! With no Uber back then, we walked the 2+
miles back to the dorm, but not before we picked up a midnight pizza! Ah, good times...
</p>
</paper-card>
<paper-card elevation="3" class="about-card-image">
<img class="sized" src="images/about/google.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>DEFEATING LONG DISTANCE</h2>
<p>
After graduating from UF, I accepted an engineering position at Google in Mountain View,
CA. I had a few other offers including one just an hour away from UF, but there was no
chance I was going to give up Google.
</p>
<p>Nicole still has another 2 and a half years of school left. It was difficult going
from seeing each other every day to seeing each other only every few months; the period
between July 4th and Thanksgiving was always the toughest since there aren't any long
holidays in that period (we had to survive 3 of these).
<p>
Some doubted we could survive the distance. We heard stories of several friends
who had failed long distance relationships. We had our fair share of stupid fights
that were based on frustration due to us being apart so long. But we survived it all,
and our relationship is stronger because of it.
</p>
</paper-card>
<paper-card elevation="3" class="about-card-image">
<img class="sized" src="images/about/proposal2.jpg"></img>
</paper-card>
<paper-card elevation="3">
<h2>THE PROPOSAL</h2>
<p>
I bought the ring in September of 2014 and was thinking about when and how to
propose. I knew it had to happen during the holidays since we were still long
distance at the time. I also knew she would be most comfortable in front of her
family. So I had the idea of proposing on Christmas Day using the ring as a gift
but with a twist - the ring addressed to me from Nicole's parents! I thought this
was a nice way to ensure I had approval from her parents, whom I had to trust
with the ring for a few weeks!
</p>
<p>
I was nervous leading up to Christmas Day. It had been almost 3 months in the making,
and Nicole's entire family had seen the ring and knew about the plan when I handed
over the ring during Nicole's college graduation a few weeks prior. I was worried
that her sisters might spill the beans, and it was out of my control. I didn't know
what I was going to say. We exchanged presents at Nicole's house, and the ring was
the last present of the day.
<p>
As I unwrapped the paper and opened the box, I remember saying "Nicole, this present
is really for you". She just sat on the ground, simply stunned. I then had to ask
"Hey weirdo, are you going to stand up so I can propose to you?" I don't remember
what my proposal speech was (I ended up winging it), but the important thing is
that she said YES!
</p>
</paper-card>
</div>
</div>
<div class="details"> <!-- Wedding Details -->
<paper-card elevation="3">
<div class="details-header" on-click="toggle" data-toggle="#collapse-ceremony">
<img src="images/plus.png">
<span>CEREMONY AND RECEPTION</span>
</div>
<iron-collapse id="collapse-ceremony" >
<div class="details-ceremony">
<div style="display: inline-block; width: 50%">
<p>
Both the ceremony and reception will occur at:<br>
<br>
<i>The Rusty Pelican Restaurant</i><br>
3201 Rickenbacker Causeway<br>
Key Biscayne, FL 33149
</p>
<h2>Schedule</h2>
<table border=1>
<tr>
<th>Event</th>
<th>Time</th>
</tr>
<tr>
<td>Guest Arrival</td>
<td>6:00</td>
</tr>
<tr>
<td>Ceremony</td>
<td>6:30 - 7:00</td>
</tr>
<tr>
<td>Cocktails</td>
<td>7:00 - 7:45</td>
</tr>
<tr>
<td>Reception</td>
<td>7:45 - 11:00</td>
</tr>
</table>
</div>
<img src="images/rusty-pelican.jpg"/>
</div>
</iron-collapse>
</paper-card>
<paper-card elevation="3">
<div class="details-header" on-click="toggleAndResize" data-toggle="#collapse-accommodations">
<img src="images/plus.png">
<span>ACCOMMODATIONS</span>
</div>
<iron-collapse id="collapse-accommodations">
<p>For your convenience, we have reserved a courtesy block at:</p>
<p>
<a target="_blank" href="http://www.marriott.com/meeting-event-hotels/group-corporate-travel/groupCorp.mi?resLinkData=Leichtenschlag%20%26%20Smith%20Wedding%20Room%20Block%20Apr2016%5Emiabb%60leileia%7Cleileie%7Cleileib%60219.00-244.00%60USD%60false%601%604/5/16%604/11/16%603/17/16&app=resvlink&stop_mobi=yes">Miami Mariott Biscayne Bay</a><br>
1633 North Bayshore Drive<br>
Miami, Florida 33132
</p>
<ul>
<li>Preferred rate: $219 for City View, $244 for Bay View</li>
<li>Parking: $34/valet or $29/self parking</li>
<li>Distance to Rusty Pelican: 20-25 minutes with Friday rush-hour traffic</li>
</ul>
<p><a target="_blank" href="http://www.marriott.com/meeting-event-hotels/group-corporate-travel/groupCorp.mi?resLinkData=Leichtenschlag%20%26%20Smith%20Wedding%20Room%20Block%20Apr2016%5Emiabb%60leileia%7Cleileie%7Cleileib%60219.00-244.00%60USD%60false%601%604/5/16%604/11/16%603/17/16&app=resvlink&stop_mobi=yes">Book Here</a></p>
<p>** Note: The preferred rate expires on 3/17/2016.</p>
</iron-collapse>
</paper-card>
<paper-card elevation="3">
<div class="details-header" on-click="toggle" data-toggle="#collapse-transportation">
<img src="images/plus.png">
<span>TRANSPORTATION</span>
</div>
<iron-collapse id="collapse-transportation">
<h2>Getting to Miami</h2>
<p>For out of town guests, the closest airport to fly into is Miami International Airport (MIA). However, the
Fort Lauderdale-Hollywood International Airport (FLL) is also an option, and is only about a 30 minute drive
if you plan on renting a car.<p>
<h2>Driving</h2>
<p>
Valet parking at The Rusty Pelican is available for $6 per vehicle. Self parking is not available.
Please be aware that there is also a $1.75 toll to cross the Rickenbacker Causeway to get into Key Biscayne.
</p>
</iron-collapse>
</paper-card>
<paper-card elevation="3"><wedding-map id="weddingMap"></wedding-map></paper-card>
</div>
<div> <!-- Gallery -->
<wedding-gallery>
<img data-original="images/gallery/engagement/Photo1.jpg" data-index='s1' src="images/gallery/engagement/Photo1.jpg">
<img data-original="images/gallery/engagement/Photo2.jpg" data-index='s2' src="images/gallery/engagement/Photo2.jpg">
<img data-original="images/gallery/engagement/Photo3.jpg" data-index='s3' src="images/gallery/engagement/Photo3.jpg">
<img data-original="images/gallery/engagement/Photo4.jpg" data-index='s4' src="images/gallery/engagement/Photo4.jpg">
<img data-original="images/gallery/engagement/Photo5.jpg" data-index='s5' src="images/gallery/engagement/Photo5.jpg">
<img data-original="images/gallery/engagement/Photo6.jpg" data-index='s6' src="images/gallery/engagement/Photo6.jpg">
<img data-original="images/gallery/engagement/Photo7.jpg" data-index='s7' src="images/gallery/engagement/Photo7.jpg">
<img data-original="images/gallery/engagement/Photo8.jpg" data-index='s8' src="images/gallery/engagement/Photo8.jpg">
<img data-original="images/gallery/engagement/Photo9.jpg" data-index='s9' src="images/gallery/engagement/Photo9.jpg">
<img data-original="images/gallery/engagement/Photo10.jpg" data-index='s10' src="images/gallery/engagement/Photo10.jpg">
<img data-original="images/gallery/engagement/Photo11.jpg" data-index='s11' src="images/gallery/engagement/Photo11.jpg">
<img data-original="images/gallery/engagement/Photo13.jpg" data-index='s12' src="images/gallery/engagement/Photo13.jpg">
<img data-original="images/gallery/engagement/Photo14.jpg" data-index='s13' src="images/gallery/engagement/Photo14.jpg">
<img data-original="images/gallery/engagement/Photo15.jpg" data-index='s14' src="images/gallery/engagement/Photo15.jpg">
<img data-original="images/gallery/engagement/Photo16.jpg" data-index='s15' src="images/gallery/engagement/Photo16.jpg">
<img data-original="images/gallery/engagement/Photo17.jpg" data-index='s16' src="images/gallery/engagement/Photo17.jpg">
<img data-original="images/gallery/engagement/Photo18.jpg" data-index='s17' src="images/gallery/engagement/Photo18.jpg">
<img data-original="images/gallery/engagement/Photo19.jpg" data-index='s18' src="images/gallery/engagement/Photo19.jpg">
<img data-original="images/gallery/engagement/Photo20.jpg" data-index='s19' src="images/gallery/engagement/Photo20.jpg">
<img data-original="images/gallery/engagement/Photo21.jpg" data-index='s20' src="images/gallery/engagement/Photo21.jpg">
<img data-original="images/gallery/engagement/Photo22.jpg" data-index='s21' src="images/gallery/engagement/Photo22.jpg">
<img data-original="images/gallery/engagement/Photo23.jpg" data-index='s22' src="images/gallery/engagement/Photo23.jpg">
<img data-original="images/gallery/engagement/Photo24.jpg" data-index='s23' src="images/gallery/engagement/Photo24.jpg">
<img data-original="images/gallery/engagement/Photo25.jpg" data-index='s24' src="images/gallery/engagement/Photo25.jpg">
<img data-original="images/gallery/photobooth/117579-strip.jpg" data-index='s25' src="images/gallery/photobooth/117579-strip.jpg">
<img data-original="images/gallery/photobooth/117583-strip.jpg" data-index='s26' src="images/gallery/photobooth/117583-strip.jpg">
<img data-original="images/gallery/photobooth/117587-strip.jpg" data-index='s27' src="images/gallery/photobooth/117587-strip.jpg">
<img data-original="images/gallery/photobooth/117591-strip.jpg" data-index='s28' src="images/gallery/photobooth/117591-strip.jpg">
<img data-original="images/gallery/photobooth/117595-strip.jpg" data-index='s29' src="images/gallery/photobooth/117595-strip.jpg">
<img data-original="images/gallery/photobooth/117599-strip.jpg" data-index='s30' src="images/gallery/photobooth/117599-strip.jpg">
<img data-original="images/gallery/photobooth/117603-strip.jpg" data-index='s31' src="images/gallery/photobooth/117603-strip.jpg">
<img data-original="images/gallery/photobooth/117607-strip.jpg" data-index='s32' src="images/gallery/photobooth/117607-strip.jpg">
<img data-original="images/gallery/photobooth/117611-strip.jpg" data-index='s33' src="images/gallery/photobooth/117611-strip.jpg">
<img data-original="images/gallery/photobooth/117615-strip.jpg" data-index='s34' src="images/gallery/photobooth/117615-strip.jpg">
<img data-original="images/gallery/photobooth/117619-strip.jpg" data-index='s35' src="images/gallery/photobooth/117619-strip.jpg">
<img data-original="images/gallery/photobooth/117623-strip.jpg" data-index='s36' src="images/gallery/photobooth/117623-strip.jpg">
<img data-original="images/gallery/photobooth/117627-strip.jpg" data-index='s37' src="images/gallery/photobooth/117627-strip.jpg">
<img data-original="images/gallery/photobooth/117631-strip.jpg" data-index='s38' src="images/gallery/photobooth/117631-strip.jpg">
<img data-original="images/gallery/photobooth/117635-strip.jpg" data-index='s39' src="images/gallery/photobooth/117635-strip.jpg">
<img data-original="images/gallery/photobooth/117639-strip.jpg" data-index='s40' src="images/gallery/photobooth/117639-strip.jpg">
<img data-original="images/gallery/photobooth/117643-strip.jpg" data-index='s41' src="images/gallery/photobooth/117643-strip.jpg">
<img data-original="images/gallery/photobooth/117647-strip.jpg" data-index='s42' src="images/gallery/photobooth/117647-strip.jpg">
<img data-original="images/gallery/photobooth/117651-strip.jpg" data-index='s43' src="images/gallery/photobooth/117651-strip.jpg">
<img data-original="images/gallery/photobooth/117655-strip.jpg" data-index='s44' src="images/gallery/photobooth/117655-strip.jpg">
<img data-original="images/gallery/photobooth/117659-strip.jpg" data-index='s45' src="images/gallery/photobooth/117659-strip.jpg">
<img data-original="images/gallery/photobooth/117663-strip.jpg" data-index='s46' src="images/gallery/photobooth/117663-strip.jpg">
<img data-original="images/gallery/photobooth/117667-strip.jpg" data-index='s47' src="images/gallery/photobooth/117667-strip.jpg">
<img data-original="images/gallery/photobooth/117671-strip.jpg" data-index='s48' src="images/gallery/photobooth/117671-strip.jpg">
<img data-original="images/gallery/photobooth/117675-strip.jpg" data-index='s49' src="images/gallery/photobooth/117675-strip.jpg">
<img data-original="images/gallery/photobooth/117679-strip.jpg" data-index='s50' src="images/gallery/photobooth/117679-strip.jpg">
<img data-original="images/gallery/photobooth/117683-strip.jpg" data-index='s51' src="images/gallery/photobooth/117683-strip.jpg">
<img data-original="images/gallery/photobooth/117687-strip.jpg" data-index='s52' src="images/gallery/photobooth/117687-strip.jpg">
<img data-original="images/gallery/photobooth/117691-strip.jpg" data-index='s53' src="images/gallery/photobooth/117691-strip.jpg">
<img data-original="images/gallery/photobooth/117695-strip.jpg" data-index='s54' src="images/gallery/photobooth/117695-strip.jpg">
<img data-original="images/gallery/photobooth/117699-strip.jpg" data-index='s55' src="images/gallery/photobooth/117699-strip.jpg">
<img data-original="images/gallery/photobooth/117703-strip.jpg" data-index='s56' src="images/gallery/photobooth/117703-strip.jpg">
<img data-original="images/gallery/photobooth/117707-strip.jpg" data-index='s57' src="images/gallery/photobooth/117707-strip.jpg">
<img data-original="images/gallery/photobooth/117711-strip.jpg" data-index='s58' src="images/gallery/photobooth/117711-strip.jpg">
<img data-original="images/gallery/photobooth/117715-strip.jpg" data-index='s59' src="images/gallery/photobooth/117715-strip.jpg">
</wedding-gallery>
</div>
<div> <!-- Registry -->
<paper-card elevation="3" class="registry-info">
<p>
Please check out our wedding registry on zola.com by clicking
<a target="_blank" href="https://www.zola.com/registry/nicoleloveseric">here</a>.
</p>
</paper-card>
</div>
</iron-pages>
</div>
<div class="table-cell lace-right"></div>
</div>
</template>
<script>
Polymer({
is: 'wedding-polymer',
/***
* @private
* @type String
*/
daysMarried: null,
ready: function() {
var tabs = document.querySelector('paper-tabs');
var pages = document.querySelector('iron-pages');
// Deault to tab based on hash.
var tabNames = ["home", "story", "details", "gallery", "registry"];
var hash = window.location.hash.substring(1);
var tabIndex = tabNames.indexOf(hash);
if (tabIndex > 0) {
pages.selected = tabs.selected = tabIndex;
}
// When changing the tab, change the page.
tabs.addEventListener('iron-select', function() {
if (tabs.selected == 0) {
// Nicole's requirement to remove the hash if on the home page.
// http://stackoverflow.com/questions/1397329/how-to-remove-the-hash-from-window-location-with-javascript-without-page-refresh#answer-5298684
history.pushState("", document.title, window.location.pathname + window.location.search);
} else {
window.location.hash = "#" + tabNames[tabs.selected];
}
pages.selected = tabs.selected;
});
// Update number of days since the wedding.
this._updateDaysMarried();
},
_updateDaysMarried: function() {
var now = new Date();
var weddingDate = new Date(2016, 3, 8, 18, 0, 0); // April 8, 2016 - 6 PM
this.daysMarried = Math.floor((now.getTime() - weddingDate.getTime()) / (1000 * 60 * 60 * 24));
},
toggle: function(event) {
var target = event.target;
while (target && !target.getAttribute('data-toggle')) {
target = target.parentNode;
if (target == document.body) {
return;
}
}
var selector = target.getAttribute('data-toggle');
var collapse = document.querySelector(selector);
collapse.opened = !collapse.opened;
var img = target.querySelector("img");
if (collapse.opened) {
img.src = "images/minus.png";
} else {
img.src = "images/plus.png";
}
},
toggleAndResize: function(event) {
this.toggle(event);
this.$.weddingMap.resize();
},
});
</script>
</dom-module>