mirror of https://github.com/MaxLeiter/Drift
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			26 lines
		
	
	
		
			808 B
		
	
	
	
		
			TypeScript
		
	
			
		
		
	
	
			26 lines
		
	
	
		
			808 B
		
	
	
	
		
			TypeScript
		
	
import Head from 'next/head'
 | 
						|
import styles from '../styles/Home.module.css'
 | 
						|
import { Page } from '@geist-ui/core'
 | 
						|
 | 
						|
import Header from '../components/header'
 | 
						|
import MyPosts from '../components/my-posts'
 | 
						|
 | 
						|
const Home = ({ theme, changeTheme }: { theme: "light" | "dark", changeTheme: () => void }) => {
 | 
						|
  return (
 | 
						|
    <Page className={styles.container} width="100%">
 | 
						|
      <Head>
 | 
						|
        <title>Drift</title>
 | 
						|
        <meta name="description" content="A self-hostable clone of GitHub Gist" />
 | 
						|
      </Head>
 | 
						|
      <Page.Header>
 | 
						|
        <Header theme={theme} changeTheme={changeTheme} />
 | 
						|
      </Page.Header>
 | 
						|
      <Page.Content paddingTop={"var(--gap)"} width={"var(--main-content-width)"} margin="0 auto" className={styles.main}>
 | 
						|
        <MyPosts />
 | 
						|
      </Page.Content>
 | 
						|
    </Page >
 | 
						|
  )
 | 
						|
}
 | 
						|
 | 
						|
export default Home
 |