-
Notifications
You must be signed in to change notification settings - Fork 0
/
destination.html
157 lines (142 loc) · 7.5 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
153
154
155
156
157
<!DOCTYPE html>
<html lang="en">
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 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">
<!-- custom css -->
<link rel="stylesheet" href="./static/design-system-v2.css">
<!-- <link rel="stylesheet" href="./static/index.css"> -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/favicon-32x32.png">
<!-- custom js -->
<script src="./static/navigation.js" defer></script>
<script src="./static/tabs.js" defer></script>
<title>Frontend Mentor | Space tourism website</title>
</head>
<body class="destination">
<a class="skip-to-content" href="#main">skip to content</a>
<!-- navigation -->
<header class="primary-header flex">
<div>
<a href="index.html">
<img src="./assets/shared/logo.svg" alt="space tourism logo" class="logo">
</a>
</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="number-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 planet titan">
</picture>
<!-- tabs -->
<div class="tab-list underline-indicators flex" role="tablist" aria-label="destination list">
<button aria-selected="true" role="tab" aria-controls="moon-tab" tabindex="0" data-image="moon-image"
class="uppercase text-accent ff-sans-cond letter-spacing-2 m-1">Moon</button>
<button aria-selected="false" role="tab" aria-controls="mars-tab" tabindex="-1" data-image="mars-image"
class="uppercase text-accent ff-sans-cond letter-spacing-2 m-1">Mars</button>
<button aria-selected="false" role="tab" aria-controls="europa-tab" tabindex="-1" data-image="europa-image"
class="uppercase text-accent ff-sans-cond letter-spacing-2 m-1">Europa</button>
<button aria-selected="false" role="tab" aria-controls="titan-tab" tabindex="-1" data-image="titan-image"
class="uppercase text-accent ff-sans-cond letter-spacing-2 m-1">Titan</button>
</div>
<!-- the moon -->
<article class="destination-info flow" id="moon-tab" tabindex="0" role="tabpanel">
<h2 class="f-serif fs-800 uppercase">Moon</h2>
<p class="ff-sans-nomal fs-200">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="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Avg. distance</h3>
<p class="f-serif fs-500 uppercase">384,400 km</p>
</div>
<div>
<h3 class="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Est. travel time</h3>
<p class="f-serif fs-500 uppercase">3 days</p>
</div>
</div>
</article>
<!-- the mars -->
<article hidden class="destination-info flow" id="mars-tab" tabindex="0" role="tabpanel">
<h2 class="f-serif fs-800 uppercase">Mars</h2>
<p class="ff-sans-nomal fs-200">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="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Avg. distance</h3>
<p class="f-serif fs-500 uppercase">225 mil. km</p>
</div>
<div>
<h3 class="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Est. travel time</h3>
<p class="f-serif fs-500 uppercase">9 months</p>
</div>
</div>
</article>
<!-- the europa -->
<article hidden class="destination-info flow" id="europa-tab" tabindex="0" role="tabpanel">
<h2 class="f-serif fs-800 uppercase">Europa</h2>
<p class="ff-sans-nomal fs-200">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="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Avg. distance</h3>
<p class="f-serif fs-500 uppercase">628 mil. km</p>
</div>
<div>
<h3 class="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Est. travel time</h3>
<p class="f-serif fs-500 uppercase">3 years</p>
</div>
</div>
</article>
<!-- the titan -->
<article hidden class="destination-info flow" id="titan-tab" tabindex="0" role="tabpanel">
<h2 class="f-serif fs-800 uppercase">Titan</h2>
<p class="ff-sans-nomal fs-200">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="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Avg. distance</h3>
<p class="f-serif fs-500 uppercase">1.6 bil. km</p>
</div>
<div>
<h3 class="ff-sans-nomal fs-200 text-accent uppercase letter-spacing-3">Est. travel time</h3>
<p class="f-serif fs-500 uppercase">7 years</p>
</div>
</div>
</article>
</main>
<body>
</body>
</html>