Roadmap to becoming a developer in 2022
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

113 lines
3.4 KiB

2 years ago
---
2 years ago
import '../styles/global.css';
import Navigation from '../components/Navigation.astro';
2 years ago
import OpenSourceBanner from '../components/OpenSourceBanner.astro';
import Footer from '../components/Footer.astro';
import type { SponsorType } from '../components/Sponsor/Sponsor.astro';
import Sponsor from '../components/Sponsor/Sponsor.astro';
import YouTubeBanner from '../components/YouTubeBanner.astro';
import { siteConfig } from '../lib/config';
2 years ago
import Analytics from '../components/Analytics/Analytics.astro';
2 years ago
export interface Props {
2 years ago
title: string;
description?: string;
keywords?: string[];
noIndex?: boolean;
sponsor?: SponsorType;
2 years ago
}
const {
title = siteConfig.title,
description = siteConfig.description,
keywords = siteConfig.keywords,
noIndex = false,
sponsor,
} = Astro.props;
2 years ago
---
<!DOCTYPE html>
2 years ago
<html lang='en'>
<head>
<meta charset='UTF-8' />
<meta name='generator' content={Astro.generator} />
<title>{title}</title>
<meta name='description' content={description} />
<meta name='author' content='Kamran Ahmed' />
<meta name='keywords' content={keywords.join(', ')} />
2 years ago
<!-- TODO: Add when launching -->
<!-- {noIndex && <meta name='robots' content='noindex' />} -->
<!-- TODO: Remove when launching -->
<meta name='robots' content='noindex' />
<meta
name='viewport'
content='width=device-width, user-scalable=yes, initial-scale=1.0, maximum-scale=3.0, minimum-scale=1.0'
/>
<meta http-equiv='Content-Language' content='en' />
<meta name='twitter:card' content='summary_large_image' />
<meta name='twitter:creator' content='@kamranahmedse' />
<meta property='og:image:width' content='1200' />
<meta property='og:image:height' content='630' />
<meta property='og:image' content='https://roadmap.sh/og-img.png' />
<meta property='og:image:alt' content='roadmap.sh' />
<meta property='og:site_name' content='roadmap.sh' />
<meta property='og:title' content={title} />
<meta property='og:description' content={description} />
<meta property='og:type' content='website' />
<meta property='og:url' content='https://roadmap.sh' />
<meta name='mobile-web-app-capable' content='yes' />
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta
name='apple-mobile-web-app-status-bar-style'
content='black-translucent'
/>
<meta name='apple-mobile-web-app-title' content='roadmap.sh' />
<meta name='application-name' content='roadmap.sh' />
<link
rel='apple-touch-icon'
sizes='180x180'
href='/manifest/apple-touch-icon.png'
/>
<meta name='msapplication-TileColor' content='#101010' />
<meta name='theme-color' content='#848a9a' />
<link rel='manifest' href='/manifest/manifest.json' />
<link
rel='icon'
type='image/png'
sizes='32x32'
href='/manifest/icon32.png'
/>
<link
rel='icon'
type='image/png'
sizes='16x16'
href='/manifest/icon16.png'
/>
<link
rel='shortcut icon'
href='/manifest/favicon.ico'
type='image/x-icon'
/>
<link rel='icon' href='/manifest/favicon.ico' type='image/x-icon' />
2 years ago
<slot name='after-header' />
</head>
<body>
<YouTubeBanner />
2 years ago
<Navigation />
<slot />
2 years ago
<OpenSourceBanner />
<Footer />
{sponsor && <Sponsor sponsor={sponsor} />}
2 years ago
<slot name='after-footer' />
<Analytics />
2 years ago
</body>
2 years ago
</html>