-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.html
More file actions
70 lines (60 loc) · 2.49 KB
/
embed.html
File metadata and controls
70 lines (60 loc) · 2.49 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
<!DOCTYPE html>
<html class="h-full">
<head>
<meta charset="UTF-8">
<title>Rubox Embed</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<!-- OGP / SEO (Embed) -->
<meta property="og:title" content="Rubox Code Snippet">
<meta property="og:description" content="Check out this Ruby code snippet on Rubox.">
<meta property="og:type" content="article">
<meta property="og:image" content="https://rubox.dev/ogp.png">
<meta name="twitter:card" content="summary_large_image">
<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=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap"
rel="stylesheet">
<script>
// 常にダークモードを使用するか、クエリパラメータで制御できると良いが、
// 一旦は親フレームやシステムの好みに関わらずダーク基調で見やすくする
document.documentElement.classList.add('dark');
</script>
<script type="module" src="/src/embed.ts"></script>
<style>
/* Embed特有のスタイル */
body {
margin: 0;
padding: 0;
overflow: hidden;
}
#editor-container {
width: 100vw;
height: calc(100vh - 32px);
}
#footer {
height: 32px;
}
</style>
</head>
<body class="h-full bg-[#0D1117] text-zinc-100 flex flex-col">
<!-- Editor Area -->
<div id="editor-container" class="relative"></div>
<!-- Footer Bar -->
<div id="footer"
class="flex items-center justify-between px-3 bg-[#161b22] border-t border-white/10 text-xs select-none">
<div class="flex items-center gap-2">
<!-- Rubox Logo (Small) -->
<span class="font-logo font-bold text-gray-100 tracking-tight">Rubox</span>
<span class="text-slate-500">ReadOnly</span>
</div>
<a id="open-link" href="/" target="_blank" rel="noopener noreferrer"
class="flex items-center gap-1 text-blue-400 hover:text-blue-300 transition-colors font-medium">
<span>Ruboxで開く</span>
<svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"></path>
</svg>
</a>
</div>
</body>
</html>