mirror of
https://github.com/uetchy/namae.git
synced 2025-03-17 04:30:31 +09:00
chore: cosmetic changes
This commit is contained in:
parent
97ef88b8e4
commit
6993407980
@ -1,9 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import styled, { createGlobalStyle } from 'styled-components'
|
import styled, { createGlobalStyle } from 'styled-components'
|
||||||
|
|
||||||
import { useDeferredState } from './hooks/state'
|
|
||||||
import { mobile } from './util/css'
|
|
||||||
import { isStandalone } from './util/pwa'
|
|
||||||
import Welcome from './components/Welcome'
|
import Welcome from './components/Welcome'
|
||||||
import Footer from './components/Footer'
|
import Footer from './components/Footer'
|
||||||
import { Cards, CardContainer } from './components/Cards'
|
import { Cards, CardContainer } from './components/Cards'
|
||||||
@ -20,6 +17,10 @@ import CratesioCard from './components/cards/CratesioCard'
|
|||||||
import RubyGemsCard from './components/cards/RubyGemsCard'
|
import RubyGemsCard from './components/cards/RubyGemsCard'
|
||||||
import { EventReporter } from './components/Analytics'
|
import { EventReporter } from './components/Analytics'
|
||||||
|
|
||||||
|
import { useDeferredState } from './hooks/state'
|
||||||
|
import { mobile } from './util/css'
|
||||||
|
import { isStandalone } from './util/pwa'
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const [query, setQuery] = useDeferredState(1000)
|
const [query, setQuery] = useDeferredState(1000)
|
||||||
|
|
||||||
|
@ -1,12 +1,11 @@
|
|||||||
import React, { Suspense } from 'react'
|
import React, { Suspense } from 'react'
|
||||||
import styled from 'styled-components'
|
import styled from 'styled-components'
|
||||||
import useFetch from 'fetch-suspense'
|
import useFetch from 'fetch-suspense'
|
||||||
import { BarLoader } from 'react-spinners'
|
import BarLoader from 'react-spinners/BarLoader'
|
||||||
import { GoInfo } from 'react-icons/go'
|
import { GoInfo } from 'react-icons/go'
|
||||||
import { Tooltip } from 'react-tippy'
|
import { Tooltip } from 'react-tippy'
|
||||||
import 'react-tippy/dist/tippy.css'
|
|
||||||
|
|
||||||
import { ExternalLink } from './Links'
|
import { ExternalLink } from './Links'
|
||||||
|
import 'react-tippy/dist/tippy.css'
|
||||||
|
|
||||||
class ErrorBoundary extends React.Component {
|
class ErrorBoundary extends React.Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -42,7 +42,7 @@ export default function Welcome() {
|
|||||||
<FaGem /> RubyGems
|
<FaGem /> RubyGems
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<DiRust /> crates.io
|
<DiRust /> Rust
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<IoIosBeer /> Homebrew
|
<IoIosBeer /> Homebrew
|
||||||
|
@ -14,7 +14,7 @@ export default function DomainCard({ name }) {
|
|||||||
alternativeList={[
|
alternativeList={[
|
||||||
`${lowerCase}.dev`,
|
`${lowerCase}.dev`,
|
||||||
`${lowerCase}.io`,
|
`${lowerCase}.io`,
|
||||||
`${lowerCase}.build`,
|
`${lowerCase}.tools`,
|
||||||
`get${lowerCase}.com`,
|
`get${lowerCase}.com`,
|
||||||
]}>
|
]}>
|
||||||
{(name) => (
|
{(name) => (
|
||||||
|
@ -15,8 +15,8 @@ export default function GithubCard({ name }) {
|
|||||||
alternativeList={[
|
alternativeList={[
|
||||||
`${lowerCase}hq`,
|
`${lowerCase}hq`,
|
||||||
`${lowerCase}-team`,
|
`${lowerCase}-team`,
|
||||||
`${capitalize(name)}Team`,
|
|
||||||
`${lowerCase}-org`,
|
`${lowerCase}-org`,
|
||||||
|
`${capitalize(name)}-js`,
|
||||||
]}>
|
]}>
|
||||||
{(name) => (
|
{(name) => (
|
||||||
<DedicatedAvailability
|
<DedicatedAvailability
|
||||||
|
@ -15,6 +15,7 @@ export default function TwitterCard({ name }) {
|
|||||||
`${name.toLowerCase()}app`,
|
`${name.toLowerCase()}app`,
|
||||||
`${name.toLowerCase()}-support`,
|
`${name.toLowerCase()}-support`,
|
||||||
`${capitalize(name)}Team`,
|
`${capitalize(name)}Team`,
|
||||||
|
`${capitalize(name)}Official`,
|
||||||
]}>
|
]}>
|
||||||
{(name) => (
|
{(name) => (
|
||||||
<DedicatedAvailability
|
<DedicatedAvailability
|
||||||
|
Loading…
x
Reference in New Issue
Block a user