Extract Header and Footer data to data.js

This commit is contained in:
prototypa
2023-01-21 20:19:56 -05:00
parent 8584376bcb
commit 0dd6497df5

131
src/data.js Normal file
View File

@ -0,0 +1,131 @@
import { getPermalink, getBlogPermalink, getAsset } from './utils/permalinks';
export const headerData = {
links: [
{
text: 'Landing',
links: [
{
text: 'Sass',
href: '#',
},
{
text: 'Startup',
href: '#',
},
{
text: 'Mobile App',
href: '#',
},
],
},
{
text: 'Pages',
links: [
{
text: 'Features',
href: '#',
},
{
text: 'Pricing',
href: '#',
},
{
text: 'About us',
href: '#',
},
{
text: 'Contact',
href: '#',
},
{
text: 'Terms',
href: getPermalink('/terms'),
},
{
text: 'Privacy policy',
href: getPermalink('/privacy'),
},
],
},
{
text: 'Widgets',
href: '#',
},
{
text: 'Blog',
href: getBlogPermalink(),
},
{
text: 'About',
href: '#',
},
],
actions: [
{ type: 'button', text: 'Download', href: 'https://github.com/onwidget/astrowind' }
],
};
export const footerData = {
links: [
{
title: 'Product',
links: [
{ text: 'Features', href: '#' },
{ text: 'Security', href: '#' },
{ text: 'Team', href: '#' },
{ text: 'Enterprise', href: '#' },
{ text: 'Customer stories', href: '#' },
{ text: 'Pricing', href: '#' },
{ text: 'Resources', href: '#' },
],
},
{
title: 'Platform',
links: [
{ text: 'Developer API', href: '#' },
{ text: 'Partners', href: '#' },
{ text: 'Atom', href: '#' },
{ text: 'Electron', href: '#' },
{ text: 'AstroWind Desktop', href: '#' },
],
},
{
title: 'Support',
links: [
{ text: 'Docs', href: '#' },
{ text: 'Community Forum', href: '#' },
{ text: 'Professional Services', href: '#' },
{ text: 'Skills', href: '#' },
{ text: 'Status', href: '#' },
],
},
{
title: 'Company',
links: [
{ text: 'About', href: '#' },
{ text: 'Blog', href: '#' },
{ text: 'Careers', href: '#' },
{ text: 'Press', href: '#' },
{ text: 'Inclusion', href: '#' },
{ text: 'Social Impact', href: '#' },
{ text: 'Shop', href: '#' },
],
},
],
secondaryLinks: [
{ text: 'Terms', href: getPermalink('/terms') },
{ text: 'Privacy Policy', href: getPermalink('/privacy') },
],
socialLinks: [
{ ariaLabel: 'Twitter', icon: 'tabler:brand-twitter', href: '#' },
{ ariaLabel: 'Instagram', icon: 'tabler:brand-instagram', href: '#' },
{ ariaLabel: 'Facebook', icon: 'tabler:brand-facebook', href: '#' },
{ ariaLabel: 'RSS', icon: 'tabler:rss', href: getAsset('/rss') },
{ ariaLabel: 'Github', icon: 'tabler:brand-github', href: 'https://github.com/onwidget/astrowind' },
],
footNote: `
<span class="w-5 h-5 md:w-6 md:h-6 md:-mt-0.5 bg-cover mr-1.5 float-left rounded-sm bg-[url(https://onwidget.com/favicon/favicon-32x32.png)]"></span>
Made by <a class="text-blue-600 hover:underline dark:text-gray-200" href="https://onwidget.com/"> onWidget</a> · All rights reserved.
`,
};