Skip to content

Commit

Permalink
Merge pull request #50 from bjcarlson42/redesign
Browse files Browse the repository at this point in the history
feat: redesign
  • Loading branch information
bjcarlson42 committed Oct 4, 2021
2 parents 4b77ff6 + 49bd582 commit be6b255
Show file tree
Hide file tree
Showing 78 changed files with 1,925 additions and 5,960 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/cron.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions components/ButtondownData.js

This file was deleted.

43 changes: 18 additions & 25 deletions components/Container.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,34 @@
import React from 'react'
import { useColorMode, Flex, Text, Link, IconButton, SimpleGrid, Box } from '@chakra-ui/react'
import { FiGithub, FiTwitter, FiLinkedin, FiYoutube, FiMail } from "react-icons/fi"

import { Footer } from '../components/Footer'
import {
useColorModeValue,
Flex,
Box,
} from '@chakra-ui/react'
import Footer from '../components/Footer'
import Navigation from '../components/Navigation'
import MobileNavigation from '../components/MobileNavigation'
import MobileNavigationTop from '../components/MobileNavigationTop'

import Hero from './Hero'
import { useRouter } from 'next/router'

const Container = ({ children }) => {
const { colorMode } = useColorMode()
const bgColor = {
light: 'white',
dark: '#15161a'
}
const color = {
light: 'black',
dark: 'white'
}

const router = useRouter()
return (
<>
<Box h={8} bgColor={useColorModeValue("rgb(248, 250, 252)", "gray.900")} />
<Navigation />
<MobileNavigationTop page="Home" />
<Box h={8} bgColor={useColorModeValue("rgb(248, 250, 252)", "gray.900")} />
<Flex
as="main"
justifyContent="center"
flexDirection="column"
bg={bgColor[colorMode]}
color={color[colorMode]}
px={[0, 4, 4]}
mt={0, 8, 8}
bg={useColorModeValue("#ffffff", "#15161a")}
color={useColorModeValue("#000000", "#ffffff")}
>
{children}
{/* hero outside main Flex to avoid px */}
{router.pathname == '/' && <Hero />}
<Flex px={4} flexDir="column" minH="90vh">
{children}
</Flex>
<Footer />
</Flex>
<MobileNavigation />
</>
)
}
Expand Down
36 changes: 1 addition & 35 deletions components/CustomIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,38 +82,4 @@ export const MailIcon = (props) => (
</g>
</svg>
</Icon>
)

export const CodeIcon = (props) => (
<Icon {...props}>
<svg viewBox="0 0 24 24">
<g
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<polyline points="16 18 22 12 16 6"></polyline>
<polyline points="8 6 2 12 8 18"></polyline>
</g>
</svg>
</Icon>
)

export const WOTDIcon = (props) => (
<Icon {...props}>
<svg viewBox="0 0 24 24">
<g
fill="none"
stroke="currentColor"
strokeWidth="2"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"></path>
<path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"></path>
</g>
</svg>
</Icon>
)
)
1 change: 1 addition & 0 deletions components/DarkModeSwitch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const DarkModeSwitch = () => {
}
return (
<IconButton
variant="ghost"
aria-label="Toggle dark mode"
icon={colorMode === 'dark' ? <SunIcon /> : <MoonIcon />}
onClick={toggleColorMode}
Expand Down
82 changes: 0 additions & 82 deletions components/ExperienceBox.js

This file was deleted.

74 changes: 0 additions & 74 deletions components/FeaturedProjectCard.js

This file was deleted.

62 changes: 0 additions & 62 deletions components/Flutter25.js

This file was deleted.

Loading

1 comment on commit be6b255

@vercel
Copy link

@vercel vercel bot commented on be6b255 Oct 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.