forked from salmanytofficial/XLICON-WEB-PAIR-CODE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.html
135 lines (120 loc) · 3.49 KB
/
main.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="shortcut icon" type="x-icon" href="./img/XLICON.jpg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
display: flex;
flex-direction: column; /* Stack items vertically */
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background-image: url("https://i.ibb.co/nngqLkV/932151.jpg"); /* Set the background image */
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.btn {
--color: hsl(0, 0%, 100%);
--color2: rgb(0, 0, 0);
width: 200px; /* Set a fixed width for the buttons */
padding: 0.8em 1.75em;
background-color: transparent;
border-radius: 6px;
border: .3px solid var(--color);
transition: .5s;
position: relative;
overflow: hidden;
cursor: pointer;
z-index: 1;
font-weight: 300;
font-size: 17px;
font-family: 'Roboto', 'Segoe UI', sans-serif;
text-transform: uppercase;
color: var(--color);
margin-bottom: 10px; /* Add margin to separate buttons */
}
.btn::after, .btn::before {
content: '';
display: block;
height: 100%;
width: 100%;
transform: skew(90deg) translate(-50%, -50%);
position: absolute;
inset: 50%;
left: 25%;
z-index: -1;
transition: .5s ease-out;
background-color: var(--color);
}
.btn::before {
top: -50%;
left: -25%;
transform: skew(90deg) rotate(180deg) translate(-50%, -50%);
}
.btn:hover::before {
transform: skew(45deg) rotate(180deg) translate(-50%, -50%);
}
.btn:hover::after {
transform: skew(45deg) translate(-50%, -50%);
}
.btn:hover {
color: var(--color2);
}
.btn:active {
filter: brightness(.7);
transform: scale(.98);
}
</style>
</head>
<body>
<button onclick="window.open(`/pair`)" class="btn">pair code</button>
<button onclick="window.open(`https://github.com/salmanytofficial`)" class="btn">github</button>
<button onclick="window.open(`https://youtube.com/@s4salmanyt`)" class="btn">youtube</button>
<button onclick="window.open(`https://t.me/ahmmitech`)" class="btn">telegram</button>
<button onclick="window.open(`https://www.instagram.com/ahmmikun`)" class="btn">instagram</button>
<style>
/* Add media queries for responsive website */
@media screen and (max-width: 600px) {
body {
background-size: contain;
}
.btn {
width: 150px;
font-size: 14px;
}
}
@media screen and (max-width: 400px) {
.btn {
width: 120px;
font-size: 12px;
}
}
@media screen and (min-width: 720px) {
body {
/* Add styles for computer screens here */
background-image: url("https://i.ibb.co/5jswLrK/Web-Pair.jpg");
}
.btn {
width: 300px;
font-size: 24px;
}
}
@media screen and (min-width: 1024px) {
body {
/* Add styles for computer screens here */
background-image: url("https://i.ibb.co/5jswLrK/Web-Pair.jpg");
}
.btn {
--color: hsl(0, 0%, 0%);
--color2: rgb(255, 255, 255);
width: 300px;
font-size: 24px;
}
}
</style>
</body>
</html>