-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
77 lines (77 loc) · 1.75 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Data Fetching Demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.1.1/normalize.min.css"/>
<style>
* {
box-sizing: border-box;
}
button {
background: #000863;
color: white;
border-radius: 5px;
box-shadow: inset rgba(0,0,0,0.6) 0 -2px 0;
border: none;
}
body {
margin: 0;
padding: 0;
}
form {
padding: 10px;
display: flex;
flex-direction: row;
}
form > input {
background: white;
border: 1px solid black;
flex-grow: 1;
display: inline-block;
}
form > button {
width: 90px;
display: inline-block;
margin-left: 20px;
}
article {
display: flex;
flex-direction: row;
border-bottom: 1px solid black;
padding: 10px;
}
article > .vote-count {
background: #000863;
color: white;
border-radius: 4px;
height: 26px;
min-width: 60px;
display: inline-block;
text-align: center;
padding: 4;
margin-right: 20px;
font-size: 19px;
}
article > .story-body {
flex-grow: 1;
}
article > button {
width: 60px;
height: 26px;
}
</style>
</head>
<body>
<div id="container">
</div>
<p>
<a href="/">Change Demo</a>
</p>
<p>
Source code on <a href="https://github.com/ForbesLindesay/react-data-fetching-demo">GitHub</a>
</p>
<script src="{{client}}"></script>
</body>
</html>