The solar network product page

This commit is contained in:
2025-07-30 00:52:17 +08:00
parent 73b3e8d0bd
commit 7986f40598
4 changed files with 176 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
<template>
<main class="container mx-auto h-full px-8 flex flex-col gap-16">
<div class="text-center py-56 flex flex-col items-center justify-center">
<img src="/favicon.png" class="w-28 h-28 mb-4" />
<nuxt-img src="/favicon.png" class="w-28 h-28 mb-4" />
<h1 class="text-5xl font-extrabold mb-3">We <span id="who-are-we" /></h1>
<p class="text-xl mb-8">
We are a group of friends that make software, hardware and any stuff

View File

@@ -0,0 +1,143 @@
<template>
<main class="container mx-auto h-full px-8 flex flex-col gap-16">
<div class="text-center py-56 flex flex-col items-center justify-center">
<img src="/solar-network/icon.png" class="w-28 h-28 mb-4" />
<h1 class="text-5xl font-extrabold mb-3">Solar Network</h1>
<p class="text-xl mb-8">
The amazing social network for technology, programming, ACG fans.
</p>
<n-alert
type="warning"
title="Under Construction"
class="max-w-lg mx-auto mb-8"
closable
>
<n-marquee>
<div style="margin-right: 64px">
小羊懒得施工产品介绍所以懂得都懂不懂得我也不好多说如果你真的知道可以去看我们的宣传片如果你连宣传片都不知道在哪里的话我也不知道怎么办了
</div>
</n-marquee>
</n-alert>
<n-space justify="center">
<n-button type="primary" size="large" round tag="a" href="#features">
Explore features
</n-button>
<n-button type="default" size="large" round tag="a" href="#download">
Download
</n-button>
</n-space>
</div>
<div id="features" class="pb-56">
<client-only>
<n-grid cols="1 m:2 l:2" responsive="screen" x-gap="32" y-gap="16">
<n-gi>
<div class="flex items-center justify-center">
<iframe
width="560"
height="315"
src="https://www.youtube-nocookie.com/embed/Pek0cLDAol4?si=f3J3Kqto5u-Nc_5f"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
></iframe>
</div>
</n-gi>
<n-gi>
<div
class="flex justify-center text-right h-full py-8 px-4 flex flex-col"
>
<h2 class="text-3xl font-bold mb-3">Features</h2>
<p class="text-lg mb-1">
As the alert described, this part is under construction. For now
you can check out the video on the left.
</p>
<p class="text-md">
如果你看得懂这行字就说明你有可能访问不了
YouTube你可以去哔哩哔哩上搜一下 Solar Network
我懒得放链接了
</p>
</div>
</n-gi>
</n-grid>
</client-only>
</div>
<div id="download" class="pb-56">
<client-only>
<n-grid cols="1 m:2 l:2" responsive="screen" x-gap="32" y-gap="16">
<n-gi>
<div
class="flex justify-center text-left h-full py-8 px-4 flex flex-col"
>
<h2 class="text-3xl font-bold mb-3">Download</h2>
<p class="text-lg mb-1">
Get the latest version of Solar Network for your device.
</p>
<p class="text-lg">
File-hosting & versioning by
<a
class="underline"
href="https://github.com/Solsynth/HyperNet.Surface"
target="_blank"
>GitHub</a
>
</p>
</div>
</n-gi>
<n-gi>
<div class="flex items-center justify-center flex-col">
<n-card title="Latest Release">
<p>
<code>{{ latestRelease.data.value?.tag_name }}</code>
</p>
<p class="font-bold text-lg">
{{ latestRelease.data.value?.name }}
</p>
<n-button
type="primary"
tag="a"
target="_blank"
round
class="mt-4"
:href="latestRelease.data.value?.html_url"
>
Go to GitHub and Download
<template #icon>
<n-icon>
<launch-round />
</n-icon>
</template>
</n-button>
</n-card>
</div>
</n-gi>
</n-grid>
</client-only>
</div>
</main>
</template>
<script lang="ts" setup>
import {
NSpace,
NButton,
NGrid,
NGi,
NCard,
NAlert,
NIcon,
NMarquee,
} from "naive-ui";
import { Octokit } from "@octokit/rest";
import { LaunchRound } from "@vicons/material";
const latestRelease = useAsyncData("sn-latest-release", async () => {
const octo = new Octokit({});
const resp = await octo.repos.getLatestRelease({
owner: "Solsynth",
repo: "Solian",
});
return resp.data;
});
</script>