-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithub.html
154 lines (134 loc) · 5.45 KB
/
github.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cormac Farrelly - GitHub Updates</title>
<meta name="description" content="Exploring the world of industrial automation, robotics, and artificial intelligence. GitHub repositories and updates for Cormac Farrelly">
<meta name="keywords" content="industrial automation, robotics, artificial intelligence, technology, machine learning, cormac farrelly, github, repositories, updates">
<meta name="author" content="Cormac Farrelly">
<meta name="robots" content="index, follow">
<!-- Stylesheets and scripts -->
<link rel="stylesheet" href="css/styles.css">
<link rel="icon" href="img/NFT.ico" type="image/x-icon">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script>
window.va = window.va || function () { (window.vaq = window.vaq || []).push(arguments); };
</script>
<script defer src="/_vercel/insights/script.js"></script>
<style>
.repo-block {
border: 1px solid #ddd; /* Removed duplicate border property */
border-radius: 8px;
margin: 10px;
padding: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.repo-title {
margin-bottom: 10px;
}
.repo-link {
font-size: 1.5em; /* Adjust the size as needed */
font-weight: bold; /* Make the text bold */
color: #005fc5; /* Link color, adjust as needed */
text-decoration: none; /* Remove underline from the link */
}
.repo-link a {
color: inherit; /* Inherit the color from .repo-link */
text-decoration: none; /* Remove underline from the link */
}
.repo-link a:hover {
text-decoration: underline; /* Underline on hover */
}
.repo-description {
font-size: 1.2em;
margin-bottom: 10px;
}
.repo-commits {
margin-top: 20px;
}
.repo-contents {
margin-top: 20px;
}
.commit {
padding: 10px;
margin: 5px 0;
}
</style>
</head>
<body>
<!-- Header and navigation -->
<header>
<nav class="navbar navbar-fixed-top navbar-inverse">
<div class="container">
<!-- Navbar toggle button -->
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#navbar-collapse" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Navbar content -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/" title="">01: Home</a></li>
<li><a href="/resume" title="">02: Resume</a></li>
<li><a href="/blog" title="">03: Blog</a></li>
<li><a href="/github" title="">04: GitHub</a></li>
</ul>
</div>
</div>
</nav>
</header>
<div class="login-button" id="loginStatus">
<!-- User login status will be injected here by script -->
</div>
<div class="section-container">
<div class="container">
<div class="row resume-row-label">
<div class="col-xs-12">
<div class="template-example">
<h1 class="template-title-example">My GitHub Repositories</h1>
<div id="repositories">
<!-- Repository data will be injected here -->
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/github.js"></script>
<script>
document.addEventListener('DOMContentLoaded', () => {
const username = localStorage.getItem('username');
const loginStatus = document.getElementById('loginStatus');
if (username) {
loginStatus.innerHTML = `
<a href="#" class="btn btn-primary">Welcome, ${username}</a>
<button id="logoutButton" class="btn btn-danger">Logout</button>
`;
// Logout functionality
document.getElementById('logoutButton').addEventListener('click', () => {
localStorage.removeItem('username');
window.location.href = 'index'; // Redirect to home page or login page
});
} else {
loginStatus.innerHTML = '<a href="login" class="btn btn-primary">Login</a>';
}
});
</script>
<div class="footer-container">
<div class="container">
<div class="row">
<div class="col-xs-12 text-center">
<p>Inspired by big dreams</p>
<p>This project was developed with the help of AI tools, using them as a guide, assistant, and for significant code generation. All final creative decisions and deployments reflect my own work and intentions.</p>
<p>© Cormac Farrelly 2024</p>
</div>
</div>
</div>
</div>
</body>
</html>