Switch to theme-ui 0.6! (#108)

This commit is contained in:
Sam Poder 2021-03-22 14:11:08 +08:00 committed by GitHub
parent f4cadaf167
commit 232dfae448
14 changed files with 628 additions and 608 deletions

View file

@ -1,5 +1,5 @@
import { Card, Text } from 'theme-ui'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
import Icon from './icon'
const unfold = keyframes({

View file

@ -1,7 +1,7 @@
import React from 'react'
import { Box } from 'theme-ui'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
const fadeIn = keyframes({ from: { opacity: 0 }, to: { opacity: 1 } })

View file

@ -1,6 +1,6 @@
import theme from '../lib/theme'
import styled from '@emotion/styled'
import { css, keyframes } from '@emotion/core'
import { css, keyframes } from '@emotion/react'
import Link from 'next/link'
const waveFlag = keyframes`

View file

@ -1,6 +1,6 @@
import React, { Component } from 'react'
import styled from '@emotion/styled'
import { css, keyframes } from '@emotion/core'
import { css, keyframes } from '@emotion/react'
import { Box, Container, Flex, Link, Text } from 'theme-ui'
import theme from '../lib/theme'
import Icon from './icon'

View file

@ -1,7 +1,7 @@
import React from 'react'
import { Box } from 'theme-ui'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
const slideDown = keyframes({
from: { transform: 'translateY(-100%)', opacity: 0 },

View file

@ -1,7 +1,7 @@
import React from 'react'
import { Box } from 'theme-ui'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
const slideUp = keyframes({
from: { transform: 'translateY(100%)', opacity: 0 },

View file

@ -1,7 +1,7 @@
// Full credit to https://joshwcomeau.com/react/animated-sparkles-in-react/
import { useState } from 'react'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
import { range, sample, random } from 'lodash'
import { Text } from 'theme-ui'
import theme from '@hackclub/theme'

View file

@ -10,6 +10,7 @@
"start": "next start"
},
"dependencies": {
"@emotion/react": "^11.1.5",
"@hackclub/icons": "^0.0.9",
"@hackclub/meta": "1.1.0",
"@hackclub/theme": "^0.3.1",
@ -26,6 +27,6 @@
"react-reveal": "^1.2.2",
"react-scrolllock": "^5.0.1",
"react-use-websocket": "2.5.0",
"theme-ui": "^0.3.1"
"theme-ui": "^0.6"
}
}

View file

@ -1,6 +1,6 @@
import React from 'react'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
import { Heading, Container, Button, Text } from 'theme-ui'
import NextLink from 'next/link'
import Head from 'next/head'

View file

@ -10,7 +10,7 @@ import {
Text
} from 'theme-ui'
import styled from '@emotion/styled'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
import { Slide } from 'react-reveal'
import NextLink from 'next/link'
import Head from 'next/head'

View file

@ -17,7 +17,7 @@ import SlideDown from '../components/slide-down'
import FadeIn from '../components/fade-in'
import Icon from '../components/icon'
import Footer from '../components/footer'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
const floating = keyframes`
from {

View file

@ -22,7 +22,7 @@ import Posts from '../components/posts'
import Footer from '../components/footer'
import { timeSince } from '../lib/dates'
import { orderBy, filter, take, map, uniq, reverse } from 'lodash'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
const ShipBadge = props => (
<Badge

View file

@ -9,7 +9,7 @@ import {
Link,
Text
} from 'theme-ui'
import { keyframes } from '@emotion/core'
import { keyframes } from '@emotion/react'
import Head from 'next/head'
import NextLink from 'next/link'
import Meta from '@hackclub/meta'

1209
yarn.lock

File diff suppressed because it is too large Load diff