44import { Fragment , h , Head , hljs , tw } from "../client_deps.ts" ;
55import { css } from "../server_deps.ts" ;
66import Header from "../components/Header.tsx" ;
7+ import Footer from "../components/Footer.tsx" ;
78import List from "../islands/List.tsx" ;
89
910export default function Index ( ) {
10- const main = tw `max-w-screen-sm mx-auto px(4 sm:4 md:4) space-y-3 mb-8` ;
11+ const main = tw `max-w-screen-sm mx-auto px(4 sm:4 md:4) space-y-3 mb-8 pt-8 ` ;
1112 const projects = tw `max-w-screen-sm mx-auto px(4 sm:4 md:4) space-y-3 mb-8 ` ;
1213 const text = tw `text-gray-600 text-lg` ;
1314
1415 return (
1516 < >
1617 < Head >
17- < title > Python Land</ title >
18+ < title > Python Land - A fast CDN to use statically typed Python modules in Deno. </ title >
1819 < meta
1920 name = "description"
2021 content = "A fast CDN to use statically typed Python modules in Deno."
2122 />
22- < style > { css } </ style >
23+ < link rel = "stylesheet" href = "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.2/font/bootstrap-icons.css" />
24+ < style > { css } </ style >
2325 </ Head >
24- < Header />
26+ < Header />
2527 < section class = { main } >
2628 < p class = { text } > Import from a URL</ p >
2729 < Block code = { 'import np from "https://python.mod.land/pkg/numpy"' } > </ Block >
2830 </ section >
2931 < section class = { projects } >
3032 < p class = { text } > Top Projects</ p >
31- < List />
33+ < List />
3234 </ section >
35+ < Footer />
3336 </ >
3437 ) ;
3538}
@@ -38,10 +41,10 @@ export default function Index() {
3841function Block ( props : any ) {
3942 const block = tw `bg-gray-100 p-3 hljs rounded` ;
4043 // deno-lint-ignore no-explicit-any
41- const code = ( hljs as any ) . highlight ( props . code , { language : 'javascript' } ) . value
44+ const code = ( hljs as any ) . highlight ( props . code , { language : 'javascript' } ) . value
4245 return (
4346 < div class = { block } >
44- < pre > < code dangerouslySetInnerHTML = { { __html : code } } > </ code > </ pre >
47+ < pre > < code dangerouslySetInnerHTML = { { __html : code } } > </ code > </ pre >
4548 </ div >
4649 ) ;
4750}
0 commit comments