Skip to content

Commit

Permalink
🎨 move constants to a json file
Browse files Browse the repository at this point in the history
  • Loading branch information
thrzl committed Apr 28, 2024
1 parent 6594822 commit 5376672
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 25 deletions.
8 changes: 8 additions & 0 deletions src/data/links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{ "href": "/contact", "text": "Contact" },
{ "href": "/finances", "text": "Finances" },
{
"href": "https://bank.hackclub.com/donations/start/teamillusion",
"text": "Donate"
}
]
22 changes: 22 additions & 0 deletions src/data/sponsors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"logo": "sponsors/eba-engineering.svg",
"url": "https://ebaengineering.com",
"name": "EBA Engineering"
},
{
"logo": "sponsors/first.avif",
"url": "https://www.firstinspires.org/",
"name": "FIRST"
},
{
"logo": "sponsors/hcb.svg",
"url": "https://hackclub.com/fiscal-sponsorship/",
"name": "Hack Club Bank"
},
{
"logo": "sponsors/clf.avif",
"url": "https://clfmd.org/",
"name": "Chesapeake Lighthouse Foundation"
}
]
27 changes: 2 additions & 25 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,8 @@
import Background from '../components/Background.svelte';
import { Marquee } from '@selemondev/svelte-marquee';
import '@selemondev/svelte-marquee/dist/style.css';
let links = [
// { href: '/about', text: 'About' },
{ href: '/contact', text: 'Contact' },
{ href: '/finances', text: 'Finances' },
{ href: 'https://bank.hackclub.com/donations/start/teamillusion', text: 'Donate' }
];
let sponsors = [
{
logo: 'sponsors/eba-engineering.svg',
url: 'https://ebaengineering.com',
name: 'EBA Engineering'
},
{ logo: 'sponsors/first.avif', url: 'https://www.firstinspires.org/', name: 'FIRST' },
{
logo: 'sponsors/hcb.svg',
url: 'https://hackclub.com/fiscal-sponsorship/',
name: 'Hack Club Bank'
},
{
logo: 'sponsors/clf.avif',
url: 'https://clfmd.org/',
name: 'Chesapeake Lighthouse Foundation'
}
];
import links from "../data/links.json";
import sponsors from "../data/sponsors.json"
</script>

<Background text="TEAMILLUSION"/>
Expand Down

0 comments on commit 5376672

Please sign in to comment.