|
2 | 2 | // A simple artifact placeholder for PennBook |
3 | 3 | --- |
4 | 4 |
|
5 | | -<div class="pennbook-demo"> |
6 | | - <div class="demo-header"> |
7 | | - <span class="demo-title">News Pipeline Status (Spark / EMR)</span> |
8 | | - <span class="demo-badge success">Job Completed</span> |
| 5 | +<section class="demo-panel pennbook-panel" aria-labelledby="demo-title"> |
| 6 | + <div class="panel-heading"> |
| 7 | + <p class="eyebrow">Pipeline artifact</p> |
| 8 | + <h2 id="demo-title">Spark Data Pipeline</h2> |
9 | 9 | </div> |
10 | | - |
11 | | - <div class="terminal-panel"> |
12 | | - <div class="log-line"><code>[INFO] Starting dataset download...</code></div> |
13 | | - <div class="log-line"><code>[INFO] Seeding DynamoDB with initial news articles...</code></div> |
14 | | - <div class="log-line"><code>[INFO] Building Spark job (mvn clean package)...</code></div> |
15 | | - <div class="log-line"><code>[INFO] Uploading artifacts to S3 bucket...</code></div> |
16 | | - <div class="log-line"><code>[INFO] Submitting job to Livy server at ec2-xxx...</code></div> |
17 | | - <div class="log-line"><code>[INFO] Spark job running on EMR cluster...</code></div> |
18 | | - <div class="log-line"><code>[INFO] Computing PageRank and Inverted Indices...</code></div> |
19 | | - <div class="log-line"><code>[SUCCESS] Pipeline finished. Inverted index updated in DynamoDB.</code></div> |
| 10 | + |
| 11 | + <div class="pennbook-demo-content"> |
| 12 | + <div class="demo-header"> |
| 13 | + <span class="demo-status">Status: <strong>Completed</strong></span> |
| 14 | + <span class="demo-badge success">EMR Cluster Idle</span> |
| 15 | + </div> |
| 16 | + |
| 17 | + <div class="terminal-panel"> |
| 18 | + <div class="log-line"><code>[INFO] [10:00:01] Starting automated news pipeline on AWS EMR...</code></div> |
| 19 | + <div class="log-line"><code>[INFO] [10:00:03] Downloading News_Category_Dataset_v2.json from S3 bucket...</code></div> |
| 20 | + <div class="log-line"><code>[INFO] [10:00:15] Seeding DynamoDB Tables (Users, Articles, Follows)...</code></div> |
| 21 | + <div class="log-line"><code>[INFO] [10:00:22] Compiling Apache Spark job (mvn clean package)...</code></div> |
| 22 | + <div class="log-line"><code>[INFO] [10:00:45] Uploading target/news-pipeline-1.0.jar to S3...</code></div> |
| 23 | + <div class="log-line"><code>[INFO] [10:00:50] Submitting job to Livy server (ec2-xxx.compute-1.amazonaws.com)...</code></div> |
| 24 | + <div class="log-line"><code>[INFO] [10:01:10] Job ID 42: Running Spark context...</code></div> |
| 25 | + <div class="log-line"><code>[INFO] [10:02:30] Phase 1: Filtering stop words and extracting NLP keywords...</code></div> |
| 26 | + <div class="log-line"><code>[INFO] [10:03:15] Phase 2: Building inverted indices for fast search queries...</code></div> |
| 27 | + <div class="log-line"><code>[INFO] [10:04:00] Phase 3: Executing PageRank over user follow graphs...</code></div> |
| 28 | + <div class="log-line"><code>[INFO] [10:05:42] Phase 4: Generating personalized news feed recommendations...</code></div> |
| 29 | + <div class="log-line success"><code>[SUCCESS] [10:06:05] Pipeline finished. 85,000+ articles indexed and updated in DynamoDB.</code></div> |
| 30 | + </div> |
20 | 31 | </div> |
21 | | -</div> |
| 32 | +</section> |
22 | 33 |
|
23 | 34 | <style> |
24 | | - .pennbook-demo { |
| 35 | + .pennbook-demo-content { |
25 | 36 | display: flex; |
26 | 37 | flex-direction: column; |
27 | 38 | gap: 1rem; |
28 | | - padding: 1rem; |
29 | | - background-color: var(--color-surface, #f8fbfb); |
30 | | - border: 1px solid var(--color-border, #e0e0e0); |
31 | | - border-radius: 6px; |
32 | | - font-family: var(--font-mono, monospace); |
33 | | - font-size: 0.85rem; |
34 | 39 | } |
35 | 40 |
|
36 | 41 | .demo-header { |
37 | 42 | display: flex; |
38 | 43 | justify-content: space-between; |
39 | 44 | align-items: center; |
40 | 45 | border-bottom: 1px solid var(--color-border, #e0e0e0); |
41 | | - padding-bottom: 0.5rem; |
| 46 | + padding-bottom: 0.75rem; |
| 47 | + font-family: var(--font-sans, system-ui, sans-serif); |
| 48 | + } |
| 49 | + |
| 50 | + .demo-status { |
| 51 | + font-size: 0.9rem; |
| 52 | + color: var(--color-text-muted, #555); |
42 | 53 | } |
43 | 54 |
|
44 | | - .demo-title { |
45 | | - font-weight: 600; |
| 55 | + .demo-status strong { |
46 | 56 | color: var(--color-text, #111613); |
47 | 57 | } |
48 | 58 |
|
49 | 59 | .demo-badge.success { |
50 | 60 | background-color: #e6f4ea; |
51 | 61 | color: #137333; |
52 | | - padding: 0.2rem 0.5rem; |
| 62 | + padding: 0.25rem 0.6rem; |
53 | 63 | border-radius: 4px; |
54 | | - font-size: 0.75rem; |
| 64 | + font-size: 0.8rem; |
55 | 65 | font-weight: 500; |
56 | 66 | } |
57 | 67 |
|
58 | 68 | .terminal-panel { |
59 | 69 | background-color: #111613; |
60 | 70 | color: #a8b2ac; |
61 | | - padding: 1rem; |
62 | | - border-radius: 4px; |
| 71 | + padding: 1.25rem; |
| 72 | + border-radius: 6px; |
63 | 73 | display: flex; |
64 | 74 | flex-direction: column; |
65 | | - gap: 0.4rem; |
| 75 | + gap: 0.5rem; |
| 76 | + font-family: var(--font-mono, monospace); |
| 77 | + font-size: 0.85rem; |
| 78 | + line-height: 1.4; |
| 79 | + overflow-x: auto; |
| 80 | + } |
| 81 | + |
| 82 | + .log-line { |
| 83 | + white-space: nowrap; |
66 | 84 | } |
67 | 85 |
|
68 | 86 | .log-line code { |
69 | 87 | font-family: inherit; |
70 | 88 | } |
71 | 89 |
|
72 | | - .log-line:last-child { |
| 90 | + .log-line.success { |
73 | 91 | color: #81c995; |
| 92 | + margin-top: 0.5rem; |
74 | 93 | } |
75 | 94 | </style> |
0 commit comments