Skip to content

Commit 5935b5b

Browse files
committed
Redesign UI and add HTML partials
1 parent 6b65d98 commit 5935b5b

File tree

6 files changed

+12
-149
lines changed

6 files changed

+12
-149
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
<load src="partials/toolbox/result.html" />
1515

1616
<div class="tab">
17-
<button class="tablinks" data-name="presets-section" id="defaultOpenTag">Presets</button>
17+
<!-- <button class="tablinks" data-name="presets-section" id="defaultOpenTag">Presets</button> -->
1818
<button class="tablinks" data-name="main-section" id="defaultOpenTag">Main</button>
1919
<button class="tablinks" data-name="background-section">Background</button>
2020
<button class="tablinks" data-name="decorations-section">Decorations</button>
2121
</div>
2222

2323
<div class="toolbox-tools scrollable">
24-
<load src="partials/toolbox/presets.html" />
24+
<!-- <load src="partials/toolbox/presets.html" /> -->
2525
<load src="partials/toolbox/main.html" />
2626
<load src="partials/toolbox/background.html" />
2727
<load src="partials/toolbox/decorations.html" />

package-lock.json

Lines changed: 0 additions & 134 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"devDependencies": {
2222
"sass": "^1.89.2",
2323
"vite": "^7.0.3",
24-
"vite-plugin-handlebars": "^1.5.0",
2524
"vite-plugin-html-inject": "^1.1.2"
2625
},
2726
"dependencies": {

partials/toolbox/result.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<div class="result-box">
2+
<div class="header-image-container">
3+
<div id="github-header-image">
4+
<div class="title" style="font-size: 40px;">Hey! I am ...</div>
5+
<div class="subtitle" style="font-size: 20px; font-family: 'Kalam';">Fullstack developer </div>
6+
<div class="img-decoration-container"></div>
7+
</div>
8+
</div>
29
<div class="options-container">
310
<div>
411
<div role="button" class="dark-mode-button">
@@ -16,11 +23,4 @@
1623
</div>
1724
<!-- <button type="button" class="log-theme-button" style="background-color: blueviolet;">Log Theme</button> -->
1825
</div>
19-
<div class="header-image-container">
20-
<div id="github-header-image">
21-
<div class="title" style="font-size: 40px;">Hey! I am ...</div>
22-
<div class="subtitle" style="font-size: 20px; font-family: 'Kalam';">Fullstack developer </div>
23-
<div class="img-decoration-container"></div>
24-
</div>
25-
</div>
2626
</div>

styles/toolbox-main.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.toolbox-container {
22
.result-box {
33
// height: 300px;
4-
padding: 1rem 2rem 2rem 2rem;
4+
padding: 2rem 2rem 0.5rem 2rem;
55
background: var(--github-dark-mode-color);
66
transition: 0.5s ease;
77
user-select: none;
@@ -67,7 +67,7 @@
6767
gap: 35px;
6868
justify-content: space-between;
6969
// flex-wrap: wrap;
70-
padding: 5px 0;
70+
padding: 0.5rem 0 0 0;
7171

7272
>div:first-child {
7373
display: flex;
@@ -233,7 +233,7 @@
233233
}
234234

235235
.result-box {
236-
padding: 1rem 1rem 1.5rem 1rem;
236+
padding: 1rem 1rem 0.5rem 1rem;
237237

238238
#github-header-image {
239239
height: 250px;

vite.config.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { defineConfig } from 'vite';
22
import injectHTML from 'vite-plugin-html-inject';
3-
import handlebars from 'vite-plugin-handlebars';
4-
import { resolve } from 'path';
53

64
export default defineConfig({
75
build: {

0 commit comments

Comments
 (0)