Skip to content

Commit 5a71fa1

Browse files
Website Updates
- Add fontawesome icon library - Add "see inside" button on project pages - Add icons to both buttons on project pages - Add username on each project card in the gallery
1 parent 678a6f7 commit 5a71fa1

File tree

4 files changed

+5604
-3
lines changed

4 files changed

+5604
-3
lines changed

docs/projects/index.html

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
<base href="/BlockifyVR/">
88
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
99
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
10+
<script defer src="resources/fontawesome/brands.js"></script>
11+
<script defer src="resources/fontawesome/solid.js"></script>
12+
<script defer src="resources/fontawesome/fontawesome.js"></script>
1013
<link rel="icon" type="image/svg+xml" href="resources/favicon.svg">
1114
<link rel="stylesheet" href="resources/styles.css">
1215
<script>
@@ -68,7 +71,8 @@ <h1>Project Gallery</h1>
6871
<img src="projects/${element}thumbnail.png" class="card-img-top" style="padding: 10px; border-radius: 15px">
6972
<div class="card-body" style="padding-top: 6px;">
7073
<h5 class="card-title text-truncate" style="margin-bottom: 0; color: darkgreen;">${element.slice(element.indexOf("/") + 1, element.lastIndexOf("/"))}</h5>
71-
</div>
74+
<p style="margin: 0;">${element.slice(0, element.indexOf("/"))}</p>
75+
</div>
7276
</div>
7377
</a>
7478
</div>`;
@@ -83,8 +87,9 @@ <h5 class="card-title text-truncate" style="margin-bottom: 0; color: darkgreen;"
8387
const html = `
8488
<h1>${data[id].slice(data[id].indexOf("/") + 1, data[id].lastIndexOf("/"))}</h1>
8589
<h5 style="margin: 0; padding-bottom: 25px">${data[id].slice(0, data[id].indexOf("/"))}</h5>
86-
<div style="padding-bottom: 25px">
87-
<a href="${project}" class="btn btn-outline-primary" download>Download Project</a>
90+
<div style="padding-bottom: 25px;">
91+
<a href="${project}" class="btn btn-outline-primary" download><i style="padding-right: 5px;" class="fa-solid fa-download"></i> Download Project</a>
92+
<a href="https://turbowarp.org/editor?project_url=https://brackets-coder.github.io/BlockifyVR/${project}" target="_blank" class="btn btn-outline-primary">See Inside <i style="padding-left: 5px;" class="fa-solid fa-up-right-from-square"></i></a>
8893
</div>
8994
<iframe src="https://turbowarp.org/embed?project_url=https://brackets-coder.github.io/BlockifyVR/${project}" allow="xr-spatial-tracking; vr; webxr; accelerometer; gyroscope; magnetometer" allowfullscreen allowvr="yes" frameborder="0"></iframe>`;
9095
document.getElementById("projectContainer").appendChild(document.createRange().createContextualFragment(html));

0 commit comments

Comments
 (0)