-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (68 loc) · 3.65 KB
/
index.html
File metadata and controls
76 lines (68 loc) · 3.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Main page</title>
<link rel="stylesheet" href="main.css">
<!--Google Font-->
<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=Playfair+Display&display=swap" rel="stylesheet">
<!--Favicon-->
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
<link rel="manifest" href="favicon/site.webmanifest">
<link rel="mask-icon" href="favicon/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="favicon/favicon.ico">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-config" content="favicon/browserconfig.xml">
<meta name="theme-color" content="#ffffff">
<!--The color pallete for this project is: #5F6F52, #A9B388, #FEFAE0, #B99470 link here: https://colorhunt.co/palette/5f6f52a9b388fefae0b99470 -->
</head>
<body>
<div class="header-container">
<h1>Hello, welcome to the little javascript code project directory ✌🏾</h1>
<p>Here you can find a bunch of projects I've worked on to solve all kinds of problems, some little, some big.</p>
<p>Take a look at some of the projects I've developed and feel free to star this repo <a href="https://github.com/UbaidRussell/littleJavascriptCode">Here</a></p>
</div>
<div class="slider-container">
<div class="slider">
<div class="slide"><a href="slicetweet/index.html"><p>Statment cutter</p><img src="images/statement cutter.png" alt="Image 1"></a></div>
<div class="slide"><a href="isEven/index.html"><p>isEven.js</p><img src="images/isEven.png" alt="Image 2"></a></div>
<div class="slide"><a href="toEmoticon/index.html"><p>toEmoticon.js</p><img src="images/toEmoticon.png" alt="Image 3"></a></div>
<div class="slide"><a href="loveScore/index.html"><p>loveScore.js</p><img src="images/loveScore.png" alt="Image 4"></a></div>
<div class="slide"><a href="class/index.html"><p>Student Creator</p><img src="images/Student Creator.png" alt="Image 5"></a></div>
<div class="slide"><a href="lifePhase/index.html"><p>Life phase</p><img src="images/lifePhaser.png" alt="Image 6"></a></div>
<!-- Add more slides as needed -->
</div>
<!-- Optional: Add navigation buttons -->
<button class="prev" onclick="prevSlide()">❮</button>
<button class="next" onclick="nextSlide()">❯</button>
</div>
<script>
// Optional: Add JavaScript for slide navigation
let currentIndex = 0;
function showSlide(index) {
const slider = document.querySelector('.slider');
const slideWidth = document.querySelector('.slide').offsetWidth;
const totalSlides = slider.children.length;
if (index < 0) {
currentIndex = totalSlides - 1;
} else if (index >= totalSlides) {
currentIndex = 0;
} else {
currentIndex = index;
}
slider.style.transform = `translateX(-${currentIndex * slideWidth}px)`;
}
function prevSlide() {
showSlide(currentIndex - 1);
}
function nextSlide() {
showSlide(currentIndex + 1);
}
</script>
</body>
</html>