-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
241 lines (220 loc) · 12.1 KB
/
index.html
File metadata and controls
241 lines (220 loc) · 12.1 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Jay Saunik</title>
<link rel="shortcut icon" href="assets/profile.png" type="image/x-icon">
<link href='https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css' rel='stylesheet'>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<meta property="og:url" content="https://jay-saunik.web.app" />
<meta property="og:title" content="Jay Saunik's Website" />
<meta property="og:description" content="Check out my personal portfolio website!" />
<meta property="og:image" content="https://firebasestorage.googleapis.com/v0/b/jay-saunik.appspot.com/o/profile.jpg?alt=media&token=da95ce8f-0de4-4a81-9e92-29cdc7021961" />
</head>
<body>
<nav class="navbar-primary" id="navbar">
<div class="brand-name">Jay Saunik</div>
<button class="navbar-toggler-icon" id="navbar-toggler-icon" type="button"><i class='bx bxs-moon'></i></button>
</nav><br><br>
<section id="home" class="container">
<img src="assets/profile.png" class="profile">
<h1 align="center">Hi, I'm Jay Saunik.</h1>
<div align="center">
<span class="badge">
Blogger
</span>
<span class="badge">
Freelance Programmer
</span>
</div>
<h1>About Me</h1>
<p>I'm passionate about coding and developing projects with the use of my critical thinking skills.<br>I gained my skills from self-studying and online courses. I'm just a 15-year-old so I don't have much education background and haven't graduated yet.</p><br>
<h1>My Skills</h1>
<div class="row">
<div class="column">
<h3>Frontend Web Development:</h3>
<b style="color: #f06529;"><i class='bx bxl-html5'></i> HTML</b><br>
<b style="color: #2965f1;"><i class='bx bxl-css3'></i> CSS</b><br>
<b style="color: #712cf9;"><i class='bx bxl-bootstrap'></i> Bootstrap</b><br>
</div>
<div class="column">
<h3>Programming Languages:</h3>
<b style="color:#4B8BBE;"><i class='bx bxl-python' ></i> Python</b><br>
<b style="color:#044F88;"><i class='bx bxl-c-plus-plus'></i> C/C++</b><br>
<b style="color: #f0db4f;"><i class='bx bxl-javascript' ></i> JavaScript</b><br>
</div>
</div>
<div class="row">
<div class="column">
<h3>Server-side:</h3>
<b style="color: #188a5e;"><i class='bx bxl-django'></i> Django (Python)</b><br>
<b><i class='bx bxl-flask' ></i> Flask (Python)</b>
</div>
<div class="column">
<h3>Databases:</h3>
<b style="color: #00758F;"><i class='bx bxs-data' ></i> mySQL</b><br>
<b style="color: #0064a5;"><i class='bx bxl-postgresql' ></i> Postgresql</b><br>
<b style="color: #4DB33D;"><i class='bx bxl-mongodb' ></i> MongoDB</b><br>
<b style="color: #FFA000;"><i class='bx bxl-firebase' ></i> Firebase</b>
</div>
</div>
</section><hr>
<section id="projects" class="container">
<h1>Projects</h1>
<a href="https://null-bytes.herokuapp.com/" target="_blank">
<div class="chip">
<img src="assets/null-bytes.ico" alt="Logo" width="96" height="96">
Null-Bytes
</div>
</a>
<p>Website: https://null-bytes.herokuapp.com/<br>About: Null-Bytes is a cross-platform document-oriented, NoSQL database program. Null-Bytes uses JSON-like collections (This is the alternative developer tool of MongoDB).<br>Developer: Jay Saunik<br>Release Date: 28 Jun 2022</p>
<a href="https://raincloudmyanmar.pythonanywhere.com/" target="_blank">
<div class="chip">
<img src="assets/rain-cloud.png" alt="Logo" width="96" height="96">
Rain-Cloud
</div>
</a>
<p>Website: https://raincloudmyanmar.pythonanywhere.com/<br>About: Rain-Cloud is an E-Learning Cloud Platform.<br>Developer: Jay Saunik<br>Release Date: 22 Oct 2021</p>
<a href="https://diamond-prince-2003.web.app/" target="_blank">
<div class="chip">
<img src="assets/dp.ico" alt="Logo" width="96" height="96">
Inventory Management
</div>
</a>
<p>Website: https://diamond-prince-2003.web.app/<br>About: Inventory management website with CRUD operations.<br>Developer: Jay Saunik<br>Release Date: 5 Jan 2022</p>
</section><hr>
<section id="links" class="container">
<h1>Links</h1>
<div align="center" class="links">
<a href="https://www.facebook.com/j.saunik/" target="_blank" class="facebook"><i class='bx bxl-facebook-circle icon' ></i></a>
<a href="https://www.instagram.com/_j.saunik/" target="_blank" class="instagram"><i class='bx bxl-instagram-alt icon' ></i></a>
<a href="https://github.com/codejapoe" target="_blank" class="github"><i class='bx bxl-github icon' ></i></a>
<a href="https://open.spotify.com/user/31xmlrgzrksgsfdxldoy5mm43s4y" target="_blank" class="spotify"><i class='bx bxl-spotify icon' ></i></a>
<a href="mailto: aungkaungkhant866@gmail.com" target="_blank" class="email"><i class='bx bxs-envelope icon'></i></a>
</div>
</section><hr>
<section id="message" class="container">
<h1>Send me anonymous messages</h1>
<strong id="alert">Please fill the text input.</strong><br>
<textarea class="form-control" rows="15" name="description" id="text"></textarea><br><br>
<button type="button" id="send-btn" class="send-btn"><i class='bx bx-send'></i> Send</button>
</section><br><br><br>
<div class="bottom-navbar-primary" id="bottom-navbar">
<ul>
<button class="btn-light" type="button" onclick="location.href = '#home'; var navLi = document.querySelectorAll('#bottom-navbar ul button li'); navLi.forEach(li => { li.classList.remove('active'); })">
<li class="home">
<i class='bx bx-home' ></i><br>
<span>Home</span>
</li>
</button>
<button class="btn-light" type="button" onclick="location.href = '#projects'; var navLi = document.querySelectorAll('#bottom-navbar ul button li'); navLi.forEach(li => { li.classList.remove('active'); })">
<li class="projects">
<i class='bx bxs-category' ></i><br>
<span>Projects</span>
</li>
</button>
<button class="btn-light" type="button" onclick="location.href = '#links'; var navLi = document.querySelectorAll('#bottom-navbar ul button li'); navLi.forEach(li => { li.classList.remove('active'); })">
<li class="links">
<i class='bx bx-link-alt' ></i><br>
<span>Links</span>
</li>
</button>
<button class="btn-light" type="button" onclick="location.href = '#message'; var navLi = document.querySelectorAll('#bottom-navbar ul button li'); navLi.forEach(li => { li.classList.remove('active'); })">
<li class="message">
<i class='bx bxs-message-square-minus' ></i><br>
<span>Message</span>
</li>
</button>
</ul>
</div><br><br>
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.12.1/firebase-app.js";
import { getDatabase, ref, get, set, child, update, remove } from "https://www.gstatic.com/firebasejs/9.12.1/firebase-database.js";
const firebaseConfig = {
apiKey: "AIzaSyCMgWbh_hzBCEZamIw6D1OmroGLl3LmccU",
authDomain: "jay-saunik.firebaseapp.com",
databaseURL: "https://jay-saunik-default-rtdb.firebaseio.com",
projectId: "jay-saunik",
storageBucket: "jay-saunik.appspot.com",
messagingSenderId: "453469832436",
appId: "1:453469832436:web:43746f37c4eaedfb148aa1",
measurementId: "G-GZ9W7XZE4F"
};
const app = initializeApp(firebaseConfig);
const database = getDatabase();
var mode = localStorage.getItem("mode");
if (mode === "dark") {
document.body.style.backgroundColor = "#243447";
document.body.style.color = "white";
document.getElementById('navbar').className = "navbar-dark";
document.getElementById('bottom-navbar').className = "bottom-navbar-dark";
document.getElementById('navbar-toggler-icon').innerHTML = "<i class='bx bxs-sun'></i>";
}
function changeTheme() {
var mode = document.getElementById('navbar').className;
if (mode === "navbar-primary") {
document.body.style.backgroundColor = "#243447";
document.body.style.color = "white";
document.getElementById('navbar').className = "navbar-dark";
document.getElementById('bottom-navbar').className = "bottom-navbar-dark";
document.getElementById('navbar-toggler-icon').innerHTML = "<i class='bx bxs-sun'></i>";
localStorage.setItem("mode", "dark");
} else {
document.body.style.backgroundColor = "white";
document.body.style.color = "black";
document.getElementById('navbar').className = "navbar-primary";
document.getElementById('bottom-navbar').className = "bottom-navbar-primary";
document.getElementById('navbar-toggler-icon').innerHTML = "<i class='bx bxs-moon'></i>";
localStorage.setItem("mode", "light");
}
}
const section = document.querySelectorAll('section');
const navLi = document.querySelectorAll('#bottom-navbar ul button li');
window.addEventListener('scroll', () => {
const scrollY = window.pageYOffset;
let current = '';
section.forEach(section => {
var sectionTop = section.offsetTop - 200;
var sectionHeight = section.clientHeight;
if (scrollY >= sectionTop && scrollY <= sectionTop + sectionHeight) {
current = section.getAttribute('id');
}
})
navLi.forEach(li => {
li.classList.remove('active');
if (li.classList.contains(current)) {
li.classList.add('active');
}
})
})
function send() {
var text = document.getElementById("text").value;
if (text === "") {
document.getElementById("alert").style = "display: block";
document.getElementById("alert").innerText = "Please fill the text input.";
} else {
get(child(ref(database), "id/value")).then((id) => {
if (id.exists()) {
set(ref(database, "message"+id.val()), {
"message": text
})
set(ref(database, "id"), {
"value": id.val()+1
})
document.getElementById("text").value = "";
document.getElementById("alert").style = "display: block";
document.getElementById("alert").innerText = "Sent successfully.";
}
})
}
}
document.getElementById("navbar-toggler-icon").addEventListener("click", changeTheme);
document.getElementById("send-btn").addEventListener("click", send);
</script>
</body>
</html>