Skip to content

Commit 206b982

Browse files
Refactor project links into modal format
1 parent 41fc3dc commit 206b982

File tree

1 file changed

+41
-3
lines changed

1 file changed

+41
-3
lines changed

projects.md

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,44 @@ author_profile: true
88

99
## Featured Projects
1010

11-
- [Micro Chat](https://microbitcoder652.github.io/projects/micro-chat/)
12-
- [Flappy Bird](https://microbitcoder652.github.io/projects/flappy-bird/)
13-
- [Outdoor Kit](https://microbitcoder652.github.io/projects/outdoor-kit/)
11+
<div class="project-cards">
12+
<a href="#" class="card" onclick="openModal('microchat-modal')">Micro Chat</a>
13+
<a href="#" class="card" onclick="openModal('flappybird-modal')">Flappy Bird</a>
14+
<a href="#" class="card" onclick="openModal('outdoorkit-modal')">Outdoor Kit</a>
15+
</div>
16+
17+
<div id="microchat-modal" class="modal">
18+
<div class="modal-content">
19+
<span class="close" onclick="closeModal('microchat-modal')">&times;</span>
20+
<h2>Micro Chat</h2>
21+
<p>A micro:bit-powered messaging system using the built-in radio. This is only compatible with v2.</p>
22+
<a href="https://github.com/microbitcoder652/microbit-v2-micro-chat">View on GitHub</a>
23+
</div>
24+
</div>
25+
26+
<div id="microchat-modal" class="modal">
27+
<div class="modal-content">
28+
<span class="close" onclick="closeModal('microchat-modal')">&times;</span>
29+
<h2>Flappy Bird</h2>
30+
<p>A micro:bit-powered recreation of Flappy Bird.</p>
31+
<a href="https://github.com/microbitcoder652/microbit-v2-micro-chat">View on GitHub</a>
32+
</div>
33+
</div>
34+
35+
<div id="microchat-modal" class="modal">
36+
<div class="modal-content">
37+
<span class="close" onclick="closeModal('microchat-modal')">&times;</span>
38+
<h2>Outdoor Kit</h2>
39+
<p>A all-in-one kit for outdoors. This is only compatible with v2.</p>
40+
<a href="https://github.com/microbitcoder652/microbit-v2-micro-chat">View on GitHub</a>
41+
</div>
42+
</div>
43+
44+
<script>
45+
function openModal(id) {
46+
document.getElementById(id).style.display = "block";
47+
}
48+
function closeModal(id) {
49+
document.getElementById(id).style.display = "none";
50+
}
51+
</script>

0 commit comments

Comments
 (0)