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

Commit ef7a911

Browse files
authored
feat: home features page (#3)
1 parent c1b360b commit ef7a911

File tree

11 files changed

+93
-54
lines changed

11 files changed

+93
-54
lines changed

pages/_meta.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
{
22
"index": {
33
"type": "page",
4-
"title": "Mog",
4+
"title": "Mix Space",
55
"display": "hidden",
66
"theme": {
77
"layout": "raw"
88
}
9-
},
10-
"github": {
11-
"title": "GitHub ↗",
12-
"type": "page",
13-
"href": "https://github.com/mogland/core",
14-
"newWindow": true
159
}
1610
}

pages/index.mdx

Lines changed: 69 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -101,49 +101,47 @@ import docsCardDark from "../public/console-dark.png";
101101
:global(.feat-darkmode h3) {
102102
font-size: 48px;
103103
}
104-
:global(#search-card) {
104+
:global(#macros-card) {
105105
display: flex;
106106
flex-direction: column;
107107
justify-content: center;
108108
}
109-
:global(#search-card p) {
109+
:global(#macros-card p) {
110110
max-width: 320px;
111111
}
112-
:global(#search-card video) {
113-
position: absolute;
114-
right: 0;
115-
top: 24px;
116-
height: 430px;
117-
pointer-events: none;
118-
max-width: 60%;
112+
:global(#macros-card img:nth-child(2)) {
113+
display: none;
119114
}
120-
:global(#fs-card) {
115+
:global(.dark #macros-card img:nth-child(2)) {
116+
display: initial;
117+
}
118+
:global(.dark #macros-card img:nth-child(1)) {
119+
display: none;
120+
}
121+
:global(#serverless-card) {
121122
min-height: 240px;
122123
}
123-
:global(#fs-card h3) {
124+
:global(#serverless-card h3) {
124125
text-align: left;
125126
width: min(300px, 41%);
126127
min-width: 155px;
127128
}
128-
:global(#a11y-card) {
129+
:global(#analyze-card) {
129130
background-image: url(/assets/high-contrast.png);
130-
background-position: -160px 160px;
131+
background-position: -170px 160px;
131132
}
132133
@media screen and (max-width: 1300px) {
133-
:global(#a11y-card) {
134+
:global(#analyze-card) {
134135
background-image: linear-gradient(to bottom, white, transparent),
135136
url(/assets/high-contrast.png);
136137
}
137138
}
138139
@media screen and (max-width: 1200px) {
139-
:global(#highlighting-card) {
140-
aspect-ratio: auto;
141-
}
142140
:global(.feat-darkmode h3) {
143141
font-size: 4vw;
144142
font-size: min(48px, max(4vw, 30px));
145143
}
146-
:global(#search-card video) {
144+
:global(#macros-card img) {
147145
aspect-ratio: 787/623;
148146
height: auto;
149147
}
@@ -155,15 +153,12 @@ import docsCardDark from "../public/console-dark.png";
155153
:global(#docs-card) {
156154
aspect-ratio: 135/86;
157155
}
158-
:global(#search-card) {
156+
:global(#macros-card) {
159157
aspect-ratio: 8/3;
160158
}
161-
:global(#search-card h3) {
159+
:global(#macros-card h3) {
162160
text-align: left;
163161
}
164-
:global(#highlighting-card) {
165-
background-size: 136%;
166-
}
167162
:global(#a11y-card) {
168163
background-image: url(/assets/high-contrast.png);
169164
background-position: center 160px;
@@ -182,24 +177,24 @@ import docsCardDark from "../public/console-dark.png";
182177
}
183178
}
184179
@media screen and (max-width: 640px) {
185-
:global(#search-card) {
180+
:global(#macros-card) {
186181
aspect-ratio: 2.5/2;
187182
justify-content: flex-start;
188183
align-items: stretch;
189184
min-height: 350px;
190185
}
191-
:global(#search-card h3) {
186+
:global(#macros-card h3) {
192187
text-align: center;
193188
}
194-
:global(#search-card p) {
189+
:global(#macros-card p) {
195190
max-width: 100%;
196191
}
197-
:global(#search-card video) {
192+
:global(#macros-card img) {
198193
position: relative;
199194
margin: 0.75em -1.75em 0;
200195
max-width: calc(100% + 3.5em);
201196
}
202-
:global(.dark #search-card video) {
197+
:global(.dark #macros-card img) {
203198
mix-blend-mode: lighten;
204199
}
205200
}
@@ -211,11 +206,11 @@ import docsCardDark from "../public/console-dark.png";
211206
<Feature index={0} large centered id="docs-card" href="/docs">
212207
<Image src={docsCard} alt="Background" loading="eager" />
213208
<Image src={docsCardDark} alt="Background (Dark)" loading="eager" />
214-
<h3>几分钟内创建<br className="show-on-mobile"/>强大现代的博客网站。</h3>
209+
<h3>几分钟内创建<br className="show-on-mobile"/>强大的现代博客网站。</h3>
215210
</Feature>
216-
<Feature index={1} centered className="card-with-border" href="/docs/why">
211+
<Feature index={1} centered className="card-with-border" href="/docs">
217212
<div className="h-full flex flex-col justify-between">
218-
<h3>部署方式<br className="show-on-mobile" /><span style={{ fontWeight: 300 }}>多样</span>且<span style={{ fontWeight: 300 }}>快速</span>.</h3>
213+
<h3>部署<br className="show-on-mobile" /><span style={{ fontWeight: 300 }}>一行完成</span>.</h3>
219214
<div className='text-left mb-8'>
220215
Mix Space 有多种部署方式,您可以选择最适合您的方式来部署您的 Mix Space。采用 Docker 部署,您可以在几分钟内部署您的博客,而不需要任何专业知识。使用预设脚本部署亦是如此。
221216
</div>
@@ -289,18 +284,53 @@ import docsCardDark from "../public/console-dark.png";
289284
position: 'relative',
290285
mixBlendMode: 'difference',
291286
}}
292-
>黑暗模式 <br/>原生适配.</motion.h3>
287+
>全平台<br/>黑暗模式</motion.h3>
293288
</Feature>
294-
<Feature index={3} href="/services/render-service">
295-
<h3>先进的<br className="show-on-mobile"/>文本语言渲染解决方案。</h3>
296-
<div>
297-
高性能、可靠、可扩展的<strong>文本宏函数</strong>和<strong>标记语言设置</strong>。在渲染过程中,Mog 会将大量的文本预处理工作交给后端服务,从而减轻前端的负担。
289+
<Feature index={3} large id="macros-card" href="/docs">
290+
<div style={{ zIndex: 2}}>
291+
<h3>Markdown + 自定义语法, <br/>丰富您的内容。</h3>
292+
<p>Mix Space 支持自定义 Markdown 内语法,您可以使用自定义语法来丰富您的内容。</p>
298293
</div>
294+
<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]"/>
295+
<img src="/macros.png" alt="Macros" className="absolute w-full h-full inset-0 object-cover object-right-top z-0 dark:hidden"/>
296+
<img src="/macros-dark.png" alt="Macros (Dark)" className="absolute w-full h-full inset-0 object-cover object-right-top z-0 hidden dark:block"/>
297+
</Feature>
298+
<Feature index={4} large id="serverless-card" style={{
299+
color: 'white',
300+
backgroundImage: 'url(/serverless.png), url(/gradient-bg.jpg)',
301+
backgroundSize: '140%, 180%',
302+
backgroundPosition: '130px -8px, top',
303+
backgroundRepeat: 'no-repeat',
304+
textShadow: '0 1px 6px rgb(38 59 82 / 18%)',
305+
aspectRatio: '1.765',
306+
}} href="/docs">
307+
<h3 style={{
308+
marginTop: '-2rem',
309+
}}>
310+
无限扩展、无限可能,<br className="show-on-mobile" />实现歌单解析,追番列表等功能。
311+
</h3>
312+
</Feature>
313+
<Feature index={6} id="analyze-card" className='card-with-border' style={{
314+
backgroundSize: 720,
315+
backgroundRepeat: 'no-repeat',
316+
minHeight: 288,
317+
backgroundImage: 'url(/analyze-dashboard.png)',
318+
}}>
319+
<h3>数据统计面板</h3>
320+
<p>Mix Space 支持访客统计,<br className="show-on-mobile"/>您可以在后台查看您的 <b>网站访问量</b>,<b>访问来源</b>,<b>访问设备</b>等信息。</p>
321+
</Feature>
322+
<Feature index={7}>
323+
<h3>记录生活点滴</h3>
324+
<p>Mix Space 不仅是博客,更是记录生活点滴的个人空间。您可以在 Mix Space 分享您的多彩缤纷的生活。</p>
325+
</Feature>
326+
<Feature index={4}>
327+
<h3>强大的友链系统,<br />促进你与老友的联系。</h3>
328+
<p>Mix Space 的友链系统强大且全面,在后台你可以检测你的老友是否还「健在」<br /> 有了 Mix Space,你的友链一切尽在掌握。</p>
299329
</Feature>
300-
<Feature index={6}>
330+
<Feature index={8} >
301331
<h3>更多特性...</h3>
302-
<p>可插拔主题 / 备份系统 / 独立的评论系统... <strong><i>更多新特性等待您的探索。</i></strong></p>
303-
<p className="subtitle"><Link className="!no-underline" href="/docs">拥有你自己的 Mog →</Link></p>
332+
<p>文件管理 / WebSocket / 友链支持 / 计划任务 / 数据迁移... <strong><i>更多新特性等待您的探索。</i></strong></p>
333+
<p className="subtitle"><Link className="!no-underline" href="/docs">拥有你自己的 Mix Space →</Link></p>
304334
</Feature>
305335
</Features>
306336
</div>

public/analyze-dashboard.png

984 KB
Loading

public/gradient-bg.jpg

473 KB
Loading

public/log.png

1020 KB
Loading

public/logo.png

8.21 KB
Loading

public/macros-dark.png

157 KB
Loading

public/macros.png

162 KB
Loading

public/pty.png

819 KB
Loading

public/serverless.png

1.37 MB
Loading

0 commit comments

Comments
 (0)