升级风格

This commit is contained in:
teasiu
2026-04-12 12:37:56 +08:00
parent 2e263c753f
commit 344edd86a7
2 changed files with 420 additions and 89 deletions

View File

@@ -6,95 +6,143 @@ import Layout from '@theme/Layout';
import useBaseUrl from "@docusaurus/useBaseUrl";
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Amlogic from '@site/src/components/Amlogic';
import styles from './index.module.css';
const stats = [
{ value: '~3W', label: '满载功耗' },
{ value: '4核', label: 'ARM CPU' },
{ value: '1.6GHz', label: '最高主频' },
{ value: '¥18/年', label: '全年电费' },
];
function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<header className={styles.heroBanner}>
<div className={styles.heroGrid} />
<div className={styles.heroGlow} />
<div className="container">
<img src="https://doc.ecoo.top/img/hinas01.svg" alt="Logo" />
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link className="button button--secondary button--lg" style={{marginTop: "1rem", marginRight: ".5rem", marginLeft: ".5rem", display: "flex"}} to={useBaseUrl("docs/category/机顶盒刷机教程")}>保姆级刷机教程</Link>
<Link className="button button--secondary button--lg" style={{marginTop: "1rem", marginRight: ".5rem", marginLeft: ".5rem", display: "flex"}} to="download">最新固件下载</Link>
<Link className="button button--secondary button--lg" style={{marginTop: "1rem", marginRight: ".5rem", marginLeft: ".5rem", display: "flex"}} to={useBaseUrl("devices")}>设备支持适配表</Link>
</div>
<br></br>
<div className={styles.buttons}>
<Link
className="button button--success button--lg" style={{marginTop: "1rem", marginRight: ".5rem", marginLeft: ".5rem", display: "flex"}}
to={useBaseUrl("news")}>
系统最新升级公告
</Link>
<Link
className="button button--success button--lg" style={{marginTop: "1rem", marginRight: ".5rem", marginLeft: ".5rem", display: "flex"}}
to={useBaseUrl("docs/intro")}>
海纳思系统使用手册
</Link>
<div className={styles.heroContent}>
<img
src="https://doc.ecoo.top/img/hinas01.svg"
alt="HiNas Logo"
className={styles.heroLogo}
/>
<h1 className={styles.heroTitle}>{siteConfig.title}</h1>
<p className={styles.heroSubtitle}>{siteConfig.tagline}</p>
<div className={styles.statsRow}>
{stats.map((s) => (
<div key={s.label} className={styles.statItem}>
<span className={styles.statValue}>{s.value}</span>
<span className={styles.statLabel}>{s.label}</span>
</div>
))}
</div>
<div className={styles.buttonGroup}>
<Link className={clsx(styles.btn, styles.btnPrimary)} to={useBaseUrl('docs/category/机顶盒刷机教程')}>
保姆级刷机教程
</Link>
<Link className={clsx(styles.btn, styles.btnPrimary)} to="download">
最新固件下载
</Link>
<Link className={clsx(styles.btn, styles.btnPrimary)} to={useBaseUrl('devices')}>
设备适配表
</Link>
</div>
<div className={styles.buttonGroup}>
<Link className={clsx(styles.btn, styles.btnSecondary)} to={useBaseUrl('news')}>
系统升级公告
</Link>
<Link className={clsx(styles.btn, styles.btnSecondary)} to={useBaseUrl('docs/intro')}>
海纳思使用手册
</Link>
</div>
</div>
</div>
</header>
);
}
function PolicyPersistence() {
const {siteConfig} = useDocusaurusContext();
function SectionPersistence() {
return (
<div className={styles.policypersistence}>
<div className="container text--center">
<div className="row">
<div className="col" style={{marginBlock: "auto"}}>
<h2>开源免费易用的家用 Linux 服务器系统</h2>
<p>
海纳思系统一个基于开源 Linux Ubuntu 20.04 LTS 打造的 NAS 系统<br />
开发者精心打造开发内置丰富的程序和功能内网穿透网盘共享<br />
远程下载Docker安装个人博客网络建站socks5服务ftp上传下载<br />
webdav接口终端控制一键还原计划任务等<br />
<section className={styles.section}>
<div className="container">
<div className={styles.sectionInner}>
<div className={styles.sectionText}>
<span className={styles.sectionBadge}>开源 · 免费 · 易用</span>
<h2 className={styles.sectionTitle}>家用 Linux 服务器系统</h2>
<p className={styles.sectionDesc}>
海纳思系统基于 Ubuntu 20.04 LTS 打造的 NAS 系统开发者精心内置丰富功能
内网穿透网盘共享远程下载Docker 安装个人博客网络建站
Socks5 服务FTP 上传下载WebDAV 接口终端控制一键还原计划任务等
</p>
</div>
<div style={{marginInline: "auto"}}>
<img src="img/about.png" alt="Policy Persistence" width="400" height="466" />
<div className={styles.sectionImage}>
<img src="img/about.png" alt="系统功能概览" width="400" height="466" />
</div>
</div>
</div>
</div>
</section>
);
}
function PolicyEnforcement() {
const {siteConfig} = useDocusaurusContext();
function SectionEnforcement() {
return (
<div className={styles.policyenforcement}>
<div className="container text--center">
<div className="row">
<div style={{marginInline: "auto"}}>
<img height="250" width="400" src="img/huawei.png" alt="homepage" />
<section className={clsx(styles.section, styles.sectionAlt)}>
<div className="container">
<div className={clsx(styles.sectionInner, styles.sectionReverse)}>
<div className={styles.sectionImage}>
<img src="img/huawei.png" alt="海思机顶盒" height="250" width="400" />
</div>
<div className="col" style={{marginBlock: "auto"}}>
<h2>将千家万户的机顶盒打造成一台超低功耗的 Linux 服务器</h2>
<p>实测功耗约 3 全年无休18/一杯奶茶钱养活它一年<br />
盒子4核心CPU内核频率达1.4GHz-1.6GHz流畅运行各项 NAS 程序<br />
作为家用存储Linux 学习学生技术孵化网络下载组网跳板均可<br />
网页建站内网穿越公网映射科学上网跑脚本定时任务等更佳<br />
我是小盒子也是大世界千家万户都有一个机顶盒开启您的探索之旅</p>
<div className={styles.sectionText}>
<span className={styles.sectionBadge}>变废为宝</span>
<h2 className={styles.sectionTitle}>将机顶盒变成超低功耗服务器</h2>
<p className={styles.sectionDesc}>
实测功耗约 3 全年无休电费 18 /一杯奶茶钱养活它一年
盒子 4 CPU主频达 1.4~1.6GHz流畅运行各类 NAS 程序
</p>
<ul className={styles.featureList}>
<li>家用存储 / Linux 学习 / 学生技术孵化</li>
<li>网页建站 / 内网穿透 / 公网映射</li>
<li>科学上网 / 跑脚本 / 定时任务</li>
</ul>
</div>
</div>
</div>
</div>
</section>
);
}
function OpenCollective() {
return (
<iframe title="Sponsors" src="juanzhu.html" style={{width: "100%", height: "900px", display: "block"}}></iframe>
);
return (
<section className={styles.donateSection}>
<div className="container">
<h2 className={styles.donateTitle}>捐助作者持续开发</h2>
<div className={styles.donateRow}>
<div className={styles.donateCard}>
<img src="img/danote.png" alt="作者赞赏码" />
<p className={styles.donateCaption}>
作者赞赏码<br /><br />
作者"神雕"开发的固件和提供的个人网站为了持续维护和进步呼吁有能力的网友支持本站持续运作和固件持续开发更新不甚感激您的捐助将用于本站的服务器架设和固件升级维护
</p>
</div>
<div className={styles.donateCard}>
<img src="img/alipay.png" alt="支付宝" />
<p className={styles.donateCaption}>
支付宝<br /><br />
可以抽出时间为小白网友提供付费远程协助包括刷机运维疑难解决等需求已组建微信群加微信注明入群将定期邀请加入
</p>
</div>
</div>
</div>
</section>
);
}
export default function Home() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={`e酷网 ${siteConfig.title}`}
@@ -103,8 +151,8 @@ export default function Home() {
<main>
<HomepageFeatures />
<Amlogic />
<PolicyPersistence />
<PolicyEnforcement />
<SectionPersistence />
<SectionEnforcement />
<OpenCollective />
</main>
</Layout>