-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.html
90 lines (84 loc) · 3.57 KB
/
home.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
<!DOCTYPE html>
<meta charset="UTF-8" />
<html>
<head>
<!--This is the title of your page, which will appear in the name of the tab. Change it to anything you like! -->
<title>My Guardian</title>
<!--
These are stylesheets which help make the page look good
- 'bootstrap' helps lay things out neatly on the page
- 'style.css' is a style you can change yourself to change how the page looks
-->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"/>
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<div class="col-md-12 header">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-7">
<ul class="navigation">
<li><div class="news pillar"><a href="https://www.theguardian.com/news">News</a></div></li>
<li><div class="opinion pillar"><a href="https://www.theguardian.com/opinion">Opinion</a></div></li>
<li><div class="sport pillar"><a href="https://www.theguardian.com/sport">Sport</a></div></li>
<li><div class="culture pillar"><a href="https://www.theguardian.com/culture">Culture</a></div></li>
<li><div class="lifestyle pillar"><a href="https://www.theguardian.com/lifestyle">Lifestyle</a></div></li>
</ul>
</div>
<div class="col-md-1"></div>
<div class="col-md-2">
<div class="header-logo-container">
<!-- This is the text for the guardian logo. You can change it to anything you like. -->
My<br> Guardian
</div>
<div class="tag-line">
<p> News website of the year</p>
</div>
</div>
</div>
</div>
<!-- this is the box of 3 articles -->
<script id="article-list" type="text/x-handlebars-template">
<!-- this is the heading of the article box -->
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-10">
<h2>{{sectionName}}</h2>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="article-container col-md-12">
<div class="row">
<div class="col-md-1"></div>
{{#each articleList as |article|}}
<div class="col-md-3">
<div class="thumbnail">
<!-- put the article image here -->
<div class="caption">
<h3>
<!-- this is the article headline -->
{{article.headline}}
</h3>
<p>
<!-- put the article trail text here -->
</p>
</div>
</div>
</div>
{{/each}}
</div>
</div>
</div>
</div>
</script>
<!--These are bits of code made by other people to help make the page look good and work properly-->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.4.0/handlebars.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="api-keyfile.js"></script>
<script type="text/javascript" src="uglyscript.js"></script>
<!-- This is the code that you will edit today -->
<script type="text/javascript" src="script.js"></script>
</body>
</html>