-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.html
More file actions
116 lines (100 loc) · 3.05 KB
/
Copy pathexample.html
File metadata and controls
116 lines (100 loc) · 3.05 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>GitHub Profile Badge</title>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--main-bg-color: #101010;
--secondary-color: #FF6C00;
--secondary-color-dark: #b94f03;
}
* {
padding: 0;
margin: 0;
text-decoration: none;
}
body {
color: white;
font-family: "Open Sans", sans-serif;
background-color: #121212;
margin: 10px;
}
main {
display: flex;
flex-wrap: wrap;
}
h1 {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
text-align: center;
margin: 10px;
width: 100%;
}
h3 {
font-family: 'Montserrat', sans-serif;
font-weight: 400;
}
/* unvisited link */
a:link {
color: var(--secondary-color-dark);
}
/* visited link */
a:visited {
color: var(--secondary-color-dark);
}
/* mouse over link */
a:hover {
color: var(--secondary-color);
}
.example-badge {
display: flex;
flex-wrap: wrap;
padding: 10px;
border: 1px white solid;
width: 100%;
}
.example-badge h3 {
margin-bottom: 10px;
width: 100%;
}
footer {
margin-top: 10px;
font-size: small;
}
</style>
</head>
<body>
<main>
<h1>GitHub profile badge examples</h1>
<div class="example-badge">
<h3>Default:</h3>
<div class="github-profile-badge" data-user="rapsssito"></div>
<div class="github-profile-badge" data-user="rapsssito"></div>
</div>
<div class="example-badge">
<h3>Custom background:</h3>
<style>
.custom-background .github-profile-badge-name-wrapper {
background: gray;
}
.custom-background .github-profile-badge-name {
color: black;
font-weight: bold;
}
</style>
<div class="github-profile-badge custom-background" data-user="pablotix20"></div>
<div class="github-profile-badge custom-background" data-user="pablotix20"></div>
</div>
</main>
<footer>
<p>You can check out the documentation <a href="https://github.com/Rapsssito/github-profile-badge"
target="_blank">here</a>.</p>
</footer>
</body>
<script src="src/widget.js"></script>
</html>