-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindowscontent.js
More file actions
162 lines (157 loc) · 8.55 KB
/
windowscontent.js
File metadata and controls
162 lines (157 loc) · 8.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
import { getDateStr } from "./status.js"
const getPanelHtml = (title, {fullscreenBtn} = {}) => `
<div class="window-panel">
<p class="title"><span class="content" title="${title}">${title}</span></p>
<div class="buttons">
${fullscreenBtn ? '<button class="fullscreen" title="Fullscreen"><i class="bi bi-window-fullscreen"></i></button>' : ''}
<button class="close" title="Close"><i class="bi bi-x-lg"></i></button>
</div>
</div>
`
export class AppWindowHTMLContent {
static ABOUT_ME = `
<section id="about-me" class="window">
${getPanelHtml('About me', {
fullscreenBtn: false
})}
<div class="header">
<img class="profile-image" src="./images/profileImage.png" alt="Profile Image">
<div>
<h1 class="profile-name" translate="no">NDagger</h1>
<h2 class="subtitle">The low tier progarmer</h2>
</div>
</div>
<article class="content">
<p>Hi, I'm NDagger or NDigger or someone else.</p>
<p>I'm the child who is working on a factory and trying to create pages with some functionality.</p>
<p>Things that I work with for a long time are programming and drawing, you can see more details below.</p>
<p>I have been programming since I was 18 and continue to do so to this day. I started programming out of sheer boredom and an important piece of advice. It turned out to be much more interesting than I thought. Unfortunately, learning libraries for programming languages is tens of times more difficult for me, but I try.</p>
<p>I have used programming to create games, create pages, and create different content for games.</p>
<p>I also like or liked drawing, cool right?</p>
</article>
</section>
`
static SKILLS = `
<section id="skills" class="window">
${getPanelHtml('Skills')}
<article class="content">
<h2>Web Development</h2>
<p>Most of pages I made don't use any libraries because I don't see much of need in them for personal projects.</p>
<p>But there are exceptions! Drawing meshes with pure JavaScript is a complex task so I used pixi.js meshes for that.</p>
<p>I had practiced both frontend and backend sides. This page is an exception of the good adaptive frontend design I made.</p>
<p>When I tried to create my custom app I used various libraries and frameworks which do some complex work or simplify the development process of complex stuff to me.</p>
<p>I had worked with basics of React, express.js, various node libraries, Vite, pixi.js.</p>
<p>Several hosted pages you can see in the creation tab.</p>
<p>The page you see now also does not use any libraries at all.</p>
<div class="tools-categories">
<div>
<h3>Tools I use</h3>
<div translate="no" class="tools-container">
<span class="hover-sound">Adobe Illustrator</span>
<span class="hover-sound">Adobe Photoshop</span>
<span class="hover-sound">Clip Studio Paint X</span>
<span class="hover-sound">FL Studio</span>
<span class="hover-sound">Visual Studio Code</span>
<span class="hover-sound">Visual Studio</span>
<span class="hover-sound">Postgre SQL</span>
<span class="hover-sound">Git</span>
</div>
</div>
<div>
<h3>Programming languages I used</h3>
<div id="pl-container" translate="no" class="tools-container">
<span class="hover-sound">Python</span>
<span class="hover-sound">Java Script</span>
<span class="hover-sound">C++</span>
<span class="hover-sound">GDScript</span>
<span class="hover-sound">Bash</span>
<span class="hover-sound">OpenGL Shading Language</span>
</div>
</div>
</div>
<h2>Drawing</h2>
<p>I have been drawing since I was 14. I can't say that I have learned anything in 4 years. For me, drawing is a simple way to relax and maybe enjoy the end result.</p>
<div class="illustrations-container">
<img class="open-in-window-img open-in-window hover-sound" src="images/illustrations/Без названия281-1.png" alt="illustration">
<img class="open-in-window-img open-in-window hover-sound" src="images/illustrations/Без названия325_20240522013505.jpg" alt="illustration">
<img class="open-in-window-img open-in-window hover-sound" src="images/illustrations/Без названия459-3.jpg" alt="illustration">
<img class="open-in-window-img open-in-window hover-sound" src="images/illustrations/Без названия467_20250416203247.png" alt="illustration">
</div>
</div>
</article>
`
static LINKS = `
<section id="links" class="window">
${getPanelHtml('Links')}
<article class="content">
<div class="centered">
<div class="flex-links">
<a title="Redirect" class="gold-btn hover-sound" href="https://www.youtube.com/@scout1495" target="_blank">
<i class="bi bi-youtube"></i>
<p translate="no">Youtube</p>
</a>
<a title="Redirect" class="gold-btn hover-sound" href="https://github.com/NDigger" target="_blank">
<i class="bi bi-github"></i>
<p translate="no">Github</p>
</a>
<a title="Redirect" class="gold-btn hover-sound" href="https://ndagger1.itch.io/" target="_blank">
<i class="bi bi-shop-window"></i>
<p translate="no">Itch.io</p>
</a>
</div>
<div class="discord">
<i class="bi bi-discord" title="Discord"></i>
<p translate="no">@pizda69</p>
<button id="copy-discord" title="Copy" id="discord-btn" class="copyable hover-sound copy-btn">
<i class="bi bi-copy"></i>
</button>
<div id="discord-copied" class="discord-copied">
<i class="bi bi-check2"></i>
</div>
</div>
<!--
<div id="visitor-counter-content">
<p>Visits</p>
<img src="https://counter1.freecounterstat.com/private/counter.php?c=z8rbyqtq3t95xmchbg1gquxdf9t3dbee&init=1772888517146&init_freecounterstat=1&library=library_counters&coef=1.5&type=1155&lenght=1&pv=0" alt="">
</div>
-->
</div>
</article>
</section>
`
static image = src => `
<section id="${src}" class="window">
${getPanelHtml(src, {
fullscreenBtn: true
})}
<div class="content image-content">
<img src=${src} alt=${src}>
</div>
</section>
`
static status = data => {
const date = new Date(data.created_at);
return `
<section id="status-info-${data.id}" class="window status-info">
${getPanelHtml(getDateStr(new Date(data.created_at)), {
fullscreenBtn: true
})}
<article class="content">
<p class="status-content">${data.content}</p>
</article>
</section>
`
}
static STATUSES = `
<section id="statuses" class="window">
${getPanelHtml('Statuses', {
fullscreenBtn: true
})}
<div class="loading-progress-bar"></div>
<article class="content">
<div id="status-container">
</div>
</article>
</section>
`
}