mirror of
https://github.com/System-End/site.git
synced 2026-04-19 15:18:18 +00:00
Switch to theme-ui 0.6! (#108)
This commit is contained in:
parent
f4cadaf167
commit
232dfae448
14 changed files with 628 additions and 608 deletions
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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 } })
|
||||
|
||||
|
|
|
|||
|
|
@ -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`
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue