-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
96 lines (86 loc) · 3.3 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Meta Tags -->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- SEO Meta Tags -->
<title>Swipeable Topics - Discover Your Next Adventure</title>
<meta name="description" content="Discover and explore exciting topics and activities with our swipeable card interface. From art exhibitions to outdoor adventures, find your next interest here." />
<meta name="keywords" content="swipeable topics, activities, adventures, art exhibitions, cooking classes, outdoor activities" />
<meta name="author" content="Funpic" />
<link rel="icon" type="image/png" sizes="32x32" href="./funtopic.png">
<link rel="canonical" href="https://funpic.iqbaldev.my.id/" />
<!-- Open Graph / Social Media Meta Tags -->
<meta property="og:title" content="Swipeable Topics - Discover Your Next Adventure" />
<meta property="og:description" content="Discover and explore exciting topics and activities with our swipeable card interface." />
<meta property="og:image" content="https://funpic.iqbaldev.my.id/funtopic.png" />
<meta property="og:url" content="https://funpic.iqbaldev.my.id/" />
<meta property="og:type" content="website" />
<!-- CSS -->
<link rel="stylesheet" href="./styles.css" />
<!-- Inline CSS for Fancy Button Styling (Optional: you can move this to styles.css) -->
<style>
.controls {
margin-top: 20px;
display: flex;
justify-content: space-around;
}
.swipe-button {
background: linear-gradient(135deg, #ff5864, #ff4657);
border: none;
border-radius: 50%;
width: 60px;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.swipe-button:hover {
transform: scale(1.05);
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}
.swipe-button:active {
transform: scale(0.95);
}
/* Optional: If you want the SVG icon to have a smooth color transition */
.swipe-button svg {
transition: fill 0.2s ease;
}
</style>
</head>
<body>
<div class="container">
<div class="card-container">
<div id="card" class="card">
<div class="img-icon">
<p id="card-img"></p>
</div>
<div class="card-content">
<h2 id="card-title">Title</h2>
<p id="card-description">Description</p>
</div>
</div>
</div>
<!-- Updated Fancy Swipe Buttons with SVG Icons -->
<div class="controls">
<button id="swipeLeft" class="swipe-button" aria-label="Swipe Left">
<!-- Left Arrow Icon -->
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#fff" viewBox="0 0 24 24">
<path d="M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6z"/>
</svg>
</button>
<button id="swipeRight" class="swipe-button" aria-label="Swipe Right">
<!-- Right Arrow Icon -->
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="#fff" viewBox="0 0 24 24">
<path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z"/>
</svg>
</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>