Skip to content

Commit

Permalink
chore: change thing and form init
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Jun 30, 2023
1 parent 5c9f98d commit 4a1ac0f
Show file tree
Hide file tree
Showing 24 changed files with 607 additions and 42 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Springtide
# Shiro

A clean and modern front-end for [Mix Space](https://github.com/mx-space)
A minimalist personal website embodying the purity of paper and freshness of snow.

A theme for [Mix Space](https://github.com/mx-space)

## Status

Expand Down
4 changes: 2 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ let nextConfig = {
sentryWebpackPlugin({
org: 'inneis-site',

project: 'springtide',
project: 'Shiro',
authToken: process.env.SENTRY_AUTH_TOKEN,
}),
)
Expand All @@ -68,7 +68,7 @@ if (env.SENTRY === 'true' && isProd) {
silent: true,

org: 'inneis-site',
project: 'springtide',
project: 'Shiro',
},
{
// For all available options, see:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Springtide",
"name": "Shiro",
"license": "GPL-3.0",
"private": false,
"version": "0.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/remark/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const parseMarkdown = (markdownText: string): ParserResult => {
.use(rehypeAutolinkHeadings, {
properties: {
className: [
'springtide-anchor opacity-0 hover:opacity-100 transition-opacity duration-200 ease-in-out text-sm relative -bottom-2',
'Shiro-anchor opacity-0 hover:opacity-100 transition-opacity duration-200 ease-in-out text-sm relative -bottom-2',
],
ariaHidden: true,
tabIndex: -1,
Expand Down
14 changes: 11 additions & 3 deletions src/app/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import { useEffect } from 'react'
import { captureException } from '@sentry/nextjs'

import { NotFound404 } from '~/components/common/404'
import { NormalContainer } from '~/components/layout/container/Normal'
import { StyledButton } from '~/components/ui/button'
import { isRequestError, pickStatusCode } from '~/lib/is-error'

// eslint-disable-next-line react/display-name
export default ({ error, reset }: any) => {
useEffect(() => {
captureException(error)
Expand All @@ -21,8 +24,13 @@ export default ({ error, reset }: any) => {
}

return (
<div>
<h2>Something went wrong!</h2>
</div>
<NormalContainer>
<div className="flex min-h-[calc(100vh-10rem)] flex-col center">
<h2>Something went wrong!</h2>
<StyledButton variant="primary" onClick={reset}>
Try again
</StyledButton>
</div>
</NormalContainer>
)
}
11 changes: 11 additions & 0 deletions src/app/friends/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { Metadata } from 'next'
import type { PropsWithChildren } from 'react'

import { NormalContainer } from '~/components/layout/container/Normal'

export const metadata: Metadata = {
title: '朋友们',
}
export default async function (props: PropsWithChildren) {
return <NormalContainer>{props.children}</NormalContainer>
}
Loading

0 comments on commit 4a1ac0f

Please sign in to comment.