|
|
|
@ -2,6 +2,7 @@ |
|
|
|
|
import Layout from '../Layout.svelte'; |
|
|
|
|
import IconImage from '$/client/components/IconImage.svelte'; |
|
|
|
|
import { developer_admin } from "$/lib/api.js"; |
|
|
|
|
import SEOTricks from "$/client/components/SEOTricks.svelte"; |
|
|
|
|
|
|
|
|
|
const components = [ |
|
|
|
|
{title: "Accordion", icon: "align-justify"}, |
|
|
|
@ -42,8 +43,26 @@ |
|
|
|
|
{title: "WTVideo", icon: "video"}, |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
import { og_base_host, twitter_user } from "$/client/config.js"; |
|
|
|
|
|
|
|
|
|
let og = { |
|
|
|
|
"title": "Bandolier Template", // title of the article |
|
|
|
|
"description": "The example project that is used in the course Learn JavaScript the Hard Way.", // description for inside preview |
|
|
|
|
"url": og_base_host, // URL to article |
|
|
|
|
"type": "website", // not mentioned on linked in but needed |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
let twitter = { |
|
|
|
|
"card": "summary", // must be summary, summary_large_image, app, player |
|
|
|
|
"creator": twitter_user, // @username of content creator |
|
|
|
|
"description": og.description, // max 200 chars |
|
|
|
|
"site": "@lzsthw", // @username of site |
|
|
|
|
"title": og.title, |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<SEOTricks og={ og } twitter={ twitter } /> |
|
|
|
|
|
|
|
|
|
<style> |
|
|
|
|
hero.middle { |
|
|
|
|
border-radius: 0px 0px var(--border-radius) var(--border-radius); |
|
|
|
@ -180,7 +199,7 @@ |
|
|
|
|
<b>{component.title}</b> |
|
|
|
|
</name> |
|
|
|
|
<icon class="layer"> |
|
|
|
|
<a href="{ developer_admin ? `/client/#/bando/components/${ component.title }` : "#needs-admin" }"> |
|
|
|
|
<a href="{ developer_admin ? `/admin/#/bando/components/${ component.title }` : "#needs-admin" }"> |
|
|
|
|
<IconImage name={ component.icon } pattern={ false }/> |
|
|
|
|
</a> |
|
|
|
|
</icon> |
|
|
|
|