-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
445 lines (381 loc) · 18.9 KB
/
index.html
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
<!-- Personal Website -->
<!-- will simulate a multipage layout as each tab in the top right jumps to relevant section in the page -->
<!-- image from unsplash -->
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset="UTF-8">
<title>Saloni Karanth</title>
<!--favicon-->
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<!--jquery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src = "https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js"> </script>
<!--ubuntu, lato, montserrat-->
<link href="https://fonts.googleapis.com/css2?family=Lato&family=Montserrat&family=Ubuntu&display=swap" rel="stylesheet">
<!--quicksand-->
<link href="https://fonts.googleapis.com/css2?family=Quicksand&display=swap" rel="stylesheet">
<!--sawarabi-->
<link href="https://fonts.googleapis.com/css2?family=Sawarabi+Mincho&display=swap" rel="stylesheet">
<!--alegreya-->
<link href="https://fonts.googleapis.com/css2?family=Alegreya&display=swap" rel="stylesheet">
<style>
@import url("gitstyle.css");
@import url('https://fonts.googleapis.com/css2?family=Comfortaa&display=swap');
</style>
<!--To prevent flash of unstyled content in firefox-->
<script>
let FF_FOUC_FIX;
</script>
</head>
<body class="mode" >
<!--background images-->
<div>
<div id="img-holder">
<img id="laptop_img" src="images/laptop_plant.jpg" alt="image of laptop; credit: workperch " >
<!--<img id="laptop_img2" src="code.png" alt="image2 of laptop" >-->
</div>
</div>
<div id="container">
<!--navbar holder-->
<!--<div id="navbase"></div>-->
<div id="navbase-scroll"></div>
<div id="navbar-container">
<div id="navbar">
<div class= "flex-item"><a class= "home" href="#home">Home</a></div>
<span id="underline"></span>
<span class="flex-spacer"></span>
<div class= "flex-item"><a href="#about">About</a></div>
<span class="flex-spacer"></span>
<div class= "flex-item"><a href="#apps">Apps</a></div>
<span class="flex-spacer"></span>
<div class= "flex-item"><a href="#skills">Skills</a></div>
<span class="flex-spacer"></span>
<div class= "flex-item"><a href="resume sept 2023.pdf" target="_blank" rel="noopener noreferrer">Resume</a></div> <!--rel prevents malicious attacks-->
<span class="flex-spacer"></span>
<div class= "flex-item"><a href="#contact">Contact</a></div>
<span class="flex-spacer"></span>
<button id="mode-button" >☆</button>
</div>
<div id="icon-holder" >
<p style="margin:0; letter-spacing: 0.1em;">SK</p>
</div>
</div>
<div id="navbase-scroll"></div>
<!--home section-->
<div id="home">
<div id="intro">
<span id="intro-large" >Hi, I'm Saloni Karanth.</span>
</div>
</div>
<!--about section-->
<div id="about">
<div id="image-holder">
<img id="image" src="images/sunset.jpg" alt="sunset img; credit: cristofer maximilian">
</div>
<div id="about-text">
<p id="title">About me</p>
<p id="small">I'm a Junior at University of Florida majoring in Computer Science, and I'm really passionate about Website and Mobile App development.</p>
<p id="small">When I'm not coding, I really enjoy hiking through Florida Trails and Preserves, and just being surrounded by nature🌲. <br></p>
<p id="small">I also like playing videogames🎮 and reading fiction novels! 🧜♂️</p>
</div>
</div>
<div id="apps">
<div id="header">
<div> Apps and Websites</div>
</div>
<div id="app1" class="app">
<div id="jpdictionary-text">
<p id="title">JP Dictionary</p>
<div id="jp-inside-text">
<p class="small">This app helps users translate any word from English to Japanese and vice versa.</p>
<p class="small">The fully customizable lists let users add new lists, rename them, and even filter them to easily find a list.🌲. <br></p>
<p class="small">Users can add words to their chosen list by clicking the plus button.</p>
<p class="small">They can type Romaji, English, Hiragana/Katakana, or Kanji in the search bar to find any Japanese or Engligh equivalent.</p>
<p class="small">The Japanese or English parts can be hidden to aid memorization</p>
<p class="small">Dark mode reduces eye strain for users.</p>
<p class="small"><a class="link" href="https://github.com/sakara01/JPDictionary" target="_blank" rel="noopener noreferrer">Download ></a></p>
</div>
</div>
<div class="image-holder">
<img id="image" src="images/JP 1.jpg" alt="JP dictionary img 1">
</div>
</div>
<div id="app2" class="app">
<div class="image-holder-variant">
<img id="image" src="images/SC 2.jpg" alt="Sous Chef img 1">
</div>
<div id="sous-text">
<p id="title">Sous Chef</p>
<div id="sous-inside-text">
<p class="small">This app displays random recipes but also lets users search for any recipe from an extensive database of all cuisines.</p>
<p class="small">The user can click on a recipe to see the details like ingredients, cook time, and servings. Clicking the play button displays the instructions for the recipe step by step.</p>
<p class="small">The user can scroll through the steps by hand or they can activate voice recognition to be hands free while cooking. The voice commands 'next', 'back', and 'exit' can be used to easily navigate through the recipe.</p>
</div>
</div>
</div>
<div id="app3" class="app">
<div id="caffinder-text">
<p id="title">Caffinder</p>
<div id="caffinder-inside-text">
<p class="small">This website lets users find coffee shops near them, and also allows users to search in different cities.</p>
<p class="small">Users can click on a pin to see details about a coffee shop as well as the directions to it.</p>
<p class="small">They can also log into their account or create one to favorite coffee shops they like.</p>
</div>
</div>
<div class="image-holder-website">
<img id="image" src="images/CF 1.png" alt="Caffinder img 1">
</div>
</div>
</div>
<!--skills section-->
<div id="skills">
<div id="header">
<div> Technical Skills</div>
</div>
<div style="overflow: auto; margin:10px;">
<div id="tiles-first">
<div id="C" class="tile">
<img src="images/C-icon.png" alt="C-icon; credit: icons8">
</div>
<div id="HTML5" class="tile">
<img src="images/html5.png" alt="html5; credit: stickpng">
</div>
<div id="JavaScript" class="tile">
<img src="images/javascript.png" alt="javascript; credit: wikimedia commons">
</div>
<div id="PHP" class="tile">
<img src="images/php.png" alt="php; credit: icons8">
</div>
<div id="jQuery" class="tile">
<img id="jq" src="images/jquery-logo.png" alt="jquery; credit: brands logos">
</div>
<div id="Linux-Shell" data-name="Linux Shell" class="tile">
<img id="linuximg" src="images/terminal.png" alt="terminal; credit: pngwing">
</div>
<div id="Angular" class="tile">
<img src="images/angular.png" alt="angular-icon; credit: pngegg">
</div>
</div>
</div>
<div style="overflow: auto; margin-top:14px;">
<div id="tiles-second">
<div id="Cplusplus" data-name="C++" class="tile">
<img src="images/c++.png" alt="c++; credit: pngegg">
</div>
<div id="mySQL" class="tile">
<img src="images/mysql.png" alt="mysql; credit: freepnglogos">
</div>
<div id="Python" class="tile">
<img src="images/python.png" alt="python; credit: stickpng">
</div>
<div id="Kotlin" class="tile">
<img src="images/Kotlin.png" alt="kotlin; credit: wikimedia">
</div>
<div id="Golang" class="tile">
<img src="images/golang.png" alt="golang; credit: pngegg">
</div>
</div>
</div>
<div id="more">
</div>
</div>
</div>
<!--contact-->
<div id="contact">
<div style="margin:auto;">
<div id="contact-holder">
<div id="header">
Reach out to me here ➣
</div>
<div id="icons">
<a href="https://www.linkedin.com/in/saloni-karanth-aba1a9225/" target="_blank" rel="noopener noreferrer">
<img src="images/linkedin.png" alt="linkedin; credit:freeiconspng">
</a>
<!--<div id="spacer"></div>-->
<a href="https://github.com/sakara01" target="_blank" rel="noopener noreferrer">
<img src="images/github.png" alt="github logo; credit: icons8">
</a>
<a href="#" id="mail">
<img src="images/email.png" alt="email logo; credit: icons8">
</a>
</div>
</div>
<div id="thanks">
Thanks for viewing! 💜
</div>
</div>
</div>
</body>
<script>
//document.cookie= "isDark=false";
isDark=false;
window.onload=resize_page();
window.onload=resize_img_home();
//window.onload=resize_about_more();
window.onload= findNavbarDistance();
//window.onload= findImgHolderHeight();
//window.onscroll= scroll_shadow();
//containerWidth is size of window, navbarWidth is size of navbar, substract to get distance from left edge of container
function findNavbarDistance(){
containerWidth= document.getElementById("container").clientWidth;
navbarWidth= document.getElementById("navbar").clientWidth;
distance=(containerWidth-navbarWidth)-50;
passvalue= parseInt(distance)+"px";
document.getElementById("navbar").style.marginLeft=passvalue; //adds margin to navbar elements to get correct alignment.
}
//changes container size based on window width.
function resize_page(){
winWidth= window.innerWidth;
if (winWidth<=1400){
document.getElementById("container").style.width="90%";
}
else if (winWidth<=1800){
document.getElementById("container").style.width="80%";
}
else if (winWidth<=2200){
document.getElementById("container").style.width="70%";
}
else {
document.getElementById("container").style.width="60%";
}
}
function resize_img_home(){
//containerWidth= document.getElementById("container").clientWidth;
winWidth=window.innerWidth;
imgHeight= winWidth/2.1;
document.getElementById("img-holder").style.height=parseInt(imgHeight)+"px";
document.getElementById("home").style.height=parseInt(imgHeight-50)+"px";
}
function resize_about_more(){
height= document.getElementById("image-holder").clientHeight;
document.getElementById("about").style.height=parseInt(height)+"px";
width= (document.getElementById("container").clientWidth- document.getElementById("tiles-first").clientWidth) *0.9;
document.getElementById("more").style.width=parseInt(width)+"px";
}
//adds shadow to navbar if user has scrolled
document.addEventListener("scroll",function(){
scrollValue=document.getElementById("img-holder").clientHeight -50;
if (document.documentElement.scrollTop>scrollValue){
$("#navbase-scroll").css("top","0");
$("#navbar").css("top","-12px");
$("#icon-holder").css("margin-top","9px");
//$("#navbase-scroll").addClass("shadow",1000);
}
else {
$("#navbase-scroll").css("top","-50px");
$("#navbar").css("top","0px");
$("#icon-holder").css("margin-top","22px");
//$("#navbase-scroll").removeClass("shadow",1000);
}
})
$(".tile").mouseenter(function(){
console.log(this);
langName=jQuery(this).attr('id');
if(langName=="Cplusplus" || langName=="Linux-Shell"){
langName=jQuery(this).attr('data-name');
//langName=jQuery(langName).name;
//console.log(langName);
}
if(jQuery((this).parentElement).attr('id')=="tiles-first")
level="Proficient";
else level="Advanced";
displayMore(langName,level);
})
$(".tile").mouseleave(function(){
displayLess("C");
})
function displayMore(langName,level){
document.getElementById("more").innerHTML=`<p> ${langName} : ${level} </p>`;
jQuery("#more").css("opacity","1");
}
function displayLess(langName,level){
jQuery("#more").css("opacity","0");
}
$("#mail").click(function(){
window.open('mailto:[email protected]');
})
document.getElementById("mode-button").addEventListener("click",function(){
console.log("listener");
if (isDark){
console.log("if");
$("body").css("background-color","white");
$("body").css("color","black");
$("#skills #header").css("border-bottom","2px solid black");
$("#more").css("border","1.6px solid black");
$("#jQueryimg").attr("src","images/jquery-logo.png");
$("#linuximg").attr("src","images/terminal.png");
isDark=false;
}
else {
console.log("else");
$("body").css("background-color","rgb(30,30,30)");
$("body").css("color","white");
$("#skills #header").css("border-bottom","2px solid white");
$("#more").css("border","1.6px solid white");
$("#jQueryimg").attr("src","images/jQueryWhite.png");
$("#linuximg").attr("src","images/terminalWhite.png");
isDark=true;
}
})
//icon click reloads page
$("#icon-holder").click(function(){
location.reload();
})
/*
$(".home").mouseenter(function(){
console.log("home");
//$(".home").addClass("underline");
})
/*
function findImgHolderHeight(){
img_height= document.getElementById("laptop_img").clientHeight;
document.getElementById("img-holder").style.height=parseInt(img_height)+"px";
}
*/
//animation to increase width of laptop_img
/*
$("#laptop_img").mouseover(function(){
$("#laptop_img").width('84%');
})
$("#laptop_img").mouseleave(function(){
$("#laptop_img").width('80%');
})
*/
/*
//change img on mouse activity
$("#img-holder").mouseenter(function(){
$("#laptop_img2").fadeIn(500);
})
$("#img-holder").mouseleave(function(){
$("#laptop_img2").stop(true).fadeOut(500);
})
*/
/*
$(document).ready(function(){
$("#laptop_img").hover(function(){
$(this).attr('src','desk_laptop2.jpg');
}, function(){
$(this).attr('src','code.png');
});
})
/*
$(document).ready(function(){
$("#laptop_img").hover(function(){
$(this).attr('src','desk_laptop2.jpg');
}, function(){
$(this).attr('src','code.png');
});
})
*/
/*
function scroll_shadow(){
console.log("scroll_shadow working");
if (document.documentElement.scrollTop>1){
console.log("if working");
document.getElementById("navbase").classList.add("shadow");
}
}
*/
</script>
</html>