This commit is contained in:
Toby Brown 2024-03-05 20:00:44 +00:00
parent a0ea7b6c46
commit e1295809ae
2 changed files with 20 additions and 20 deletions

View file

@ -1,7 +1,7 @@
import React, { useEffect, useState } from 'react'
import styled from '@emotion/styled'
import { css, keyframes } from '@emotion/react'
import { Box, Flex, Link } from 'theme-ui'
import { Box, Container, Flex, Link } from 'theme-ui'
import theme from '../lib/theme'
import Icon from './icon'
import Flag from './flag'
@ -68,7 +68,7 @@ const hoverColor = name =>
slate: 'black',
black: 'slate',
primary: 'error'
}[name] || 'black')
})[name] || 'black'
const slide = keyframes({
from: { transform: 'translateY(-25%)', opacity: 0 },
@ -198,13 +198,13 @@ function Header({ unfixed, color, bgColor, dark, fixed, ...props }) {
const baseColor = dark
? color || 'white'
: color === 'white' && scrolled
? 'black'
: color
? 'black'
: color
const toggleColor = dark
? color || 'snow'
: toggled || (color === 'white' && scrolled)
? 'slate'
: color
? 'slate'
: color
return (
<Root

View file

@ -12,8 +12,8 @@
"format": "prettier --write ."
},
"dependencies": {
"@apollo/client": "^3.9.5",
"@emotion/react": "^11.11.4",
"@apollo/client": "^3.8.8",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@github/time-elements": "^4.0.0",
"@hackclub/icons": "^0.0.14",
@ -21,9 +21,9 @@
"@hackclub/meta": "1.1.32",
"@hackclub/theme": "^0.3.3",
"@mdx-js/loader": "^1.6.22",
"@next/mdx": "^14.1.0",
"@next/mdx": "^14.0.3",
"@octokit/auth-app": "^6.0.1",
"@octokit/core": "^5.1.0",
"@octokit/core": "^5.0.1",
"@octokit/rest": "^20.0.2",
"@sendgrid/mail": "^8.1.1",
"@vercel/kv": "^1.0.1",
@ -32,11 +32,10 @@
"airtable-plus": "^1.0.4",
"animated-value": "^0.2.4",
"animejs": "^3.2.2",
"axios": "^1.6.7",
"axios": "^1.6.2",
"cookies-next": "^4.0.0",
"country-list": "^2.3.0",
"country-list-js": "^3.1.8",
"cursor-effects": "^1.0.15",
"cursor-effects": "^1.0.12",
"date-fns": "^2.30.0",
"devtools-detect": "^4.0.1",
"form-data": "^4.0.0",
@ -45,7 +44,8 @@
"geopattern": "^1.2.3",
"globby": "^11.0.4",
"graphql": "^16.8.1",
"js-confetti": "^0.12.0",
"gsap": "^3.12.4",
"js-confetti": "^0.11.0",
"lodash": "^4.17.21",
"million": "^2.6.4",
"next": "^12.3.1",
@ -68,10 +68,10 @@
"react-ticker": "^1.3.2",
"react-tooltip": "^4.5.1",
"react-tsparticles": "^2.12.2",
"react-use-websocket": "^4.7.0",
"react-use-websocket": "^4.5.0",
"react-wrap-balancer": "^1.1.0",
"recharts": "2.1.12",
"styled-components": "^6.1.8",
"styled-components": "^6.1.1",
"swr": "^2.2.4",
"theme-ui": "^0.14",
"tinytime": "^0.2.6",
@ -80,8 +80,8 @@
"yarn": "^1.22.21"
},
"devDependencies": {
"eslint": "8.57.0",
"eslint-config-next": "14.1.0",
"prettier": "^3.0.3"
"eslint": "8.55.0",
"eslint-config-next": "14.0.3",
"prettier": "^3.2.2"
}
}
}