-
Notifications
You must be signed in to change notification settings - Fork 1
/
destination.html
152 lines (130 loc) · 6.91 KB
/
destination.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon-32x32.png">
<!-- Google fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;700&family=Bellefair&family=Barlow:wght@400;700&display=swap"
rel="stylesheet">
<!-- Our custom CSS -->
<link rel="stylesheet" href="./src/index.css">
<title>Space Tourism</title>
<script src="./src/navigation.js" defer></script>
<script src="./src/tabs.js" defer></script>
</head>
<body class="destination">
<a class="skip-to-content" href="#main">Skip to content</a>
<header class="primary-header flex">
<div>
<img src="./assets/shared/logo.svg" alt="space tourism logo" class="logo">
</div>
<button class="mobile-nav-toggle" aria-controls="primary-navigation"><span class="sr-only" aria-expanded="false">Menu</span></button>
<nav>
<ul id="primary-navigation" data-visible="false" class="primary-navigation underline-indicators flex">
<li><a class="ff-sans-cond uppercase text-white letter-spacing-2" href="index.html"><span aria-hidden="true">00</span>Home</a>
<li class="active"><a class="ff-sans-cond uppercase text-white letter-spacing-2" href="destination.html"><span aria-hidden="true">01</span>Destination</a>
<li><a class="ff-sans-cond uppercase text-white letter-spacing-2" href="crew.html"><span aria-hidden="true">02</span>Crew</a>
<li><a class="ff-sans-cond uppercase text-white letter-spacing-2" href="technology.html"><span aria-hidden="true">03</span>Technology</a>
</ul>
</nav>
</header>
<main id="main" class="grid-container grid-container--destination flow">
<h1 class="numbered-title"><span aria-hidden="true">01</span> Pick your destination</h1>
<picture id="moon-image">
<source srcset="assets/destination/image-moon.webp" type="image/webp">
<img src="assets/destination/image-moon.png" alt="the moon">
</picture>
<picture hidden id="mars-image">
<source srcset="assets/destination/image-mars.webp" type="image/webp">
<img src="assets/destination/image-mars.png" alt="the planet mars">
</picture>
<picture hidden id="europa-image">
<source srcset="assets/destination/image-europa.webp" type="image/webp">
<img src="assets/destination/image-europa.png" alt="the planet europa">
</picture>
<picture hidden id="titan-image">
<source srcset="assets/destination/image-titan.webp" type="image/webp">
<img src="assets/destination/image-titan.png" alt="the moon titan">
</picture>
<div class="tab-list underline-indicators flex" role="tablist" aria-label="destination list">
<button aria-selected="true" role="tab" aria-controls="moon-tab" class="uppercase ff-sans-cond text-accent letter-spacing-2" tabindex="0" data-image="moon-image">Moon</button>
<button aria-selected="false" role="tab" aria-controls="mars-tab" class="uppercase ff-sans-cond text-accent letter-spacing-2" tabindex="-1" data-image="mars-image">Mars</button>
<button aria-selected="false" role="tab" aria-controls="europa-tab" class="uppercase ff-sans-cond text-accent letter-spacing-2" tabindex="-1" data-image="europa-image">Europa</button>
<button aria-selected="false" role="tab" aria-controls="titan-tab" class="uppercase ff-sans-cond text-accent letter-spacing-2" tabindex="-1" data-image="titan-image">Titan</button>
</div>
<!-- The moon -->
<article class="destination-info flow" id="moon-tab" tabindex="0" role="tabpanel">
<h2 class="fs-800 uppercase ff-serif">Moon</h2>
<p>See our planet as you’ve never seen it before. A perfect relaxing trip away to help
regain perspective and come back refreshed. While you’re there, take in some history
by visiting the Luna 2 and Apollo 11 landing sites.</p>
<div class="destination-meta flex">
<div>
<h3 class="text-accent fs-200 uppercase">Avg. distance</h3>
<p class="ff-serif uppercase">384,400 km</p>
</div>
<div>
<h3 class="text-accent fs-200 uppercase">Est. travel time</h3>
<p class="ff-serif uppercase">3 days</p>
</div>
</div>
</article>
<!-- Mars -->
<article hidden class="destination-info flow" id="mars-tab" tabindex="0" role="tabpanel">
<h2 class="fs-800 uppercase ff-serif">Mars</h2>
<p>Don’t forget to pack your hiking boots. You’ll need them to tackle Olympus Mons,
the tallest planetary mountain in our solar system. It’s two and a half times
the size of Everest!</p>
<div class="destination-meta flex">
<div>
<h3 class="text-accent fs-200 uppercase">Avg. distance</h3>
<p class="ff-serif uppercase">225 mil. km</p>
</div>
<div>
<h3 class="text-accent fs-200 uppercase">Est. travel time</h3>
<p class="ff-serif uppercase">9 months</p>
</div>
</div>
</article>
<!-- Europa -->
<article hidden class="destination-info flow" id="europa-tab" tabindex="0" role="tabpanel">
<h2 class="fs-800 uppercase ff-serif">Europa</h2>
<p>The smallest of the four Galilean moons orbiting Jupiter, Europa is a
winter lover’s dream. With an icy surface, it’s perfect for a bit of
ice skating, curling, hockey, or simple relaxation in your snug
wintery cabin.</p>
<div class="destination-meta flex">
<div>
<h3 class="text-accent fs-200 uppercase">Avg. distance</h3>
<p class="ff-serif uppercase">628 mil. km</p>
</div>
<div>
<h3 class="text-accent fs-200 uppercase">Est. travel time</h3>
<p class="ff-serif uppercase">3 years</p>
</div>
</div>
</article>
<!-- Titan -->
<article hidden class="destination-info flow" id="titan-tab" tabindex="0" role="tabpanel">
<h2 class="fs-800 uppercase ff-serif">Titan</h2>
<p>The only moon known to have a dense atmosphere other than Earth, Titan
is a home away from home (just a few hundred degrees colder!). As a
bonus, you get striking views of the Rings of Saturn.</p>
<div class="destination-meta flex">
<div>
<h3 class="text-accent fs-200 uppercase">Avg. distance</h3>
<p class="ff-serif uppercase">1.6 bil. km</p>
</div>
<div>
<h3 class="text-accent fs-200 uppercase">Est. travel time</h3>
<p class="ff-serif uppercase">7 years</p>
</div>
</div>
</article>
</main>
<body>
</body>
</html>