-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplate.html
More file actions
132 lines (116 loc) · 3.85 KB
/
template.html
File metadata and controls
132 lines (116 loc) · 3.85 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<!-- use user-defined color to deternime mdl color pallet from cdn -->
<link rel="stylesheet" href={{ color }}>
<script defer src="https://code.getmdl.io/1.3.0/material.min.js"></script>
<title> Profile: {{ name }}</title>
<style>
@media print {
body {
-webkit-print-color-adjust: exact;
color-adjust: exact;
}
}
.avatar-card-image.mdl-card {
width: 256px;
height: 256px;
background: url("{{ avatar_url }}") center / cover;
}
.avatar-card-image__filename {
color: #fff;
font-size: 14px;
font-weight: 500;
}
footer {
float: bottom;
}
#git-logo {
width: 75px;
height: 75px;
}
</style>
</head>
<body>
<!-- Always shows a header, even in smaller screens. -->
<div class="mdl-layout mdl-layout--fixed-header">
<header class="mdl-layout__header">
<div class="mdl-layout__header-row">
<!-- Title -->
<span class="mdl-layout-title">{{ name }}</span>
<!-- Add spacer, to align navigation to the right -->
<div class="mdl-layout-spacer"></div>
</div>
</header>
</div>
<main class="mdl-layout__content page-content ">
<div class="mdl-grid">
<div class="mdl-cell avatar-card-image mdl-card mdl-shadow--2dp">
<span class="avatar-card-image__filename">{{ name }}</span>
</div>
<div class="mdl-cell mdl-card mdl-shadow--2dp">
<div class="mdl-card__title">
<h2 class="mdl-card__title-text">{{ name }}'s Profile</h2>
</div>
<div class="mdl-card__supporting-text">
{{ bio }}
</div>
<div class="mdl-card__actions mdl-card--border">
<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect">
{{ location }}
</a>
</div>
<div class="mdl-card__menu">
<i class="material-icons">share</i>
</button>
</div>
</div>
</div>
<div class="mdl-grid">
<div class="mdl-cell mdl-cell--12-col mdl-card mdl-shadow--2dp">
<div class="mdl-card__title">
<h2 class="mdl-card__title-text">GitHub Stats</h2>
</div>
<ul class="mdl-list">
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">apps</i>
{{ public_repos }} : Public Repos
<!-- only render star if there are starred repos -->
<div class="material-icons mdl-badge mdl-badge--overlap" data-badge={{ stars }}>star</div>
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">person_add</i>
{{ following }} : Following
</span>
</li>
<li class="mdl-list__item">
<span class="mdl-list__item-primary-content">
<i class="material-icons mdl-list__item-icon">supervisor_account</i>
{{ followers }} : Followers
</span>
</li>
</ul>
</div>
</div>
</main>
<footer class="mdl-mini-footer">
<div class="mdl-mini-footer__left-section">
<div class="mdl-logo">
More Information
</div>
</div>
<div class="mdl-mini-footer__right-section">
<img id="git-logo" alt="GitHub logo"
src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png">
<button class="mdl-mini-footer__social-btn"></button>
<button class="mdl-mini-footer__social-btn"></button>
</div>
</footer>
</body>
</html>