Add first generation

This commit is contained in:
Jared Miller 2026-01-13 08:30:47 -05:00
parent da2672b492
commit 2bd63ee618
Signed by: shmup
GPG key ID: 22B5C6D66A38B06C
4 changed files with 112 additions and 0 deletions

13
index.html Normal file
View file

@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>world news sources</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>world news sources</h1>
<p>loading...</p>
</body>
</html>

1
index.ts Normal file
View file

@ -0,0 +1 @@
console.log("Hello via Bun!");

69
style.css Normal file
View file

@ -0,0 +1,69 @@
body {
max-width: 900px;
margin: 2rem auto;
padding: 0 1rem;
font-family: system-ui, sans-serif;
line-height: 1.5;
}
h1 {
margin-bottom: 0.5rem;
}
h2 {
margin-top: 2rem;
border-bottom: 1px solid #ccc;
padding-bottom: 0.25rem;
}
.country {
margin-bottom: 2rem;
}
.source {
margin: 0.5rem 0;
padding: 0.5rem;
border-left: 3px solid #ddd;
}
.source a {
font-weight: 600;
}
.leaning {
font-size: 0.85rem;
color: #666;
margin-left: 0.5rem;
}
.leaning.left { color: #2563eb; }
.leaning.center-left { color: #3b82f6; }
.leaning.center { color: #6b7280; }
.leaning.center-right { color: #dc2626; }
.leaning.right { color: #b91c1c; }
.leaning.state { color: #7c3aed; }
.description {
font-size: 0.9rem;
color: #444;
margin-top: 0.25rem;
}
nav {
margin-bottom: 2rem;
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
nav a {
padding: 0.25rem 0.5rem;
background: #f3f4f6;
border-radius: 4px;
text-decoration: none;
font-size: 0.85rem;
}
nav a:hover {
background: #e5e7eb;
}

29
tsconfig.json Normal file
View file

@ -0,0 +1,29 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}