Skip to content

Commit 42fb04c

Browse files
authored
Add Devicon (#11)
* Add Devicon * Cleanup
1 parent 10fcf42 commit 42fb04c

File tree

5 files changed

+49
-8
lines changed

5 files changed

+49
-8
lines changed

src/_layouts/default.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636

3737
{% if page.title == 'Home' %}
3838
<link rel="stylesheet" href="{{ "/css/index.css" | relative_url }}">
39+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/devicon/2.16.0/devicon.min.css" integrity="sha512-BlFCHJWngPEHme4TwlEob6dPLfoNaQBTTISPwr4344nxR353w2vgGZ7GiSadbbeR20cJeeM0u1I2lAZuIZ1aOQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
40+
{% comment %}<link rel="stylesheet" type='text/css' href="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/devicon.min.css" />{% endcomment %}
3941
{% endif %}
4042
{% if page.title == 'Feedback' %}
4143
<link rel="stylesheet" href="{{ "/css/feedback.css" | relative_url }}">

src/css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ body {
66

77
#back-to-top {
88
position: fixed;
9-
bottom: 64px;
10-
right: 20px;
9+
bottom: 50px;
10+
right: 10px;
1111
display: none;
1212
z-index: 3;
1313
}

src/html/index.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,13 @@ <h4 class="card-title">
6868
<div class="card-footer"></div>
6969
</div>
7070
</div>
71-
<i class="fa-brands fa-js" title="JavaScript"></i>
72-
<i class="fa-brands fa-python" title="Python"></i>
73-
<i class="fa-solid fa-terminal" title="Shell Script"></i>
71+
{% comment %}<i class="fa-brands fa-js" title="JavaScript"></i>{% endcomment %}
72+
{% comment %}<i class="fa-brands fa-python" title="Python"></i>{% endcomment %}
73+
{% comment %}<i class="fa-solid fa-terminal" title="Shell Script"></i>{% endcomment %}
74+
<i class="devicon-powershell-plain" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Shell Script"></i>
75+
<i class="devicon-python-plain colored" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Python"></i>
76+
<i class="devicon-javascript-plain colored" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="JavaScript"></i>
77+
<i class="devicon-typescript-plain colored" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="TypeScript"></i>
7478
</div> <!-- d-none clone -->
7579

7680
<div class="text-center bounce d-none" id="scroll-down">

src/js/config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,33 @@ const githubActions = [
330330
},
331331
fa: 'faPython',
332332
},
333+
{
334+
name: 'JavaScript Template Action',
335+
url: 'https://github.com/smashedr/js-test-action',
336+
description: 'Template for JavaScript Actions.',
337+
links: {
338+
GitHub: 'https://github.com/smashedr/js-test-action',
339+
},
340+
fa: 'faJs',
341+
},
342+
{
343+
name: 'TypeScript Template Action',
344+
url: 'https://github.com/smashedr/ts-test-action',
345+
description: 'Template for TypeScript Actions.',
346+
links: {
347+
GitHub: 'https://github.com/smashedr/ts-test-action',
348+
},
349+
fa: 'faTs',
350+
},
351+
{
352+
name: 'Python Template Action',
353+
url: 'https://github.com/smashedr/py-test-action',
354+
description: 'Template for Python Actions.',
355+
links: {
356+
GitHub: 'https://github.com/smashedr/py-test-action',
357+
},
358+
fa: 'faPython',
359+
},
333360
]
334361
const otherSoftware = [
335362
{

src/js/index.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ const actionsContainer = document.getElementById('actions-container')
99
const otherContainer = document.getElementById('other-container')
1010

1111
const faIcons = {
12-
faPython: document.querySelector('.clone .fa-python'),
13-
faJs: document.querySelector('.clone .fa-js'),
14-
faShell: document.querySelector('.clone .fa-terminal'),
12+
faPython: document.querySelector('.clone .devicon-python-plain'),
13+
faJs: document.querySelector('.clone .devicon-javascript-plain'),
14+
faTs: document.querySelector('.clone .devicon-typescript-plain'),
15+
faShell: document.querySelector('.clone .devicon-powershell-plain'),
1516
}
1617

1718
// // Scroll Handlers
@@ -74,6 +75,13 @@ async function domContentLoaded() {
7475
checkScroll()
7576
}
7677

78+
document
79+
.querySelectorAll('[data-bs-toggle="tooltip"]')
80+
.forEach((el) => new bootstrap.Tooltip(el))
81+
// document
82+
// .querySelectorAll('[data-bs-toggle="popover"]')
83+
// .forEach((el) => new bootstrap.Popover(el))
84+
7785
AOS.init({ disable: 'mobile' })
7886
// AOS.init()
7987

0 commit comments

Comments
 (0)