Skip to content

Commit 678b67d

Browse files
committed
get back styles
1 parent 32c2e52 commit 678b67d

3 files changed

Lines changed: 35 additions & 8 deletions

File tree

src/routes/+layout.svelte

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,28 @@
6464
href="{assets}/favicon/site.webmanifest"
6565
/>
6666

67+
<!-- Bootstrap CSS -->
68+
<link
69+
rel="stylesheet"
70+
href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/css/bootstrap.min.css"
71+
integrity="sha384-LN+7fdVzj6u52u30Kp6M/trliBMCMKTyK833zpbD+pXdCLuTusPj697FH4R/5mcr"
72+
crossorigin="anonymous" />
6773

74+
<!-- Bootstrap Icons -->
75+
<link
76+
rel="stylesheet"
77+
href="https://bootswatch.com/_vendor/bootstrap-icons/font/bootstrap-icons.min.css"
78+
integrity="sha384-CK2SzKma4jA5H/MXDUU7i1TqZlCFaD4T01vtyDFvPlD97JQyS+IsSh1nI2EFbpyk"
79+
crossorigin="anonymous"
80+
/>
6881

82+
<!-- Bootswatch: Darkly theme -->
83+
<link
84+
rel="stylesheet"
85+
href="https://bootswatch.com/5/darkly/bootstrap.css"
86+
integrity="sha384-mXM+8P9BUwTXMBS6pzZaBva0g/sZsdn7ZdBimWWpF/1K2kVhkyjQrBznOTf31ui7"
87+
crossorigin="anonymous" />
88+
6989
<!-- Preload for faster execution -->
7090
<link
7191
rel="preload"
@@ -78,6 +98,13 @@
7898
src="{base}/js/theme-loader.js"
7999
async>
80100
</script>
101+
102+
<!-- Bootstrap JS -->
103+
<script
104+
src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.7/dist/js/bootstrap.min.js"
105+
integrity="sha384-7qAoOXltbVP82dhxHAUje59V5r2YsVfBafyUDxEdApLPmcdhBPg1DKg1ERo0BZlK"
106+
crossorigin="anonymous">
107+
</script>
81108

82109
</svelte:head>
83110

src/routes/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { base } from '$app/paths';
33
</script>
44

5-
<section class="" id="home">
5+
<section class="d-flex flex-column align-items-center" id="home">
66
<p>mRemoteNG (Multi-Remote Next Generation), abbreviated as mR, is an open-source, tabbed remote connections manager for Windows.</p>
77
<p>It allows you to view all of your remote connections in a simple yet powerful interface and supports multiple protocols including RDP, VNC, SSH, HTTP/S and more.</p>
88
<p>

static/js/theme-loader.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
document.documentElement.setAttribute('data-bs-theme', theme);
66

77
if (theme === 'dark') {
8-
const darkThemeLink = document.createElement('link');
9-
darkThemeLink.rel = 'stylesheet';
10-
darkThemeLink.href = '/css/darkly.css';
11-
darkThemeLink.integrity = 'sha384-mXM+8P9BUwTXMBS6pzZaBva0g/sZsdn7ZdBimWWpF/1K2kVhkyjQrBznOTf31ui7';
12-
darkThemeLink.crossOrigin = 'anonymous';
13-
darkThemeLink.setAttribute('data-theme', 'dark');
14-
document.head.appendChild(darkThemeLink);
8+
//const darkThemeLink = document.createElement('link');
9+
//darkThemeLink.rel = 'stylesheet';
10+
//darkThemeLink.href = '/css/darkly.css';
11+
//darkThemeLink.integrity = 'sha384-mXM+8P9BUwTXMBS6pzZaBva0g/sZsdn7ZdBimWWpF/1K2kVhkyjQrBznOTf31ui7';
12+
//darkThemeLink.crossOrigin = 'anonymous';
13+
//darkThemeLink.setAttribute('data-theme', 'dark');
14+
//document.head.appendChild(darkThemeLink);
1515
}
1616
} catch (e) {
1717
console.error('Theme error:', e);

0 commit comments

Comments
 (0)