@@ -125,20 +125,19 @@ app.get('/', async (_req, res) => {
125125 try {
126126 const links = Object . entries ( CORPUS )
127127 . map ( ( [ key , entry ] ) => {
128- const description = entry . description
129- ? `<div style="color: #666; font-size: 0.9em; margin-top: 5px;">${ entry . description } </div>`
130- : ''
128+ const description = entry . description ? `<div style="color: #666; font-size: 0.9em;">${ entry . description } </div>` : ''
131129 return `
132130 <li>
133- <div style="margin-bottom: 10px ;">
134- <div style="font-weight: bold; color: #555;"> ${ key } </div >
135- <div style="font-size: 0.9em; color: #888;">${ entry . type . toUpperCase ( ) } </div >
136- ${ description }
137- </ div>
138- <div style="display: flex; gap: 10px;" >
139- <a href="/corpus/${ key } /clean" style="flex: 1; text-align: center;">🔍 Clean </a>
140- <a href="/corpus/ ${ key } /gitcasso" style="flex: 1; text-align: center;">🚀 Gitcasso</a >
131+ <div style="display: flex; justify-content: space-between; align-items: center ;">
132+ <div>
133+ <strong> ${ key } </strong> <span style="color: #888;">${ entry . type . toLowerCase ( ) } </span >
134+ </div>
135+ < div style="display: flex; gap: 15px;" >
136+ <a href="/corpus/ ${ key } /clean">🔍 clean</a >
137+ <a href="/corpus/${ key } /gitcasso">🚀 gitcasso </a>
138+ </div >
141139 </div>
140+ ${ description }
142141 </li>
143142 `
144143 } )
@@ -151,36 +150,27 @@ app.get('/', async (_req, res) => {
151150 <title>Corpus Viewer</title>
152151 <style>
153152 body {
154- font-family: -apple- system, BlinkMacSystemFont, 'Segoe UI', Roboto , sans-serif;
155- max-width: 700px ;
156- margin: 50px auto;
157- padding: 20px ;
153+ font-family: system-ui , sans-serif;
154+ max-width: 600px ;
155+ margin: 20px auto;
156+ padding: 10px ;
158157 }
159- h1 { color: #333 ; }
160- ul { list-style: none; padding: 0; }
161- li { margin: 20px 0; padding: 20px ; background: #f8f9fa; border-radius: 8px; border: 1px solid #e9ecef ; }
158+ h1 { margin-bottom: 10px ; }
159+ ul { list-style: none; padding: 0; margin: 0; }
160+ li { margin: 4px 0; padding: 8px 12px ; background: #f9f9f9 ; }
162161 a {
163- display: block;
164- padding: 12px 20px;
165- background: #fff;
162+ color: #0066cc;
166163 text-decoration: none;
167- color: #333;
168- border-radius: 6px;
169- border: 1px solid #dee2e6;
170- transition: all 0.2s;
164+ font-size: 0.9em;
171165 }
172- a:hover:not([style*="pointer-events: none"]) { background: #e9ecef; transform: translateY(-1px); }
173- code { background: #f1f3f4; padding: 2px 4px; border-radius: 3px; font-size: 0.9em; }
166+ a:hover { text-decoration: underline; }
174167 </style>
175168</head>
176169<body>
177- <h1>📄 Corpus Viewer</h1>
178- <p>Select a recorded page to view:</p>
170+ <h1>Corpus Viewer</h1>
179171 <ul>${ links } </ul>
180- <div style="margin-top: 40px; padding: 20px; background: #f8f9fa; border-radius: 8px; border-left: 4px solid #007acc;">
181- <h3>Corpus Types</h3>
182- <p><strong>HAR:</strong> Automated network captures of initial page loads</p>
183- <p><strong>HTML:</strong> Manual SingleFile captures of post-interaction states</p>
172+ <div style="margin-top: 20px; padding: 10px; background: #f9f9f9;">
173+ <strong>HAR:</strong> Network captures | <strong>HTML:</strong> Manual captures
184174 </div>
185175</body>
186176</html>
0 commit comments