Build initial Astro site

This commit is contained in:
MoI Web Agents
2026-09-18 16:02:50 -04:00
commit c5dc2a24eb
10 changed files with 4292 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store
# jetbrains setting folder
.idea/
+22
View File
@@ -0,0 +1,22 @@
## Development
When starting the dev server, use background mode:
```
astro dev --background
```
Manage the background server with `astro dev stop`, `astro dev status`, and `astro dev logs`.
## Documentation
Full documentation: https://docs.astro.build
Consult these guides before working on related tasks:
- [Adding pages, dynamic routes, or middleware](https://docs.astro.build/en/guides/routing/)
- [Working with Astro components](https://docs.astro.build/en/basics/astro-components/)
- [Using React, Vue, Svelte, or other framework components](https://docs.astro.build/en/guides/framework-components/)
- [Adding or managing content](https://docs.astro.build/en/guides/content-collections/)
- [Adding styles or using Tailwind](https://docs.astro.build/en/guides/styling/)
- [Supporting multiple languages](https://docs.astro.build/en/guides/internationalization/)
+33
View File
@@ -0,0 +1,33 @@
# Ministry of Influence website
Astro static site for `ministryofinfluence.org`.
## Local development
```sh
npm install
npm run dev
```
## Build
```sh
npm run build
```
The deployable output is `dist/`.
## Deployment
The production document root is `/srv/moi-websites/ministry` on the Hostinger
VPS. Agents should retrieve the dedicated deployment values process-locally
from Infisical project `Influence Infrastructure`, environment `prod`, using
the following keys:
- `MOI_HOSTINGER_DEPLOY_HOST`
- `MOI_HOSTINGER_DEPLOY_PORT`
- `MOI_HOSTINGER_DEPLOY_USER`
- `MOI_HOSTINGER_DEPLOY_PRIVATE_KEY`
- `MOI_MINISTRY_SITE_PATH`
Never commit credentials or copy secret values into this repository.
+5
View File
@@ -0,0 +1,5 @@
// @ts-check
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({});
+4126
View File
File diff suppressed because it is too large Load Diff
+20
View File
@@ -0,0 +1,20 @@
{
"name": "ministry-web",
"type": "module",
"version": "0.0.1",
"engines": {
"node": ">=22.12.0"
},
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
},
"dependencies": {
"astro": "^7.3.3"
},
"allowScripts": {
"esbuild": true
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

+9
View File
@@ -0,0 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 128 128">
<path d="M50.4 78.5a75.1 75.1 0 0 0-28.5 6.9l24.2-65.7c.7-2 1.9-3.2 3.4-3.2h29c1.5 0 2.7 1.2 3.4 3.2l24.2 65.7s-11.6-7-28.5-7L67 45.5c-.4-1.7-1.6-2.8-2.9-2.8-1.3 0-2.5 1.1-2.9 2.7L50.4 78.5Zm-1.1 28.2Zm-4.2-20.2c-2 6.6-.6 15.8 4.2 20.2a17.5 17.5 0 0 1 .2-.7 5.5 5.5 0 0 1 5.7-4.5c2.8.1 4.3 1.5 4.7 4.7.2 1.1.2 2.3.2 3.5v.4c0 2.7.7 5.2 2.2 7.4a13 13 0 0 0 5.7 4.9v-.3l-.2-.3c-1.8-5.6-.5-9.5 4.4-12.8l1.5-1a73 73 0 0 0 3.2-2.2 16 16 0 0 0 6.8-11.4c.3-2 .1-4-.6-6l-.8.6-1.6 1a37 37 0 0 1-22.4 2.7c-5-.7-9.7-2-13.2-6.2Z" />
<style>
path { fill: #000; }
@media (prefers-color-scheme: dark) {
path { fill: #FFF; }
}
</style>
</svg>

After

Width:  |  Height:  |  Size: 749 B

+48
View File
@@ -0,0 +1,48 @@
---
const title = 'Ministry of Influence';
const description = 'A civic-media project for understanding power, sharing evidence, and building legitimate influence.';
---
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width" />
<meta name="description" content={description} />
<meta name="generator" content={Astro.generator} />
<title>{title}</title>
</head>
<body>
<main>
<p class="eyebrow">Ministry of Influence</p>
<h1>Understand power.<br /><em>Build influence.</em></h1>
<p class="lede">A civic-media project exploring how shared understanding, trusted evidence, and better coordination can create legitimate public influence.</p>
<div class="actions"><a class="button" href="#about">Enter the Ministry</a><a href="https://influence.tools">Agent tools →</a></div>
<section id="about">
<div><p class="eyebrow">The premise</p><h2>We cannot outspend concentrated power. We can become more capable of understanding and coordinating around it.</h2></div>
<p>Work is beginning with evidence, public-power records, explainers, and experiments in civic participation. This site will grow as the work earns its way into the open.</p>
</section>
<footer><span>© Ministry of Influence</span><a href="https://influence.tools">influence.tools</a></footer>
</main>
</body>
</html>
<style>
:global(*) { box-sizing: border-box; }
:global(html) { background: #10100f; color: #f3eee4; font-family: Georgia, 'Times New Roman', serif; scroll-behavior: smooth; }
:global(body) { margin: 0; }
main { max-width: 1180px; min-height: 100vh; margin: auto; padding: 34px 6vw 28px; display: flex; flex-direction: column; }
.eyebrow { color: #d6b56b; font: 700 .72rem/1.2 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 16vh 0 24px; font-size: clamp(3.6rem, 10vw, 8.4rem); line-height: .91; letter-spacing: -.06em; font-weight: 500; }
h1 em { color: #d6b56b; font-style: normal; }
.lede { max-width: 610px; color: #c8c0b4; font-size: clamp(1.25rem, 2vw, 1.65rem); line-height: 1.45; }
.actions { display: flex; gap: 24px; align-items: center; margin: 28px 0 17vh; font: 600 .95rem system-ui, sans-serif; }
a { color: #f3eee4; text-decoration: none; }
.button { background: #d6b56b; color: #10100f; padding: 14px 18px; }
section { border-top: 1px solid #4a453c; padding-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; }
h2 { max-width: 560px; margin: 0; font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.03; font-weight: 500; }
section > p { color: #c8c0b4; font-size: 1.2rem; line-height: 1.55; margin-top: 0; }
footer { margin-top: auto; padding-top: 80px; display: flex; justify-content: space-between; color: #817b72; font: .8rem system-ui, sans-serif; }
footer a { color: #d6b56b; }
@media (max-width: 700px) { main { padding: 24px; } h1 { margin-top: 16vh; } section { grid-template-columns: 1fr; gap: 24px; } .actions { flex-wrap: wrap; margin-bottom: 15vh; } }
</style>
+5
View File
@@ -0,0 +1,5 @@
{
"extends": "astro/tsconfigs/strict",
"include": [".astro/types.d.ts", "**/*"],
"exclude": ["dist"]
}