diff --git a/.env b/.env new file mode 100644 index 0000000..c0dc955 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +NUXT_PUBLIC_BASE_URL=https://sn.solsynth.dev +NUXT_PUBLIC_SOLAR_NETWORK_API=https://api.sn.solsynth.dev +NUXT_PUBLIC_SOLIAN_URL=https://sn.solsynth.dev diff --git a/.gitignore b/.gitignore index 183a1c4..5546fe7 100644 --- a/.gitignore +++ b/.gitignore @@ -19,8 +19,3 @@ logs .DS_Store .fleet .idea - -# Local env files -.env -.env.* -!.env.example diff --git a/assets/index.css b/assets/index.css index 7f46ef9..868c5b8 100644 --- a/assets/index.css +++ b/assets/index.css @@ -5,4 +5,9 @@ html, body { html, body, #app, .v-application { overflow: auto !important; + + font-family: "Comfortaa", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", sans-serif; + font-optical-sizing: auto; + font-weight: 500; + font-style: normal; } diff --git a/content/products/solar-network.mdx b/content/products/solar-network.mdx index 53b9856..a720bf3 100644 --- a/content/products/solar-network.mdx +++ b/content/products/solar-network.mdx @@ -2,7 +2,7 @@ thumbnail: /thumbnails/products/solar-network.webp title: Solar Network description: Your all-in-one platform for building and connecting communities. -url: https://lian.solsynth.dev +url: https://sn.solsynth.dev --- Solar Network is an innovative platform that seamlessly integrates social interactions, chat, and voice calls into a single, cohesive experience. With Solar Network, you can effortlessly build and manage your own community. diff --git a/nuxt.config.ts b/nuxt.config.ts index bf92087..5b7ffc6 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -6,11 +6,24 @@ export default defineNuxtConfig({ css: ["@/assets/index.css"], + runtimeConfig: { + public: { + baseUrl: "https://solsynth.dev", + solarNetworkApi: "https://api.sn.solsynth.dev", + solianUrl: "https://sn.solsynth.dev", + }, + }, + app: { head: { title: "Solsynth LLC", titleTemplate: "%s | Solsynth", - link: [{ rel: "icon", type: "image/png", href: "/favicon.png" }], + link: [ + { rel: "icon", type: "image/png", href: "/favicon.png" }, + { rel: "preconnect", href: "https://fonts.googleapis.com" }, + { rel: "preconnect", href: "https://fonts.gstatic.com", crossorigin: "" }, + { rel: "stylesheet", href: "https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Noto+Sans+JP:wght@100..900&family=Noto+Sans+SC:wght@100..900&family=Noto+Sans+TC:wght@100..900&display=swap" }, + ], }, }, diff --git a/pages/index.vue b/pages/index.vue index 05b65e0..5fb771a 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -32,7 +32,7 @@ const { data: products } = await useAsyncData("products", () => queryContent("/p } .content-section { - margin-top: 7.5rem; - margin-bottom: 7.5rem; + margin-top: 3rem; + margin-bottom: 8rem; } diff --git a/pages/posts/[id].vue b/pages/posts/[id].vue index f27d5d8..081016a 100644 --- a/pages/posts/[id].vue +++ b/pages/posts/[id].vue @@ -1,7 +1,82 @@ - + + + diff --git a/pages/products/[...slug].vue b/pages/products/[...slug].vue index c5922bc..fd43b0d 100644 --- a/pages/products/[...slug].vue +++ b/pages/products/[...slug].vue @@ -5,7 +5,7 @@ + @@ -25,3 +37,5 @@ max-height: 64rem; } + diff --git a/utils/seo.ts b/utils/seo.ts new file mode 100644 index 0000000..a7e39c0 --- /dev/null +++ b/utils/seo.ts @@ -0,0 +1,20 @@ +export function createSEOHead(title: string, description: string, url: string) { + return [ + { key: "og:title", property: "og:title", content: title }, + { + key: "og:description", + name: "og:description", + content: description, + }, + { + key: "description", + name: "description", + content: description, + }, + { + hid: 'og:url', + property: 'og:url', + content: useRuntimeConfig().public.baseUrl + '/' + url, + }, + ] +}