-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
190 lines (181 loc) · 7.15 KB
/
Copy pathindex.html
File metadata and controls
190 lines (181 loc) · 7.15 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>ys770</title>
<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=Syne:wght@400;600;700;800&display=swap" rel="stylesheet">
<style>
:root {
--bg: #0a0908; --ink: #e8e2d6; --dim: #7a7264;
--accent: #c6973a; --card: #141210; --border: #252220;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
background: var(--bg); color: var(--ink);
font-family: 'Syne', system-ui, sans-serif;
min-height: 100vh; display: flex; flex-direction: column;
align-items: center; justify-content: center; padding: 2rem;
cursor: none; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
/* Cursor */
.cdot, .cring {
position: fixed; top: 0; left: 0; border-radius: 50%;
pointer-events: none; z-index: 9999;
}
.cdot { width: 5px; height: 5px; background: var(--accent); transform: translate(-50%,-50%); }
.cring {
width: 32px; height: 32px; border: 1.5px solid var(--accent); opacity: 0.4;
transform: translate(-50%,-50%);
transition: width 0.25s, height 0.25s, opacity 0.25s;
}
body.hovering .cring { width: 52px; height: 52px; opacity: 0.7; mix-blend-mode: difference; }
@media (max-width: 768px) { .cdot, .cring { display: none; } body { cursor: auto; } }
/* Grain */
.grain {
position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.03;
mix-blend-mode: overlay;
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
/* Layout */
.container { max-width: 600px; width: 100%; }
.head {
margin-bottom: 2.5rem;
display: flex; flex-direction: column; align-items: center;
opacity: 0; animation: up 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}
.avatar-wrap {
width: clamp(140px, 30vw, 220px); height: auto;
aspect-ratio: 1; border-radius: 16px; overflow: hidden;
border: 2px solid var(--border);
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
margin-bottom: 1.25rem;
}
.avatar-wrap:hover {
border-color: var(--accent);
box-shadow: 0 12px 40px rgba(198,151,58,0.2);
transform: translateY(-2px);
}
.avatar-video {
width: 100%; height: 100%; object-fit: cover; display: block;
}
@keyframes up {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Card */
.card {
display: block; background: var(--card);
border: 1px solid var(--border); border-radius: 8px;
padding: 2rem 2.25rem; position: relative; overflow: hidden;
transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
opacity: 0; animation: up 0.7s cubic-bezier(0.16,1,0.3,1) 0.3s forwards;
}
.card::before {
content: ""; position: absolute; inset: 0;
background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(198,151,58,0.09), transparent 50%);
opacity: 0; transition: opacity 0.4s; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
border-color: var(--accent); transform: translateY(-3px);
box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.card-logo {
height: 42px; width: auto;
filter: brightness(0) invert(0.88) sepia(0.1);
}
.card-badge {
font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
color: var(--bg); background: var(--accent);
padding: 0.15rem 0.5rem; border-radius: 2px; margin-left: auto;
}
.card-title {
font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700;
letter-spacing: -0.02em; margin-bottom: 0.5rem;
transition: color 0.3s;
}
.card:hover .card-title { color: var(--accent); }
.card-desc { font-size: 0.95rem; line-height: 1.65; color: var(--dim); margin-bottom: 1.25rem; max-width: 480px; }
.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tag {
font-size: 0.65rem; font-weight: 500; color: var(--dim);
border: 1px solid var(--border); padding: 0.25rem 0.55rem;
border-radius: 16px; transition: all 0.2s;
}
.card:hover .tag { border-color: rgba(198,151,58,0.4); color: var(--ink); }
.card-cta {
font-size: 0.88rem; font-weight: 600; color: var(--accent);
display: inline-flex; align-items: center; gap: 0.5rem;
}
.card-cta .arrow { transition: transform 0.25s; display: inline-block; }
.card:hover .card-cta .arrow { transform: translateX(5px); }
/* Footer */
.foot {
margin-top: 3rem; font-size: 0.72rem; color: var(--dim);
opacity: 0; animation: up 0.7s cubic-bezier(0.16,1,0.3,1) 0.5s forwards;
}
.foot a { color: var(--accent); }
.foot a:hover { opacity: 0.7; }
</style>
</head>
<body>
<div class="grain" aria-hidden="true"></div>
<div class="cdot" aria-hidden="true"></div>
<div class="cring" aria-hidden="true"></div>
<div class="container">
<div class="head">
<div class="avatar-wrap">
<video class="avatar-video" autoplay loop muted playsinline>
<source src="avatar.mp4" type="video/mp4" />
</video>
</div>
</div>
<a href="https://ys770.github.io/PshatGPT/" class="card" id="card">
<div class="card-head">
<img src="https://ys770.github.io/PshatGPT/logo.svg" alt="PshatGPT" class="card-logo" />
<span class="card-badge">Preview</span>
</div>
<div class="card-title">PshatGPT</div>
<p class="card-desc">
AI-assisted tzuras hadaf. Click any line of Gemara, Rashi, or Tosafot — Claude explains it in context. Deep iyun mode, logic chain mapping, all 37 Bavli tractates.
</p>
<div class="card-tags">
<span class="tag">Gemara</span>
<span class="tag">Claude AI</span>
<span class="tag">Sefaria</span>
</div>
<div class="card-cta">
Open PshatGPT <span class="arrow">→</span>
</div>
</a>
<div class="foot"><a href="https://github.com/ys770">github.com/ys770</a></div>
</div>
<script>
// Cursor
const dot = document.querySelector(".cdot"), ring = document.querySelector(".cring");
if (dot && ring) {
let mx=0,my=0,rx=0,ry=0;
document.addEventListener("mousemove", e => { mx=e.clientX; my=e.clientY; dot.style.left=mx+"px"; dot.style.top=my+"px"; });
(function anim() { rx+=(mx-rx)*0.14; ry+=(my-ry)*0.14; ring.style.left=rx+"px"; ring.style.top=ry+"px"; requestAnimationFrame(anim); })();
document.querySelectorAll("a,button").forEach(el => {
el.addEventListener("mouseenter", () => document.body.classList.add("hovering"));
el.addEventListener("mouseleave", () => document.body.classList.remove("hovering"));
});
}
// Card glow
const card = document.getElementById("card");
if (card) card.addEventListener("mousemove", e => {
const r = card.getBoundingClientRect();
card.style.setProperty("--mx", ((e.clientX-r.left)/r.width*100)+"%");
card.style.setProperty("--my", ((e.clientY-r.top)/r.height*100)+"%");
});
</script>
</body>
</html>