-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathindex.astro
More file actions
60 lines (58 loc) · 2.22 KB
/
index.astro
File metadata and controls
60 lines (58 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
import FontHeadTags from '@framework/system/src/globals/font-import.astro'
import { getContributorsData } from '@framework/system/src/github-util/get-contributors'
import ResourcesInfoBanner from '../components/resources-info-banner'
import ContributorBanner from '../components/contributor-banner'
import Hero from '../components/hero'
import PitchCards from '../components/pitch-cards'
import Footer from '../components/footer'
import '@framework/system/src/globals/global-styles'
import { landingTheme } from '@framework/system/src/themes/themes.css'
import { landingBody } from '@framework/system/src/styles/layouts.css'
import { SocialMetaTags } from '../../../site/src/components/social-meta-tags'
const contributorsData = await getContributorsData()
const GA_TAG_ID = import.meta.env.VITE_GOOGLE_ANALYTICS
---
<!doctype html>
<html class={landingTheme} lang="en">
<head>
<FontHeadTags />
<title>Framework.dev</title>
<meta name="robots" content="noindex" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<SocialMetaTags title="Framework.dev" siteName="landing" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="manifest" href="/site.webmanifest" />
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
<meta charset="UTF-8" />
{
import.meta.env.MODE === 'production' && (
<script
is:inline
async
src={`https://www.googletagmanager.com/gtag/js?id=${import.meta.env.VITE_GOOGLE_ANALYTICS}`}>
</script>
<script is:inline define:vars={{ GA_TAG_ID }}>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
window.gtag = gtag;
gtag('js', new Date());
gtag('config', GA_TAG_ID);
</script>
)
}
</head>
<body>
<Hero />
<section class={landingBody}>
<PitchCards />
<ContributorBanner contributors={contributorsData} />
<ResourcesInfoBanner />
<Footer />
</section>
</body>
</html>