Skip to content

Commit 23a81b2

Browse files
authored
Add List View (#13)
* Update Config * Add Theme Switcher * Update Table * Add datalist * Update DT Language Options
1 parent df5cf5d commit 23a81b2

File tree

10 files changed

+415
-138
lines changed

10 files changed

+415
-138
lines changed

src/_layouts/default.html

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
<meta name="robots" content="noindex, nofollow">
1111
{% endif %}
1212

13+
<meta name="darkreader-lock">
14+
1315
<meta name="author" content="{{ site.author }}"/>
1416
<meta name="title" content="{{ site.site_name }} - {{ page.title }}"/>
1517
<meta name="description" content="{{ site.site_name }} - {{ page.description }}"/>
@@ -37,7 +39,7 @@
3739
{% if page.title == 'Home' %}
3840
<link rel="stylesheet" href="{{ "/css/index.css" | relative_url }}">
3941
<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 %}
42+
<link rel="stylesheet" href="https://cdn.datatables.net/2.1.2/css/dataTables.bootstrap5.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
4143
{% endif %}
4244
{% if page.title == 'Feedback' %}
4345
<link rel="stylesheet" href="{{ "/css/feedback.css" | relative_url }}">
@@ -49,16 +51,16 @@
4951
<div id="tsparticles"></div>
5052

5153
<header>
52-
<nav class="navbar navbar-expand-sm bg-body-tertiary mb-2" aria-label="Primary Navigation">
54+
<nav aria-label="Primary Navigation" class="navbar navbar-expand-sm bg-body-tertiary mb-2">
5355
<div class="container-fluid">
5456
<a class="px-2" href="{{ "/" | relative_url }}">
55-
<img src="{{ "/media/logo.png" | relative_url }}" width="30" height="30" alt="logo" class="my-auto"></a>
57+
<img alt="logo" src="{{ "/media/logo.png" | relative_url }}" width="30" height="30" class="my-auto"></a>
5658
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
5759
data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
5860
aria-expanded="false" aria-label="Toggle navigation">
5961
<span class="navbar-toggler-icon"></span>
6062
</button>
61-
<div class="collapse navbar-collapse me-auto " id="navbarSupportedContent">
63+
<div class="collapse navbar-collapse me-auto" id="navbarSupportedContent">
6264
<ul class="navbar-nav me-auto">
6365
{% for item in site.menu %}
6466
<li class="nav-item">
@@ -67,19 +69,35 @@
6769
{{ item.name }}{% if item.external %} <i class="fa-solid fa-arrow-up-right-from-square fa-sm"></i>{% endif %}</a>
6870
</li>
6971
{% endfor %}
70-
</ul>
72+
</ul> <!-- main navigation -->
7173
<ul class="navbar-nav nav-icons d-flex flex-row">
74+
7275
<li class="nav-item">
7376
<a class="nav-link hvr-grow-lg" href="{{ site.discord_invite }}" target="_blank" rel="noopener">
7477
<i class="fa-brands fa-discord fa-xl"></i></a>
7578
</li>
79+
7680
<li class="nav-item">
7781
<a class="nav-link hvr-grow-lg" href="{{ site.github_url }}" target="_blank" rel="noopener">
7882
<i class="fa-brands fa-github fa-xl"></i></a>
7983
</li>
80-
</ul>
81-
</div>
82-
</div>
84+
85+
<li class="nav-item dropdown">
86+
<a class="nav-link hvr-grow ms-1" id="bd-theme-disabled" role="button" data-bs-toggle="dropdown" aria-expanded="false" style="min-width: 56px;">
87+
<i id="theme-icon" class="fa-solid fa-circle-half-stroke fa-lg" style="min-width: 20px;"></i> <i class="fa-solid fa-caret-down fa-xs mx-1"></i></a>
88+
<ul class="dropdown-menu auto dropdown-menu-end" aria-labelledby="bd-theme-disabled">
89+
<li><button class="dropdown-item" data-bs-theme-value="dark" aria-pressed="false">
90+
<i class="fa-regular fa-moon" style="min-width: 16px;"></i> <span class="ms-3">Dark</span></button></li>
91+
<li><button class="dropdown-item" data-bs-theme-value="light" aria-pressed="false">
92+
<i class="fa-solid fa-sun" style="min-width: 16px;"></i> <span class="ms-3">Light</span></button></li>
93+
<li><button class="dropdown-item" data-bs-theme-value="auto" aria-pressed="false">
94+
<i class="fa-solid fa-circle-half-stroke" style="min-width: 16px;"></i> <span class="ms-3">Auto</span></button></li>
95+
</ul>
96+
</li>
97+
98+
</ul> <!-- icons -->
99+
</div> <!-- navbar -->
100+
</div> <!-- container -->
83101
</nav>
84102
</header>
85103

src/css/feedback.css

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,31 @@ body {
1414
}
1515

1616
[data-bs-theme='dark'] #content-wrapper {
17-
background-color: rgba(0 0 0 / 50%);
17+
background-color: rgba(var(--bs-black-rgb), 0.5);
1818
filter: drop-shadow(15px 15px 12px #000000);
1919
}
2020
[data-bs-theme='light'] #content-wrapper {
21-
background-color: rgba(255 255 255 / 60%);
21+
background-color: rgba(var(--bs-white-rgb), 0.5);
2222
}
2323

2424
[data-bs-theme='dark'] .form-control {
25-
background-color: rgba(0 0 0 / 50%);
25+
background-color: rgba(var(--bs-black-rgb), 0.5);
2626
}
2727
[data-bs-theme='light'] .form-control {
28-
background-color: rgba(255 255 255 / 50%);
28+
background-color: rgba(var(--bs-white-rgb), 0.5);
2929
}
3030

3131
[data-bs-theme='dark'] .navbar,
32-
[data-bs-theme='dark'] .footer {
32+
[data-bs-theme='dark'] .footer,
33+
[data-bs-theme='dark'] .dropdown-menu {
3334
backdrop-filter: blur(6px);
34-
background-color: rgba(0 0 0 / 50%) !important;
35+
background-color: rgba(var(--bs-black-rgb), 0.5) !important;
36+
z-index: 1;
3537
}
3638
[data-bs-theme='light'] .navbar,
37-
[data-bs-theme='light'] .footer {
39+
[data-bs-theme='light'] .footer,
40+
[data-bs-theme='light'] .dropdown-menu {
3841
backdrop-filter: blur(6px);
39-
background-color: rgba(255 255 255 / 50%) !important;
42+
background-color: rgba(var(--bs-white-rgb), 0.5) !important;
43+
z-index: 1;
4044
}

src/css/index.css

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,12 @@
1010

1111
pointer-events: none;
1212
user-select: none;
13-
}
14-
15-
[data-bs-theme='dark'] #scroll-down {
16-
text-shadow:
17-
0 0 3px #000,
18-
0 0 6px #000,
19-
0 0 9px #000,
20-
0 0 12px #000;
21-
}
2213

23-
[data-bs-theme='light'] #scroll-down {
2414
text-shadow:
25-
0 0 3px #f8f9fa,
26-
0 0 6px #f8f9fa,
27-
0 0 9px #f8f9fa,
28-
0 0 12px #f8f9fa;
15+
0 0 3px var(--bs-body-bg),
16+
0 0 6px var(--bs-body-bg),
17+
0 0 9px var(--bs-body-bg),
18+
0 0 12px var(--bs-body-bg);
2919
}
3020

3121
.bounce {
@@ -43,3 +33,9 @@
4333
bottom: 0;
4434
}
4535
}
36+
37+
@media (min-width: 768px) {
38+
.dt-paging {
39+
margin-right: 30px !important;
40+
}
41+
}

src/html/about.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,29 @@ <h1 class="animate__animated animate__zoomIn"><i class="fa-regular fa-address-ca
3636
<a href="https://github.com/smashedr" class="text-decoration-none" target="_blank" rel="noopener">
3737
<picture>
3838
<source
39-
srcset="https://github-readme-stats.vercel.app/api?username=smashedr&theme=dark&show_icons=true&hide_rank=true&show=reviews&card_width=350"
39+
srcset="https://github-readme-stats.cssnr.com/?username=smashedr&theme=dark&show_icons=true&hide_rank=true&show=reviews&card_width=350"
4040
media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)"
4141
/>
4242
<source
43-
srcset="https://github-readme-stats.vercel.app/api?username=smashedr&theme=default&show_icons=true&hide_rank=true&show=reviews&card_width=350"
43+
srcset="https://github-readme-stats.cssnr.com/?username=smashedr&theme=default&show_icons=true&hide_rank=true&show=reviews&card_width=350"
4444
media="(prefers-color-scheme: light)"
4545
/>
46-
<img alt="GitHub Stats Dynamic Display" src="https://github-readme-stats.vercel.app/api?username=smashedr&show_icons=true&hide_rank=true&show=reviews&card_width=350" />
46+
<img alt="GitHub Stats Dynamic Display" src="https://github-readme-stats.cssnr.com/?username=smashedr&show_icons=true&hide_rank=true&show=reviews&card_width=350" />
4747
</picture>
4848
</a>
4949
</div><!-- flex item -->
5050
<div class="me-md-3">
5151
<a href="https://github.com/smashedr" class="text-decoration-none" target="_blank" rel="noopener">
5252
<picture>
5353
<source
54-
srcset="https://github-readme-stats.vercel.app/api/top-langs/?username=smashedr&theme=dark&layout=donut"
54+
srcset="https://github-readme-stats.cssnr.com/top-langs/?username=smashedr&theme=dark&layout=donut"
5555
media="(prefers-color-scheme: dark), (prefers-color-scheme: no-preference)"
5656
/>
5757
<source
58-
srcset="https://github-readme-stats.vercel.app/api/top-langs/?username=smashedr&theme=default&layout=donut"
58+
srcset="https://github-readme-stats.cssnr.com/top-langs/?username=smashedr&theme=default&layout=donut"
5959
media="(prefers-color-scheme: light)"
6060
/>
61-
<img alt="Top Languages Dynamic Display" src="https://github-readme-stats.vercel.app/api/top-langs/?username=smashedr&layout=donut" />
61+
<img alt="Top Languages Dynamic Display" src="https://github-readme-stats.cssnr.com/top-langs/?username=smashedr&layout=donut" />
6262
</picture>
6363
</a>
6464
</div><!-- flex item -->

src/html/feedback.html

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,23 @@
1313
<h1 class="align-middle mb-0">{{ site.site_name }} {{ page.title }}</h1>
1414
</div>
1515
<p class="text-center lead">
16-
Provide General Feedback or Ask a Question.
16+
Provide General Feedback or Suggestions.
1717
</p>
1818
<form id="uninstall-form">
1919
<input type="hidden" value="{{ site.relay_url }}" id="relay-url" hidden="hidden">
2020

21-
<select id="app-list" class="form-select form-select-lg form-control mb-3" aria-label="Select Feedback Reason">
22-
<option value="General Feedback" selected>Select an Application (Optional)</option>
23-
</select>
21+
<label for="selected-app" class="form-label visually-hidden">Datalist example</label>
22+
<input id="selected-app" class="form-control" list="app-list" placeholder="Subject or Application. Type to Search...">
23+
<datalist id="app-list"></datalist>
24+
25+
{% comment %}<select id="app-list" class="form-select form-select-lg form-control mb-3" aria-label="Select Feedback Reason">{% endcomment %}
26+
{% comment %}<option value="General Feedback" selected>Select an Application (Optional)</option>{% endcomment %}
27+
{% comment %}</select>{% endcomment %}
2428

2529
<div class="my-2">
2630
<label for="feedback-text" class="form-label visually-hidden">Uninstall Feedback</label>
2731
<textarea class="form-control" id="feedback-text" rows="5" maxlength="1000"
28-
placeholder="Questions, Comments, Concerns, etc..." autofocus></textarea>
32+
placeholder="Feedback, Comments, Concerns, etc..." autofocus></textarea>
2933
<span id="inputCounter" class="float-end label label-default"><span id="input-count">0</span> / 1000</span>
3034
</div>
3135
<button id="submit-btn" class="btn btn-success w-100" type="submit">

src/html/index.html

Lines changed: 62 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
---
77

88
<div class="container-fluid">
9+
10+
<div class="float-end" style="z-index: 9; position: relative;">
11+
<button type="button" class="btn btn-outline-secondary view-toggle" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-trigger="hover"
12+
data-bs-title="Card View" id="cards-view" data-view="cards">
13+
<i class="fa-solid fa-table"></i>
14+
</button>
15+
<button type="button" class="btn btn-outline-secondary view-toggle" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-trigger="hover"
16+
data-bs-title="List View<br>(Beta)" data-bs-html="true" id="list-view" data-view="list">
17+
<i class="fa-solid fa-table-list"></i>
18+
</button>
19+
</div>
20+
921
<h1 class="animate__animated animate__zoomIn"><i class="fa-brands fa-github me-2"></i> {{ site.site_name }}</h1>
1022

1123
<p class="lead">
@@ -28,28 +40,51 @@ <h1 class="animate__animated animate__zoomIn"><i class="fa-brands fa-github me-2
2840
</p>
2941
</div>
3042

31-
<p>
32-
<a href="#web-extensions" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
33-
Web Extensions</a> &bull;
34-
<a href="#web-apps" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
35-
Web Apps</a> &bull;
36-
<a href="#github-actions" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
37-
GitHub Actions</a> &bull;
38-
<a href="#other-software" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
39-
Other Software</a>
40-
</p>
43+
<div id="cards" class="d-none">
44+
<p>
45+
<a href="#web-extensions" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
46+
Web Extensions</a> &bull;
47+
<a href="#web-apps" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
48+
Web Apps</a> &bull;
49+
<a href="#github-actions" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
50+
GitHub Actions</a> &bull;
51+
<a href="#other-software" class="link-body-emphasis link-offset-1 link-underline-opacity-50 link-underline-opacity-75-hover d-inline-block">
52+
Other Software</a>
53+
</p>
4154

42-
<h2 id="web-extensions">Web Extensions</h2>
43-
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="webExtensions"></div>
55+
<h2 id="web-extensions">Web Extensions</h2>
56+
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="webExtensions"></div>
4457

45-
<h2 id="web-apps" class="" data-aos="zoom-in">Web Apps</h2>
46-
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="webApps"></div>
58+
<h2 id="web-apps" class="" data-aos="zoom-in">Web Apps</h2>
59+
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="webApps"></div>
4760

48-
<h2 id="github-actions" class="" data-aos="zoom-in">GitHub Actions</h2>
49-
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="githubActions"></div>
61+
<h2 id="github-actions" class="" data-aos="zoom-in">GitHub Actions</h2>
62+
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="githubActions"></div>
5063

51-
<h2 id="other-software" class="" data-aos="zoom-in">Other Software</h2>
52-
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="otherSoftware"></div>
64+
<h2 id="other-software" class="" data-aos="zoom-in">Other Software</h2>
65+
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-3 mb-4" id="otherSoftware"></div>
66+
</div>
67+
<div id="table" class="d-none mb-1">
68+
<table class="table" id="data-table">
69+
<thead>
70+
<tr>
71+
<th scope="col"></th>
72+
<th scope="col">Name</th>
73+
<th scope="col">Description</th>
74+
<th scope="col"></th>
75+
<th scope="col"></th>
76+
</tr>
77+
</thead>
78+
<tbody>
79+
{% comment %}<tr>{% endcomment %}
80+
{% comment %}<th scope="row">1</th>{% endcomment %}
81+
{% comment %}<td>Mark</td>{% endcomment %}
82+
{% comment %}<td>Otto</td>{% endcomment %}
83+
{% comment %}<td>@mdo</td>{% endcomment %}
84+
{% comment %}</tr>{% endcomment %}
85+
</tbody>
86+
</table>
87+
</div>
5388

5489
</div> <!-- container -->
5590

@@ -81,10 +116,19 @@ <h4 class="card-title">
81116
<i class="devicon-python-plain colored" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Python"></i>
82117
<i class="devicon-javascript-plain colored" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="JavaScript"></i>
83118
<i class="devicon-typescript-plain colored" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="TypeScript"></i>
119+
<i class="devicon-docker-plain" data-bs-toggle="tooltip" data-bs-placement="bottom" data-bs-title="Docker"></i>
120+
84121
</div> <!-- clone -->
85122

86123
{% comment %}<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.2/anime.min.js" integrity="sha512-aNMyYYxdIxIaot0Y1/PLuEu3eipGCmsEUBrUq+7aVyPGMFH8z0eTP0tkqAvv34fzN6z+201d3T8HPb1svWSKHQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>{% endcomment %}
87124
{% comment %}<script src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/2.0.8/ScrollMagic.min.js" integrity="sha512-8E3KZoPoZCD+1dgfqhPbejQBnQfBXe8FuwL4z/c8sTrgeDMFEnoyTlH3obB4/fV+6Sg0a0XF+L/6xS4Xx1fUEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>{% endcomment %}
125+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
126+
127+
{% comment %}<script type="text/javascript" src="https://code.jquery.com/jquery-3.7.1.js"></script>{% endcomment %}
128+
<script type="text/javascript" src="https://cdn.datatables.net/2.1.2/js/dataTables.js"></script>
129+
<script type="text/javascript" src="https://cdn.datatables.net/2.1.2/js/dataTables.bootstrap5.js"></script>
130+
<script type="text/javascript" src="https://cdn.datatables.net/responsive/3.0.2/js/dataTables.responsive.js"></script>
131+
<script type="text/javascript" src="https://cdn.datatables.net/responsive/3.0.2/js/responsive.dataTables.js"></script>
88132

89133
<script type="text/javascript" src="{{ "/js/config.js" | relative_url }}"></script>
90134
<script type="text/javascript" src="{{ "/js/index.js" | relative_url }}"></script>

0 commit comments

Comments
 (0)