-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
78 lines (74 loc) · 3.04 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!-- Readit -->
<!-- Larry Tseng -->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Readit</title>
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Animate.css -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<!-- main.css -->
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container" id="main-content">
<div id="navbar">
<div class="input-group mb-2" id="subreddit-input-group">
<div class="input-group-prepend">
<label class="input-group-text" for="subreddit-field">r/</label>
</div>
<input id="subreddit-field" type="text" class="form-control" placeholder="Subreddit" aria-label="Subreddit" spellcheck="false">
<div class="input-group-append">
<button id="subreddit-submit" class="btn btn-outline-secondary" type="button">Readit</button>
</div>
</div>
</div>
<div id="feed">
<div id="subreddit-metadata">
<!-- TODO: Add metadata -->
</div>
<template id="post-template">
<div class="card-columns">
{{#posts}}
<a href="https://reddit.com/{{url}}">
<div class="card animated slideInUp post" id="{{id}}">
{{#showImage}}
<img src="{{thumbnail}}" class="card-img-top" alt="{{alt}}">
{{/showImage}}
<div class="card-body">
<h5 class="card-title">{{{title}}}</h5>
<h6 class="author text-secondary">by u/{{author}}</h6>
<p class="card-text">{{{body}}}</p>
</div>
</div>
</a>
{{/posts}}
</div>
</template>
<div id="posts">
</div>
</div>
</div>
<div id="load-more-div">
<button class="btn btn-outline-primary" id="load-more">Load More...</button>
</div>
<!-- TODO: Make dark theme -->
<div class="text-center text-secondary" id="footer">
Made with <i class="fas fa-heart"></i> by <a class="text-secondary" href="https://github.com/LTSENG01">Larry Tseng</a>.
</div>
<!-- JQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<script src="js/bootstrap.min.js"></script>
<!-- Mustache -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/3.1.0/mustache.min.js" integrity="sha256-MPgtcamIpCPKRRm1ppJHkvtNBAuE71xcOM+MmQytXi8=" crossorigin="anonymous"></script>
<!-- Font Awesome -->
<script src="https://kit.fontawesome.com/ee5e6d2d47.js" crossorigin="anonymous"></script>
<!-- Main JS -->
<script src="js/main.js"></script>
</body>
</html>