File size: 6,719 Bytes
8d60e33
 
 
 
 
d5548b2
8d60e33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d5548b2
8d60e33
 
 
d5548b2
8d60e33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>a2a-validator</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=Share+Tech+Mono&family=Inter:wght@400;600&display=swap" rel="stylesheet">

    <style>
      :root {
          --bg: #020402;
          --bg2: #071007;
          --text: #c8facc;
          --muted: #7ef7a7;
          --matrix: #00ff9c;
          --card: #061006cc; /* translucent */
          --border: #0d1e0f;
      }
      html, body { height: 100%; }
      body {
          margin: 0;
          color: var(--text);
          background:
            radial-gradient(1200px 800px at 100% -10%, rgba(0,255,156,0.06), transparent 40%),
            radial-gradient(1000px 600px at -10% 100%, rgba(0,255,156,0.05), transparent 40%),
            linear-gradient(180deg, var(--bg), var(--bg2) 60%, var(--bg));
          font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
          overflow-y: auto;
      }
      body::after {
          content: "";
          position: fixed;
          inset: 0;
          pointer-events: none;
          background: repeating-linear-gradient(to bottom, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 2px, transparent 3px);
          mix-blend-mode: overlay;
          opacity: 0.6;
          z-index: 0;
      }
      #code-rain {
          position: fixed;
          inset: 0;
          width: 100vw;
          height: 100vh;
          z-index: 0;
          pointer-events: none;
          opacity: 0.65;
      }
      header {
          position: sticky; top: 0; z-index: 3;
          display: flex; align-items: center; gap: 18px;
          padding: 18px 22px;
          background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0));
          border-bottom: 1px solid var(--border);
          backdrop-filter: blur(4px);
      }
      .brand {
          font-family: "Share Tech Mono", monospace;
          color: var(--matrix);
          text-shadow: 0 0 8px rgba(0,255,156,0.4);
          letter-spacing: 0.04em;
          font-size: 18px;
      }
      nav a {
          color: var(--muted);
          text-decoration: none;
          margin-right: 16px;
          transition: color .15s ease, text-shadow .15s ease;
      }
      nav a:hover {
          color: var(--matrix);
          text-shadow: 0 0 8px rgba(0,255,156,0.4);
      }
      .wrap { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 26px 22px 60px; }
      .card {
          background: var(--card);
          border: 1px solid var(--border);
          border-radius: 16px;
          box-shadow: 0 0 0 1px rgba(0,255,156,0.06), 0 8px 30px rgba(0,0,0,0.35);
          padding: 20px;
      }
      h2, h3, h4 { font-family: "Share Tech Mono", monospace; color: var(--matrix); letter-spacing: .02em; }
      p { color: var(--text); opacity: 0.95; }
      input, textarea {
          width: 100%;
          color: var(--text);
          background: #020a04;
          border: 1px solid var(--border);
          border-radius: 12px;
          padding: 12px 12px;
          font-size: 14px;
          font-family: "Share Tech Mono", monospace;
          outline: none;
          transition: border-color .15s ease, box-shadow .15s ease;
      }
      input:focus, textarea:focus {
          border-color: var(--matrix);
          box-shadow: 0 0 0 3px rgba(0,255,156,0.08), 0 0 12px rgba(0,255,156,0.25) inset;
      }
      button {
          background: linear-gradient(180deg, #00ff9c, #00c97e);
          color: #002f1b;
          border: 0;
          padding: 10px 16px;
          border-radius: 12px;
          font-weight: 700;
          font-family: "Share Tech Mono", monospace;
          letter-spacing: 0.03em;
          cursor: pointer;
          box-shadow: 0 6px 20px rgba(0,255,156,0.25);
          transition: transform .05s ease, box-shadow .15s ease, filter .15s ease;
      }
      button:hover { filter: brightness(1.05); box-shadow: 0 10px 30px rgba(0,255,156,0.35); }
      button:active { transform: translateY(1px); }
      pre, code {
          font-family: "Share Tech Mono", monospace;
          background: #020a04;
          border: 1px solid var(--border);
          border-radius: 12px;
      }
      pre { padding: 12px; overflow: auto; }
      @keyframes glow {
          0%, 100% { text-shadow: 0 0 10px rgba(0,255,156,0.12); }
          50%      { text-shadow: 0 0 14px rgba(0,255,156,0.28); }
      }
      h3 { animation: glow 3.5s ease-in-out infinite; }
    </style>
</head>
<body>
    <canvas id="code-rain"></canvas>

    <header>
        <div class="brand">MATRIX-A2A</div>
        <nav>
            <a href="/validator">Validator</a>
            <a href="/home">Info</a>
            <a href="https://github.com/agent-matrix/a2a-validator" target="_blank" rel="noreferrer" title="Give me a star on GitHub!">GitHub</a>
        </nav>
    </header>

    <div class="wrap">
        {% block body %}{% endblock %}
    </div>

    <script>
      (function () {
          const c = document.getElementById('code-rain');
          if (!c) return;
          const ctx = c.getContext('2d', { alpha: true });
          let w, h, cols, drops;
          const fontSize = 20;
          const charSet = 'アァカサタナハマヤラワ0123456789アイウエオアイウエオ01';

          function resize() {
              w = c.width = window.innerWidth;
              h = c.height = window.innerHeight;
              cols = Math.floor(w / fontSize);
              drops = Array(cols).fill(0).map(() => Math.floor(Math.random() * -50));
              ctx.font = fontSize + "px 'Share Tech Mono', monospace";
          }

          function draw() {
              ctx.fillStyle = 'rgba(2, 10, 4, 0.10)';
              ctx.fillRect(0, 0, w, h);
              for (let i = 0; i < cols; i++) {
                  const x = i * fontSize;
                  const y = drops[i] * fontSize;
                  const ch = charSet[Math.floor(Math.random() * charSet.length)];
                  ctx.shadowColor = 'rgba(0,255,156,0.35)';
                  ctx.shadowBlur = 8;
                  ctx.fillStyle = '#00ff9c';
                  ctx.fillText(ch, x, y);
                  if (y > h && Math.random() > 0.975) drops[i] = 0;
                  else drops[i]++;
              }
              setTimeout(draw, 70);
          }

          window.addEventListener('resize', resize);
          resize();
          draw();
      })();
    </script>
</body>
</html>