-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathindex.html
More file actions
100 lines (71 loc) · 2.42 KB
/
Copy pathindex.html
File metadata and controls
100 lines (71 loc) · 2.42 KB
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
91
92
93
94
95
96
97
98
99
100
<!-- Welcome!
========
This is a list view for employees that work at WillowTree.
What it does:
~~~~~~~~~~~~~
- Lists employees photos & names.
- Search for an employee by name.
- Sort employees by their first names.
- Sort empolyees by their last names.
- Shuffle the list order (because why not).
Implementation details:
~~~~~~~~~~~~~~~~~~~~~~~
- No compile step—Just open this file in a browser.
- The view layer is written in React (without JSX).
* If you don't know React, don't fret! The logic lives
outside of it for the most part.
So... what now?
~~~~~~~~~~~~~~~
Take a look at the code. It works on the surface, but can it be
improved? Are there things that you would do differently?
Change it & Have fun!
Misc. Notes
~~~~~~~~~~~
This code is only expected to work in the latest version of
Google Chrome. Feel free to use all the latest & greatest
things that are offered (new API's for JS, CSS, etc.).
Currently this project does _not_ have a build step (i.e. it runs
directly by opening the file in Google Chrome). If you finish
with improvements & feel like there isn't much else to do _then_
add in a build step if you wish. This is NOT strictly required.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Single Page Application</title>
<link rel="stylesheet" href="css/foundation.css">
<link rel="stylesheet" href="css/app.css">
<style>
body {
margin: 0px;
padding: 0px;
}
.app-container {
width: 400px;
margin: 0 auto 0 auto;
}
.image {
width: 100px;
height: 100px;
}
.list-container {
width: 100%;
border: 1px solid black;
}
em {
color: #FF4136;
}
</style>
</head>
<body>
<!-- Container for our application -->
<div id="app"></div>
<!-- 3rd Party Scripts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.14.7/react-dom.js"></script>
<script src="js/app.js"></script>
</body>
</html>