Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions app/src/components/layouts/components/Footer/Footer.scss
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.footer {
flex-shrink: 0;
padding: 32px;
padding: var(--space-base);
margin-top: auto;
color: var(--color-body);
background-color: var(--color-canvas);
border-top: 1px solid var(--color-hairline);

@media (width <= 639px) {
padding: var(--space-xxl) var(--space-lg);
padding: var(--space-base) var(--space-lg);
}

&__inner {
Expand All @@ -19,7 +19,7 @@
display: flex;
flex-direction: column;
align-items: center;
gap: var(--space-xs);
gap: var(--space-xxs);
padding: 0;
margin: 0;
}
Expand All @@ -28,7 +28,6 @@
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0 var(--space-xs);
margin: 0;
font-size: var(--type-caption-size);
line-height: 1.5;
Expand All @@ -45,10 +44,9 @@

&__brand {
font-size: var(--type-caption-size);
font-weight: 500;
line-height: 1.5;
letter-spacing: 0;
color: var(--color-ink);
color: var(--color-muted);
}

&__build {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const ToolHeader: React.FC = () => {
})
const data = await res.json()
setStarCount(
typeof data.stargazers_count === 'number' ? String(data.stargazers_count) : '',
typeof data.stargazers_count === 'number' ? String(data.stargazers_count) : '-',
)
} catch {
setStarCount('')
setStarCount('-')
}
}

Expand Down
5 changes: 3 additions & 2 deletions app/src/components/layouts/index.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
.layout {
display: flex;
width: 100%;
height: 100vh;
height: -webkit-fill-available;
height: 100svh;
max-width: 100%;
min-height: 100vh;
min-height: 100svh;
overflow: auto;
flex-direction: column;

Expand Down
17 changes: 1 addition & 16 deletions app/src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Link, useNavigate } from 'react-router-dom'
import { Link } from 'react-router-dom'
import { Braces, Image } from 'lucide-react'
import { HeroConfig, ProductSignals, CapabilityCards, ToolCatalog } from '@/configs/home'
import './Home.scss'
Expand All @@ -7,8 +7,6 @@ import { Button } from 'antd'
const APP_NAME = import.meta.env.VITE_APP_TITLE_UP as string

const Home: React.FC = () => {
const navigate = useNavigate()

return (
<div className="home">
<section className="home__hero" aria-labelledby="home-hero-heading">
Expand Down Expand Up @@ -157,19 +155,6 @@ const Home: React.FC = () => {
协议。若你在日常工作中依赖本地工具链,欢迎通过 Issue 描述场景、通过 PR 改进交互或补齐算法;Star
也会帮助项目被更多人看到。当前主线已接通 JSON 工作台路由;图像与更多格式转换将按模块合入,不在首页伪造「立即体验」入口。
</p>
<p className="home__about-actions">
<Link className="btn-primary" to="/tools/json">
进入 JSON 工作台
</Link>
<a
className="btn-outline"
href="https://github.com/zeMinng/quick-kit"
target="_blank"
rel="noreferrer"
>
GitHub 仓库
</a>
</p>
</div>
</div>
</section>
Expand Down