Skip to content

Commit 1c47fe7

Browse files
committed
article ai
1 parent d490250 commit 1c47fe7

2 files changed

Lines changed: 77 additions & 44 deletions

File tree

src/components/pages/StoryOfAdventureDetail.tsx

Lines changed: 39 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface Story {
3434
icon: typeof Globe;
3535
theme: 'blue' | 'green' | 'purple' | 'indigo' | 'teal' | 'orange' | string;
3636
content: {
37-
description: string | string[];
37+
description: string | (string | { type: 'heading'; level: 2 | 3; text: string } | { type: 'list'; items: string[] })[];
3838
work: string[];
3939
impact: string | string[];
4040
images?: (string | StoryImage)[];
@@ -268,12 +268,44 @@ export function StoryOfAdventureDetail() {
268268

269269
{/* Description */}
270270
{Array.isArray(selectedStory.content.description) ? (
271-
<div className="space-y-4">
272-
{selectedStory.content.description.map((paragraph, index) => (
273-
<p key={index} className="text-xl text-muted-foreground leading-relaxed">
274-
{paragraph}
275-
</p>
276-
))}
271+
<div className="space-y-6">
272+
{selectedStory.content.description.map((item, index) => {
273+
// Handle heading objects
274+
if (typeof item === 'object' && item !== null && 'type' in item) {
275+
if (item.type === 'heading') {
276+
const HeadingTag = item.level === 2 ? 'h2' : item.level === 3 ? 'h3' : 'h2';
277+
return (
278+
<HeadingTag
279+
key={index}
280+
className={`font-semibold text-gray-900 mt-8 mb-4 first:mt-0 ${
281+
item.level === 2 ? 'text-3xl lg:text-4xl' : 'text-2xl lg:text-3xl'
282+
}`}
283+
>
284+
{item.text}
285+
</HeadingTag>
286+
);
287+
}
288+
// Handle list objects
289+
if (item.type === 'list' && Array.isArray(item.items)) {
290+
return (
291+
<ul key={index} className="list-disc list-outside space-y-3 text-xl text-muted-foreground leading-relaxed ml-6 marker:text-gray-400">
292+
{item.items.map((listItem: string, listIndex: number) => (
293+
<li key={listIndex} className="pl-2">{listItem}</li>
294+
))}
295+
</ul>
296+
);
297+
}
298+
}
299+
// Handle regular text paragraphs
300+
if (typeof item === 'string') {
301+
return (
302+
<p key={index} className="text-xl text-muted-foreground leading-relaxed">
303+
{item}
304+
</p>
305+
);
306+
}
307+
return null;
308+
})}
277309
</div>
278310
) : (
279311
<p className="text-xl text-muted-foreground leading-relaxed whitespace-pre-line">

src/data/content.ts

Lines changed: 38 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1345,71 +1345,72 @@ const contentData = {
13451345
"In early 2020, most people saw news about a virus overseas and assumed it was overblown. Life felt normal. Then within weeks, everything changed.",
13461346
"The argument here is that we're in a similar moment with AI. It still feels optional. Overhyped. Easy to ignore.",
13471347
"It isn't.",
1348-
"Why This Feels Different",
1348+
{ "type": "heading", "level": 2, "text": "Why This Feels Different" },
13491349
"The people inside the AI industry are not speculating about the future. They're reacting to what has already happened in their own jobs.",
13501350
"For years, AI improved steadily. Then in 2025, progress accelerated dramatically. New models weren't just slightly better. They were significantly better, and they arrived faster and faster.",
13511351
"Some developers now describe their work in plain English and return hours later to find a completed, polished product. Not a draft. Not something half working. The finished result.",
13521352
"The shift has been from:",
1353-
"AI as assistant",
1354-
"to",
1355-
"AI as autonomous worker",
1353+
{ "type": "list", "items": ["AI as assistant", "to", "AI as autonomous worker"] },
13561354
"That change happened fast.",
1357-
"Why Coding Came First",
1355+
{ "type": "heading", "level": 2, "text": "Why Coding Came First" },
13581356
"AI labs focused heavily on coding for a strategic reason: better code means better AI.",
13591357
"If AI can help build the next version of itself, improvement speeds up. This creates a feedback loop where each generation helps build a stronger one.",
13601358
"That loop is now real. Companies have publicly stated that their latest models were used to help build and refine themselves.",
13611359
"This is not hypothetical. It is happening.",
1362-
"The Speed of Progress",
1360+
{ "type": "heading", "level": 3, "text": "The Speed of Progress" },
13631361
"The improvement curve has been steep:",
1364-
"2022: Struggled with simple math",
1365-
"2023: Passed professional exams",
1366-
"2024: Wrote functional software",
1367-
"2025: Automated major portions of technical jobs",
1368-
"2026: Began operating with what feels like judgment and taste",
1362+
{ "type": "list", "items": [
1363+
"2022: Struggled with simple math",
1364+
"2023: Passed professional exams",
1365+
"2024: Wrote functional software",
1366+
"2025: Automated major portions of technical jobs",
1367+
"2026: Began operating with what feels like judgment and taste"
1368+
]},
13691369
"Research organizations that measure task completion show the length of tasks AI can do independently has been doubling every few months.",
13701370
"If that trend continues, AI will handle multi-day and multi-week projects soon.",
1371-
"What This Means for Jobs",
1371+
{ "type": "heading", "level": 3, "text": "What This Means for Jobs" },
13721372
"This wave is different from past automation because it affects general cognitive work, not just one skill.",
13731373
"Fields already seeing strong impact:",
1374-
"Law",
1375-
"Finance",
1376-
"Writing and content",
1377-
"Software engineering",
1378-
"Customer service",
1379-
"Medical analysis",
1374+
{ "type": "list", "items": [
1375+
"Law",
1376+
"Finance",
1377+
"Writing and content",
1378+
"Software engineering",
1379+
"Customer service",
1380+
"Medical analysis"
1381+
]},
13801382
"If your job mainly involves reading, writing, analyzing, or making decisions on a computer, AI will likely affect it.",
13811383
"The timeline is not decades away. Industry leaders estimate one to five years. Some believe it could be faster.",
1382-
"Why Many People Still Don't See It",
1384+
{ "type": "heading", "level": 3, "text": "Why Many People Still Don't See It" },
13831385
"Most people try free AI tools and conclude they are limited.",
13841386
"The highest-performing models are typically behind paid tiers and are far more capable. The gap between public perception and current reality is wide.",
13851387
"Those experimenting seriously are often surprised by how much AI can already handle.",
1386-
"What To Do Now",
1388+
{ "type": "heading", "level": 2, "text": "What To Do Now" },
13871389
"This is not about panic. It is about positioning.",
1388-
"Use AI seriously.",
1389-
"Not as a search engine. Integrate it into real work.",
1390-
"Automate parts of your job before someone else does.",
1391-
"The person who learns to produce results faster becomes more valuable immediately.",
1392-
"Build financial flexibility.",
1393-
"Disruption favors those with options.",
1394-
"Lean into what is hardest to replace.",
1395-
"Trust, long-term relationships, regulatory responsibility, physical presence. These may buy time.",
1396-
"Develop adaptability.",
1397-
"The most durable skill now is learning new tools quickly.",
1390+
{ "type": "list", "items": [
1391+
"Use AI seriously. Not as a search engine. Integrate it into real work.",
1392+
"Automate parts of your job before someone else does. The person who learns to produce results faster becomes more valuable immediately.",
1393+
"Build financial flexibility. Disruption favors those with options.",
1394+
"Lean into what is hardest to replace. Trust, long-term relationships, regulatory responsibility, physical presence. These may buy time.",
1395+
"Develop adaptability. The most durable skill now is learning new tools quickly."
1396+
]},
13981397
"Even one hour a day of active experimentation puts someone ahead of most professionals.",
1399-
"The Upside",
1398+
{ "type": "heading", "level": 3, "text": "The Upside" },
14001399
"This is not only a threat.",
14011400
"AI dramatically lowers barriers:",
1402-
"Build software without deep technical skills",
1403-
"Learn new subjects quickly",
1404-
"Prototype business ideas cheaply",
1405-
"Create content and products faster",
1401+
{ "type": "list", "items": [
1402+
"Build software without deep technical skills",
1403+
"Learn new subjects quickly",
1404+
"Prototype business ideas cheaply",
1405+
"Create content and products faster"
1406+
]},
14061407
"Ambition is cheaper now. Knowledge is cheaper now. Building is easier now.",
14071408
"For people who adapt early, the opportunity is enormous.",
1408-
"The Bigger Picture",
1409+
{ "type": "heading", "level": 3, "text": "The Bigger Picture" },
14091410
"AI could accelerate medical research, scientific discovery, and problem solving on a global scale.",
14101411
"It also introduces serious risks: economic disruption, misuse, concentration of power.",
14111412
"The technology is powerful. It is improving rapidly. It is not slowing down.",
1412-
"The Core Message",
1413+
{ "type": "heading", "level": 3, "text": "The Core Message" },
14131414
"This is not a distant future discussion.",
14141415
"AI is already reshaping technical fields. Other industries are next.",
14151416
"The advantage right now is simply awareness and early action.",

0 commit comments

Comments
 (0)