-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from shaniit-org/dev
404 page added
- Loading branch information
Showing
7 changed files
with
145 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
import { FaHome } from 'react-icons/fa'; | ||
|
||
export default { | ||
id: 'homePage', | ||
icon: FaHome, | ||
title: 'Home Page', | ||
name: 'homePage', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'SEO', | ||
name: 'seo', | ||
type: 'seo' | ||
}, | ||
{ | ||
title: 'Sections', | ||
name: 'sections', | ||
type: 'array', | ||
of: [ | ||
{ | ||
name: 'Hero', | ||
type: 'homePage.hero' | ||
}, | ||
{ | ||
title: 'Highlight', | ||
name: 'Highlight', | ||
type: 'reference', | ||
to: [ | ||
{ | ||
type: 'news' | ||
}, | ||
{ | ||
type: 'event' | ||
} | ||
] | ||
}, | ||
{ | ||
name: 'News', | ||
type: 'homePage.news' | ||
}, | ||
{ | ||
name: 'Donate', | ||
title: 'Donate', | ||
type: 'banner' | ||
}, | ||
{ | ||
name: 'Events', | ||
type: 'homePage.events' | ||
} | ||
] | ||
} | ||
], | ||
preview: { | ||
select: { | ||
title: 'seo.title', | ||
media: 'seo.ogImage' | ||
}, | ||
/** | ||
* @param {import('sanity').PreviewProps} props | ||
*/ | ||
prepare({ title, media, subtitle }) { | ||
return { | ||
title: title || 'Home Page', | ||
subtitle: subtitle, | ||
media | ||
}; | ||
} | ||
} | ||
id: 'homePage', | ||
icon: FaHome, | ||
title: 'Home Page', | ||
name: 'homePage', | ||
type: 'document', | ||
fields: [ | ||
{ | ||
title: 'SEO', | ||
name: 'seo', | ||
type: 'seo' | ||
}, | ||
{ | ||
title: 'Sections', | ||
name: 'sections', | ||
type: 'array', | ||
of: [ | ||
{ | ||
name: 'Hero', | ||
type: 'homePage.hero' | ||
}, | ||
{ | ||
title: 'Highlight', | ||
name: 'Highlight', | ||
type: 'reference', | ||
to: [ | ||
{ | ||
type: 'news' | ||
}, | ||
{ | ||
type: 'event' | ||
} | ||
] | ||
}, | ||
{ | ||
name: 'News', | ||
type: 'homePage.news' | ||
}, | ||
{ | ||
name: 'Donate', | ||
title: 'Donate', | ||
type: 'banner' | ||
}, | ||
{ | ||
name: 'Events', | ||
type: 'homePage.events' | ||
} | ||
] | ||
} | ||
], | ||
preview: { | ||
select: { | ||
title: 'seo.title', | ||
media: 'seo.ogImage' | ||
}, | ||
/** | ||
* @param {import('sanity').PreviewProps} props | ||
*/ | ||
prepare({ title, media, subtitle }) { | ||
return { | ||
title: title || 'Home Page', | ||
subtitle: subtitle, | ||
media | ||
}; | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script> | ||
import { page } from '$app/stores'; | ||
import SubHero from '$lib/components/common/SubHero.svelte'; | ||
import { Link } from 'carbon-icons-svelte'; | ||
import { Button } from 'carbon-components-svelte'; | ||
$: meta = { | ||
title: 'SIIT - Shan Institute of Information Technology', | ||
description: $page && $page?.error?.message | ||
}; | ||
$: domain = import.meta.env.VITE_PUBLIC_DOMAIN; | ||
</script> | ||
<svelte:head> | ||
<title>{meta.title}</title> | ||
<meta name="title" content={meta.title} /> | ||
<meta name="description" content={meta.description} /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content={domain} /> | ||
<meta property="og:title" content={meta.title} /> | ||
<meta property="og:description" content={meta.description} /> | ||
<meta property="og:image" content={'/images/siit.png'} /> | ||
<meta property="twitter:card" content="summary_large_image" /> | ||
<meta property="twitter:url" content={domain} /> | ||
<meta property="twitter:title" content={meta.title} /> | ||
<meta property="twitter:description" content={meta.description} /> | ||
<meta property="twitter:image" content="/images/siit.png" /> | ||
</svelte:head> | ||
<SubHero title={'Oops 😥'} /> | ||
<div class="section-container box"> | ||
<div> | ||
<p class="mb-4 text-sm lg:text-4xl lg:leading-[2]"> | ||
Page you are looking does not exist or has been removed. | ||
</p> | ||
<Button size="field" href="/" class="text-white border border-blue-500 max-w-max" icon={Link} | ||
>Go to Home</Button | ||
> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.