Skip to content
Open
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
18 changes: 18 additions & 0 deletions navsphere/content/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1552,6 +1552,24 @@
]
}
]
},
{
"id": "1762493089331",
"title": "收集的网站",
"icon": "FolderKanban",
"description": "",
"enabled": true,
"items": [
{
"id": "1762493107181",
"title": "阿虚同学的储物间 - 做最好的互联网资源导航",
"href": "https://axutongxue.net/",
"description": "这里是阿虚收集的精品网站导航,欢迎前来探索!",
"icon": "/assets/favicon_1762493128447.ico",
"enabled": true
}
],
"subCategories": []
}
]
}
6 changes: 3 additions & 3 deletions navsphere/content/site.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"basic": {
"title": "NavSphere导航",
"description": "收集国内外优秀设计网站、UI设计资源网站、灵感创意网站、素材资源网站,定时更新分享优质产品设计书签。",
"keywords": "设计导航,设计资源,设计工具,设计素材,设计教程"
"title": "笑笑的导航",
"description": "自己的书签导航,平常发现的网站都收集在这",
"keywords": "自己的书签"
},
"appearance": {
"logo": "/assets/images/alogo.webp",
Expand Down
Binary file added public/assets/favicon_1762493128447.ico
Binary file not shown.
295 changes: 23 additions & 272 deletions styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,280 +1,31 @@
@import 'tailwindcss';
@tailwind base;
@tailwind components;
@tailwind utilities;

@custom-variant dark (&:is(.dark *));

@theme {
--color-border: hsl(var(--border));
--color-input: hsl(var(--input));
--font-sans: var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--color-ring: hsl(var(--ring));
--color-background: hsl(var(--background));
--color-foreground: hsl(var(--foreground));

--color-primary: hsl(var(--primary));
--color-primary-foreground: hsl(var(--primary-foreground));

--color-secondary: hsl(var(--secondary));
--color-secondary-foreground: hsl(var(--secondary-foreground));

--color-destructive: hsl(var(--destructive));
--color-destructive-foreground: hsl(var(--destructive-foreground));

--color-muted: hsl(var(--muted));
--color-muted-foreground: hsl(var(--muted-foreground));

--color-accent: hsl(var(--accent));
--color-accent-foreground: hsl(var(--accent-foreground));

--color-popover: hsl(var(--popover));
--color-popover-foreground: hsl(var(--popover-foreground));

--color-card: hsl(var(--card));
--color-card-foreground: hsl(var(--card-foreground));

--radius-lg: var(--radius);
--radius-md: calc(var(--radius) - 2px);
--radius-sm: calc(var(--radius) - 4px);

--animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;

@keyframes accordion-down {
from {
height: 0;
}

to {
height: var(--radix-accordion-content-height);
}
}

@keyframes accordion-up {
from {
height: var(--radix-accordion-content-height);
}

to {
height: 0;
}
}
}

@utility container {
margin-inline: auto;
padding-inline: 2rem;

@media (width >=--theme(--breakpoint-sm)) {
max-width: none;
}

@media (width >=1400px) {
max-width: 1400px;
}
:root {
--background: 0 0% 0%;
--foreground: 0 0% 100%;
}

/*
The default border color has changed to `currentcolor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.

If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {

*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
}
body {
/* 替换成你喜欢的星空/雪山背景图 */
background: url('https://images.unsplash.com/photo-1464802686167-b939a67a06d1?q=80&w=2070&auto=format&fit=crop') no-repeat center center fixed !important;
background-size: cover !important;
color: white;
min-height: 100vh;
}

/* 确保 cursor 样式正常工作 */
@layer utilities {
.cursor-pointer {
cursor: pointer;
}

.hover\:cursor-pointer:hover {
cursor: pointer;
}
/* 定义玻璃拟态类 */
.glass-effect {
background: rgba(255, 255, 255, 0.1) !important;
backdrop-filter: blur(12px) saturate(180%);
-webkit-backdrop-filter: blur(12px) saturate(180%);
border: 1px solid rgba(255, 255, 255, 0.2) !important;
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
transition: transform 0.3s ease, background 0.3s ease;
}

@utility step {
counter-increment: step;

&:before {
@apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;
@apply ml-[-50px] mt-[-4px];
content: counter(step);
}
.glass-effect:hover {
background: rgba(255, 255, 255, 0.15) !important;
transform: translateY(-5px);
}

@utility chunk-container {
@apply shadow-none;

&::after {
content: '';
@apply absolute -inset-4 shadow-xl rounded-xl border;
}
}

@utility no-scrollbar {

/* Hide scrollbar for Chrome, Safari and Opera */
&::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
-ms-overflow-style: none;
/* IE and Edge */
scrollbar-width: none;
/* Firefox */
}

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 240 5.9% 10%;
--primary-foreground: 0 0% 98%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 72.22% 50.59%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 240 5% 64.9%;
--radius: 0.5rem;
--chart-1: 12 76% 61%;
--chart-2: 173 58% 39%;
--chart-3: 197 37% 24%;
--chart-4: 43 74% 66%;
--chart-5: 27 87% 67%;
--sidebar-background: 0 0% 98%;
--sidebar-foreground: 240 5.3% 26.1%;
--sidebar-primary: 240 5.9% 10%;
--sidebar-primary-foreground: 0 0% 98%;
--sidebar-accent: 240 4.8% 95.9%;
--sidebar-accent-foreground: 240 5.9% 10%;
--sidebar-border: 220 13% 91%;
--sidebar-ring: 240 5% 64.9%;
}

.dark {
--background: 240 10% 3.9%;
--foreground: 0 0% 98%;
--card: 240 10% 3.9%;
--card-foreground: 0 0% 98%;
--popover: 240 10% 3.9%;
--popover-foreground: 0 0% 98%;
--primary: 0 0% 98%;
--primary-foreground: 240 5.9% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 240 3.7% 15.9%;
--muted-foreground: 240 5% 64.9%;
--accent: 240 3.7% 15.9%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 240 4.9% 83.9%;
--chart-1: 220 70% 50%;
--chart-2: 160 60% 45%;
--chart-3: 30 80% 55%;
--chart-4: 280 65% 60%;
--chart-5: 340 75% 55%;
--sidebar-background: 240 5.9% 10%;
--sidebar-foreground: 240 4.8% 95.9%;
--sidebar-primary: 224.3 76.3% 48%;
--sidebar-primary-foreground: 0 0% 100%;
--sidebar-accent: 240 3.7% 15.9%;
--sidebar-accent-foreground: 240 4.8% 95.9%;
--sidebar-border: 240 3.7% 15.9%;
--sidebar-ring: 240 4.9% 83.9%;
}
}

@layer base {
* {
@apply border-border;
}

html {
@apply scroll-smooth;
}

body {
@apply bg-background text-foreground overscroll-none;
/* font-feature-settings: "rlig" 1, "calt" 1; */
font-synthesis-weight: none;
text-rendering: optimizeLegibility;
}

button {
@apply cursor-pointer;
}

a {
@apply cursor-pointer;
}

/* 为带有 onClick 的元素添加手型光标 */
[onclick] {
@apply cursor-pointer;
}

/* 为带有 role="button" 的元素添加手型光标 */
[role="button"] {
@apply cursor-pointer;
}

/* 为可点击的交互元素添加手型光标 */
[tabindex]:not([tabindex="-1"]) {
@apply cursor-pointer;
}

@supports (font: -apple-system-body) and (-webkit-appearance: none) {
[data-wrapper] {
@apply min-[1800px]:border-t;
}
}

/* Custom scrollbar styling. Thanks @pranathiperii. */
::-webkit-scrollbar {
width: 5px;
}

::-webkit-scrollbar-track {
background: transparent;
}

::-webkit-scrollbar-thumb {
background: hsl(var(--border));
border-radius: 5px;
}

* {
scrollbar-width: thin;
scrollbar-color: hsl(var(--border)) transparent;
}
}

@media (max-width: 640px) {
.container {
@apply px-4;
}
}
9 changes: 4 additions & 5 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ compatibility_flags = ["nodejs_compat"]
pages_build_output_dir = ".vercel/output/static"

[env.production.vars]
GITHUB_CLIENT_ID = "Ov23lig3bTXpZHrPO1c8"
GITHUB_OWNER = "tianyaxiang"
GITHUB_CLIENT_ID = "Ov23liL2ndwULHY21I9a"
GITHUB_OWNER = "northeast18"
GITHUB_REPO = "NavSphere"
GITHUB_BRANCH = "main"
NEXTAUTH_URL = "https://nav.newkit.site/api/auth"
NEXT_PUBLIC_API_URL="https://nav.newkit.site"

NEXTAUTH_URL = "https://dh.xiaoxiao19.dpdns.org/api/auth"
NEXT_PUBLIC_API_URL="dh.xiaoxiao19.dpdns.org"