feat: wire Footer to PocketBase site_settings
Fetches CV file, email and social links via expand=contacts,contacts.socials. CV rendered as polymorphic Button with download attr; socials and email rendered as Link components.
This commit is contained in:
@@ -5,6 +5,74 @@ export const dynamic = 'force-static';
|
||||
const base = { created: '', updated: '' };
|
||||
|
||||
const FIXTURES: Record<string, unknown[]> = {
|
||||
site_settings: [
|
||||
{
|
||||
id: 'ss1',
|
||||
collectionId: 'site_settings',
|
||||
collectionName: 'site_settings',
|
||||
...base,
|
||||
cv: '',
|
||||
contacts: 'c1',
|
||||
expand: {
|
||||
contacts: {
|
||||
id: 'c1',
|
||||
collectionId: 'contacts',
|
||||
collectionName: 'contacts',
|
||||
...base,
|
||||
email: 'hello@allmy.work',
|
||||
socials: ['s1', 's2'],
|
||||
expand: {
|
||||
socials: [
|
||||
{
|
||||
id: 's1',
|
||||
collectionId: 'contact',
|
||||
collectionName: 'contact',
|
||||
...base,
|
||||
label: 'GitHub',
|
||||
url: 'https://github.com',
|
||||
},
|
||||
{
|
||||
id: 's2',
|
||||
collectionId: 'contact',
|
||||
collectionName: 'contact',
|
||||
...base,
|
||||
label: 'LinkedIn',
|
||||
url: 'https://linkedin.com',
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
contacts: [
|
||||
{
|
||||
id: 'c1',
|
||||
collectionId: 'contacts',
|
||||
collectionName: 'contacts',
|
||||
...base,
|
||||
email: 'hello@allmy.work',
|
||||
socials: ['s1', 's2'],
|
||||
},
|
||||
],
|
||||
contact: [
|
||||
{
|
||||
id: 's1',
|
||||
collectionId: 'contact',
|
||||
collectionName: 'contact',
|
||||
...base,
|
||||
label: 'GitHub',
|
||||
url: 'https://github.com',
|
||||
},
|
||||
{
|
||||
id: 's2',
|
||||
collectionId: 'contact',
|
||||
collectionName: 'contact',
|
||||
...base,
|
||||
label: 'LinkedIn',
|
||||
url: 'https://linkedin.com',
|
||||
},
|
||||
],
|
||||
sections: [
|
||||
{
|
||||
id: '1',
|
||||
|
||||
Reference in New Issue
Block a user