Skip to content
Permalink
0965d5937b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
65 lines (54 sloc) 1.64 KB
<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>
<link href="/homestyle.css" type="text/css" rel="stylesheet">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<nav class="hotbar">
<a href="/">HOME</a>
<section class="dropdown">
<button class="dropdownBtn">CATEGORIES</button>
<section name="categories" class="dropdownContent">
<a href="/categories/sport">Sport</a>
<a href="/categories/science">Science</a>
<a href="/categories/tech">Tech</a>
<a href="/categories/world">World</a>
<a href="/categories/politics">Politics</a>
</section>
</section>
{{#if loggedIn}} <a href="/upload">UPLOAD NEWS</a> {{/if}}
<a href="/logout" class="right">Logout</a>
<a href="/login" class="right">Login</a>
<a href="/account" class="right">Account</a>
<form>
<input type="submit" value="search" class="search-btn">
<input type="text" name="q" value="{{query}}">
</form>
</nav>
<section class="header">
<h1>IN THE NEWS TODAY</h1>
</section>
<section class="row">
<section class="leftcolumn">
{{#if query}}
<p class="search-txt">{{num}} results for {{query}}</p>
{{/if}}
{{#each articles}}
<article class="card">
<a href="/articles/{{this.article_id}}"><h2> {{this.title}}</h2></a>
<h5> {{this.summary}}</h5>
<a href="/articles/{{this.article_id}}"><img src = "../{{this.image_url}}" style="height:200px;"></a>
<h5> by {{this.author}} </h5>
<h6> tag: {{this.tag}} </h6>
<p> Average Rating: </p>
</article>
{{/each}}
</section>
<section class="footer">
<p> ... </p>
</section>
</body>
</html>