-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
61 lines (53 loc) · 1.68 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Mission to Mars</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
<div class="container-fluid">
<div class="jumbotron text-center">
<h1>Mission to Mars</h1>
<p><a class="btn btn-primary btn-lg" href="/scrape" role="button">Scrape New Data</a></p>
</div>
<div class="row">
<div class="col-md-12">
<h2>Latest Mars News</h2>
<h4>{{ mars.news_title }}</h4>
<p>{{ mars.news_paragraph }}</p>
</div>
</div>
<div class="row">
<div class="col-md-8">
<h2>Featured Mars Image</h2>
<img class="img-responsive" src="{{ mars.featured_image_url }}" alt="Featured Mars Image">
</div>
<div class="col-md-4">
<h4>Mars Facts</h4>
<table class="table table-bordered table-striped">
{{ mars.mars_facts | safe }}
</table>
</div>
</div>
<!-- Section for Mars Hemispheres -->
<div class="row" id="mars-hemispheres">
<div class="page-header">
<h2 class="text-center">Mars Hemispheres</h2>
</div>
{% for hemisphere in mars.hemisphere_image_urls %}
<div class="col-md-6">
<div class="thumbnail">
<img src="{{ hemisphere.img_url }}" alt="{{ hemisphere.title }}">
<div class="caption">
<h3>{{ hemisphere.title }} Enhanced</h3>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</body>
</html>