-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
91 lines (90 loc) · 2.65 KB
/
index.html
File metadata and controls
91 lines (90 loc) · 2.65 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
<!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">
<meta name="theme-color" content="#A0CFFD">
<link rel="shortcut icon" href="https://avatars2.githubusercontent.com/u/57320683?s=460&v=4" type="image/jpeg">
<title>JayPY Code</title>
<style>
*{
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body{
margin: 0;
background-color: #A0CFFD;
width: 100vw;
height: 100vh;
overflow: hidden;
}
main{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100vw;
height: 100vh;
color: #000;
}
img{
width: 150px;
height: 150px;
}
ul{
display: flex;
flex-wrap: wrap;
}
ul li{
margin-right: 50px;
color: #000;
}
a{
color: #000;
}
footer{
position: fixed;
bottom: 10px;
left: 10px;
right: 10px;
display: flex;
flex-wrap: wrap
}
footer a{
margin-left: 30px;
}
footer span{
color: #000;
margin-right: auto;
}
</style>
</head>
<body>
<main>
<img src="https://avatars2.githubusercontent.com/u/57320683?s=460&v=4" alt="JayPY Code - Logo">
<h2>JayPY Code</h2>
<p>Hi, I am JayPY and i'm a web developer!</p>
<br><br>
<ul id="repos"></ul>
</main>
<footer>
<span><script>document.write(new Date().getFullYear())</script></span>
<a href="mailto:jaypy.code@gmail.com">Email</a>
<a href="https://github.com/jaypy-code">GitHub</a>
<a href="https://instagram.com/iamjaypy">Instagram</a>
</footer>
<script>
window.onload = ()=>{
fetch("https://api.github.com/users/jaypy-code/repos")
.then(res=>{
return res.json();
}).then(result=>{
let ul = document.getElementById('repos');
result.forEach(repo=>{
ul.innerHTML += `<li><a href="${repo['html_url']}" title="${repo['description'] || ''}">${repo['name']}</a></li>`;
})
})
};
</script>
</body>
</html>