Copy and layout improvements.
This commit is contained in:
parent
39eb9e039a
commit
02222a5c16
20 changed files with 464 additions and 652 deletions
|
|
@ -87,18 +87,24 @@
|
|||
>
|
||||
From the Wiki
|
||||
</div>
|
||||
<h2>What is a cooperative studio?</h2>
|
||||
<p>
|
||||
A cooperative studio is a game development company owned and governed by
|
||||
the people who work there. Decisions are made collectively. Profits are
|
||||
shared according to contribution, not ownership stake.
|
||||
</p>
|
||||
<p>
|
||||
The games industry is full of stories about crunch, layoffs, and studios
|
||||
that extract value from workers. Cooperatives are one alternative — not
|
||||
the only one, but one worth
|
||||
<a href="https://wiki.ghostguild.org">practicing together</a>.
|
||||
</p>
|
||||
<template v-if="hasCustomWikiFeature">
|
||||
<h2>{{ wikiFeature.title || DEFAULT_WIKI_FEATURE_TITLE }}</h2>
|
||||
<p v-for="(para, i) in customWikiParagraphs" :key="i">{{ para }}</p>
|
||||
</template>
|
||||
<template v-else>
|
||||
<h2>What is a cooperative studio?</h2>
|
||||
<p>
|
||||
A cooperative studio is a game development company owned and governed
|
||||
by the people who work there. Decisions are made collectively. Profits
|
||||
are shared according to contribution, not ownership stake.
|
||||
</p>
|
||||
<p>
|
||||
The games industry is full of stories about crunch, layoffs, and
|
||||
studios that extract value from workers. Cooperatives are one
|
||||
alternative — not the only one, but one worth
|
||||
<a href="https://wiki.ghostguild.org">practicing together</a>.
|
||||
</p>
|
||||
</template>
|
||||
<p>
|
||||
<a href="https://wiki.ghostguild.org">Read more in the wiki →</a>
|
||||
</p>
|
||||
|
|
@ -121,6 +127,25 @@ const { data: wikiArticles } = await useFetch("/api/wiki/recent", {
|
|||
default: () => [],
|
||||
});
|
||||
|
||||
const DEFAULT_WIKI_FEATURE_TITLE = "What is a cooperative studio?";
|
||||
|
||||
const { data: wikiFeature } = await useFetch(
|
||||
"/api/site-content/homepage.wiki_feature",
|
||||
{ default: () => ({ title: "", body: "" }) }
|
||||
);
|
||||
|
||||
const hasCustomWikiFeature = computed(
|
||||
() => !!wikiFeature.value?.body?.trim()
|
||||
);
|
||||
|
||||
const customWikiParagraphs = computed(() => {
|
||||
const body = wikiFeature.value?.body?.trim() || "";
|
||||
return body
|
||||
.split(/\n{2,}/)
|
||||
.map((p) => p.trim())
|
||||
.filter(Boolean);
|
||||
});
|
||||
|
||||
const circleData = [
|
||||
{
|
||||
value: "community",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue