Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit fb63299

Browse files
committed
update uwu
Signed-off-by: Innei <[email protected]>
1 parent d022133 commit fb63299

File tree

4 files changed

+44
-23
lines changed

4 files changed

+44
-23
lines changed

components/features/index.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ReactNode } from 'react'
22
import Link from 'next/link'
33
import cn from 'clsx'
4-
import { motion } from 'framer-motion'
4+
import { motion, type HTMLMotionProps, type MotionProps } from 'framer-motion'
55

66
import styles from './index.module.css'
77

@@ -14,7 +14,15 @@ export function Feature({
1414
href,
1515
index,
1616
...props
17-
}) {
17+
}: {
18+
large?: boolean
19+
centered?: boolean
20+
lightOnly?: boolean
21+
children: ReactNode
22+
className?: string
23+
href?: string
24+
index?: number
25+
} & HTMLMotionProps<'div'>) {
1826
return (
1927
<motion.div
2028
initial={{ opacity: 0 }}
@@ -26,7 +34,7 @@ export function Feature({
2634
large && styles.large,
2735
centered && styles.centered,
2836
lightOnly && styles['light-only'],
29-
className
37+
className,
3038
)}
3139
{...props}
3240
>
@@ -53,4 +61,4 @@ export function Feature({
5361

5462
export function Features({ children }: { children: ReactNode }) {
5563
return <div className={styles.features}>{children}</div>
56-
}
64+
}

pages/index.mdx

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
title: Mix Space - An Alternative Personal Space.
33
---
44

5-
import Link from "next/link";
6-
import cn from "clsx";
7-
import { useState } from "react";
8-
import Image from "next/image";
9-
import { motion } from "framer-motion";
10-
import { Features, Feature } from "@components/features";
11-
import styles from "./index.module.css";
12-
import docsCard from "../public/console.png";
13-
import docsCardDark from "../public/console-dark.png";
5+
import Link from 'next/link'
6+
import cn from 'clsx'
7+
import { useState } from 'react'
8+
import Image from 'next/image'
9+
import { motion } from 'framer-motion'
10+
import { Features, Feature } from '@components/features'
11+
import styles from './index.module.css'
12+
import docsCard from '../public/console.png'
13+
import docsCardDark from '../public/console-dark.png'
1414

1515
<div className="home-content">
1616
<div className="content-container">
@@ -19,13 +19,28 @@ import docsCardDark from "../public/console-dark.png";
1919
<p className="subtitle">
2020
<Link className={styles.cta} href="/docs">5 分钟拥有自己的 Mix Space <span>→</span></Link>
2121
</p>
22+
23+
<img
24+
className="uwu"
25+
src="https://cdn.jsdelivr.net/gh/mx-space/.github@main/uwu.png"
26+
/>
27+
2228
</div>
2329
<style jsx>{`
30+
.uwu {
31+
float: right;
32+
height: 230px;
33+
position: absolute;
34+
right: 0;
35+
top: 50%;
36+
transform: translateY(-50%);
37+
}
2438
.content-container {
2539
max-width: 90rem;
2640
padding-left: max(env(safe-area-inset-left), 1.5rem);
2741
padding-right: max(env(safe-area-inset-right), 1.5rem);
2842
margin: 0 auto;
43+
position: relative;
2944
}
3045
.features-container {
3146
margin: 8rem 0 0;
@@ -288,7 +303,7 @@ import docsCardDark from "../public/console-dark.png";
288303
</Feature>
289304
<Feature index={3} large id="macros-card" href="//usage/macros">
290305
<div style={{ zIndex: 2}}>
291-
<h3>Markdown + 自定义语法, <br/>丰富您的内容。</h3>
306+
<h3>Markdown + 自定义语法<br/>丰富您的内容。</h3>
292307
<p>Mix Space 支持自定义 Markdown 内语法,您可以使用自定义语法来丰富您的内容。</p>
293308
</div>
294309
<div className="absolute w-full h-full inset-0 hidden sm:block bg-[linear-gradient(to_right,white_250px,_transparent)] dark:bg-[linear-gradient(to_right,#202020_250px,_transparent)] z-[1]"/>

pages/usage/index.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,6 @@ import { UilArrowCircleUp } from '@components/Icons/ArrowCircleUp'
2424
href={'/usage/serverless'}
2525
title="云函数"
2626
/>
27-
<Card
28-
icon={<UilLifeRing />}
29-
arrow
30-
href={'/usage/bark'}
31-
title="Bark 通知 (WIP)"
32-
/>
3327
<Card
3428
icon={<UilSearchAlt />}
3529
arrow

theme.config.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ import { DocsThemeConfig, useConfig } from 'nextra-theme-docs'
33
import { useRouter } from 'next/router'
44
const logo = (
55
<span>
6-
<img src="/logo.png" />
7-
Mix Space
6+
<img
7+
height={40}
8+
src="https://cdn.jsdelivr.net/gh/mx-space/.github@main/uwu.png"
9+
/>
10+
<span>Mix Space</span>
11+
812
<style jsx>{`
913
span {
1014
padding: 0.5rem 0.5rem 0.5rem 0;
@@ -23,7 +27,7 @@ const logo = (
2327
}
2428
img {
2529
margin-right: 8px;
26-
height: 24px;
30+
height: 40px;
2731
}
2832
span:hover {
2933
mask-position: 100%;

0 commit comments

Comments
 (0)