-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
122 lines (115 loc) · 4.27 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en" data-ng-app="ngDefaultAvatar">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
<title>AngularJS Default Avatar</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link href="default-avatar.css" rel="stylesheet">
<style>
html {
position: relative;
min-height: 100%;
}
body { margin-bottom: 60px; }
.container.content { padding-bottom: 40px; }
.container.content .item { margin-bottom: 10px; }
.container.content .item .name {
margin-top: 10px;
margin-left: 10px;
}
.container .text-muted { margin: 20px 0; }
.footer {
background-color: #f5f5f5;
width: 100%;
position: absolute;
bottom: 0;
height: 60px;
}
</style>
</head>
<body>
<div class="jumbotron">
<div class="container">
<h1>AngularJS Default Avatar</h1>
<p>
AngularJS directive to show an user avatar. Set a default avatar with initials if user has not avatar image.
</p>
<p>
<a class="btn btn-primary btn-lg" href="https://github.com/AitorRodriguez990/ng-default-avatar" role="button">Learn more on GitHub »</a>
</p>
</div>
</div>
<div class="container content">
<div class="row">
<div class="col-xs-6">
<h2>Users list - Without Image</h2>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Aitor" surname="Rodríguez"></default-avatar>
</div>
<div class="name pull-left">Aitor Rodríguez</div>
</div>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Brad" surname="Pitt"></default-avatar>
</div>
<div class="name pull-left">Brad Pitt</div>
</div>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Morgan" surname="Freeman"></default-avatar>
</div>
<div class="name pull-left">Morgan Freeman</div>
</div>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Kevin" surname="Spacey"></default-avatar>
</div>
<div class="name pull-left">Kevin Spacey</div>
</div>
</div>
<div class="col-xs-6">
<h2>Users list - With Image</h2>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Aitor" surname="Rodriguez" image="'http://www.frontendfactory.es/wp-content/uploads/2015/04/Avatar.jpg'"></default-avatar>
</div>
<div class="name pull-left">Aitor Rodríguez</div>
</div>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Brad" surname="Pitt" image="'http://2.bp.blogspot.com/-CzQKugQkihU/UZqAlJIaM2I/AAAAAAAAAL8/Tdw3P4KUTPA/s1600/seven+3.jpg'"></default-avatar>
</div>
<div class="name pull-left">Brad Pitt</div>
</div>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Morgan" surname="Freeman" image="'https://dejareviewer.files.wordpress.com/2012/10/morgan-freeman-plays-the-voice-of-reason-in-both-the-dark-knight-and-seven.jpg'"></default-avatar>
</div>
<div class="name pull-left">Morgan Freeman</div>
</div>
<div class="item clearfix">
<div class="pull-left">
<default-avatar name="Kevin" surname="Spacey" image="'https://s-media-cache-ak0.pinimg.com/564x/78/65/32/7865328d36d02635730a800e999bb9e5.jpg'"></default-avatar>
</div>
<div class="name pull-left">Kevin Spacey</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container">
<p class="text-muted text-right">
Aitor Rodríguez -
<a href="http://www.frontendfactory.es" target="_blank">Front End Factory</a>
</p>
</div>
</footer>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script src="ng-default-avatar.js"></script>
</body>
</html>