-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
200 lines (187 loc) · 6.72 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Aaron-Samuel Hauck</title>
<!-- Begin Jekyll SEO tag v2.8.0 -->
<meta name="generator" content="Jekyll v4.3.2" />
<meta property="og:title" content="Aaron-Samuel Hauck" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Work Links and Contact Information for Aaron-Samuel Hauck" />
<meta property="og:description" content="Work Links and Contact Information for Aaron-Samuel Hauck" />
<link rel="canonical" href="http://localhost:4000/" />
<meta property="og:url" content="http://localhost:4000/" />
<meta property="og:site_name" content="Aaron-Samuel Hauck" />
<meta property="og:type" content="website" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Aaron-Samuel Hauck" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"description": "Work Links and Contact Information for Aaron-Samuel Hauck",
"headline": "Aaron-Samuel Hauck",
"name": "Aaron-Samuel Hauck",
"url": "http://localhost:4000/"
}
</script>
<!-- End Jekyll SEO tag -->
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicon-16x16.png" />
<link rel="manifest" href="assets/site.webmanifest" />
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="/assets/css/normalize.min.css" />
<link rel="stylesheet" href="/assets/css/open-color.min.css" />
<script src="/assets/js/typed.min.js"></script>
</head>
<body>
<main class="json">
<!-- Updated Intro Section -->
<div class="block">
<p>
<span class="key">name</span>
<span class="attr">Aaron-Samuel Hauck</span>
</p>
<div id="typed-strings">
<span>"Oi, World! I'm Aaron 👋",</span>
<span>"I'm a Web Developer and System Administrator",</span>
<span>"Working extensively with DevOps practices",</span>
<span>"and building fast, secure, and scalable web applications.",</span>
</div>
<p>
<span class="key">description</span>
<span id="typed"></span>
<script>
var typed = new Typed("#typed", {
stringsElement: "#typed-strings",
backSpeed: 10,
typeSpeed: 30,
backDelay: 1000,
loop: true,
smartBackspace: true,
});
</script>
</p>
</div>
<!-- Address Section -->
<div class="block">
<p>
<span class="array-key">address</span>
</p>
<div class="array">
<p class="array-attr">Germany</p>
<p class="array-attr">Cologne</p>
</div>
</div>
<!-- Contact Section -->
<div class="block">
<p>
<span class="list-key">contact</span>
</p>
<div class="list">
<p>
<span class="list-subkey">email</span>
<span class="list-attr">
<a href="mailto:'[email protected]'">[email protected]</a>
</span>
</p>
</div>
</div>
<!-- Profiles Section -->
<div class="block">
<span class="array-key">profiles</span>
<div class="array">
<p class="array-attr">
<a href="https://www.linkedin.com/in/aaronsamuelhauck/" target="_blank">linkedin</a>
</p>
<p class="array-attr">
<a href="https://github.com/aaronedev/" target="_blank">github</a>
</p>
</div>
</div>
<!-- New GitHub Repos Section -->
<div class="block repo-list">
<p>
<span class="array-key">public_repos</span>
</p>
<div class="array" id="repo-list">
<!-- Repositories will be dynamically inserted here -->
</div>
</div>
</main>
<!-- GitHub API Script -->
<script>
const username = "aaronedev";
const repoList = document.getElementById("repo-list");
const authToken = 'YOUR_PERSONAL_ACCESS_TOKEN'; // Replace with your GitHub Personal Access Token
async function fetchGitHubRepos() {
const response = await fetch(`https://api.github.com/users/${username}/repos`);
const repos = await response.json();
repos.forEach((repo) => {
const language = repo.language ? repo.language : "Not specified";
const description = repo.description ? repo.description : "No description provided.";
const topics =
repo.topics.length > 0 ?
repo.topics.map((topic) => `#${topic}`).join(", ") :
"No tags available";
const repoElement = document.createElement("div");
repoElement.classList.add("repo");
repoElement.innerHTML = `
<div class="repo-header">
<a href="${repo.html_url}" target="_blank" class="repo-name">${repo.name}</a>
<span class="repo-stars" onclick="starRepo('${repo.name}')">★ ${repo.stargazers_count}</span>
<span class="repo-forks" onclick="forkRepo('${repo.name}')">🍴 ${repo.forks_count}</span>
</div>
<div class="repo-details">
<p class="repo-description">
<span class="repo-details-icon icon-description"></span>
"description": "${description}",
</p>
<p class="repo-language">
<span class="repo-details-icon icon-language"></span>
"language": "${language}",
</p>
<p class="repo-tags">
<span class="repo-details-icon icon-tags"></span>
"tags": "${topics}"
</p>
</div>
`;
repoList.appendChild(repoElement);
});
}
async function starRepo(repoName) {
const response = await fetch(`https://api.github.com/user/starred/${username}/${repoName}`, {
method: 'PUT',
headers: {
'Authorization': `token ${authToken}`,
'Accept': 'application/vnd.github.v3+json'
}
});
if (response.status === 204) {
alert(`You have starred ${repoName}`);
} else {
alert(`Failed to star ${repoName}`);
}
}
async function forkRepo(repoName) {
const response = await fetch(`https://api.github.com/repos/${username}/${repoName}/forks`, {
method: 'POST',
headers: {
'Authorization': `token ${authToken}`,
'Accept': 'application/vnd.github.v3+json'
}
});
if (response.status === 202) {
alert(`You have forked ${repoName}`);
} else {
alert(`Failed to fork ${repoName}`);
}
}
fetchGitHubRepos();
</script>
</body>
</html>