This commit is contained in:
Patrick Alvin Alcala 2025-11-21 15:34:18 +08:00
parent afb5f3a287
commit db3736b71f
16 changed files with 203 additions and 181 deletions

View file

@ -1,5 +1,5 @@
import { $backendUrl } from 'configs/config.api'
import { ofetch } from 'ofetch'
import { $backendUrl } from '../../../../configs/config.api'
const URL = $backendUrl.get()

View file

@ -1,8 +1,8 @@
import { ofetch } from 'ofetch'
import { $backendUrl } from '../../../../configs/config.api'
import { $tokenName, $tokenExpiration } from '../../../../configs/config.security'
import { encryptRsa } from '../../scripts'
import { $backendUrl } from 'configs/config.api'
import { $tokenExpiration, $tokenName } from 'configs/config.security'
import dayjs from 'dayjs'
import encryptRsa from '../../scripts/functions/encryptRsa'
import { ofetch } from 'ofetch'
const URL = $backendUrl.get()
const TOKEN_NAME = $tokenName.get()

View file

@ -0,0 +1,11 @@
import { $companyName, $copyRightYear } from "configs/config.site"
export default () => {
return (
<>
<span>
Copyright © {$copyRightYear.get()} {$companyName.get()} All Rights Reserved.
</span>
</>
)
}

View file

@ -2,6 +2,7 @@ import '../styles/HTML.sass'
import { type JSXElement, Show } from 'solid-js'
import background1 from '../images/background.avif'
import background2 from '../images/background.webp'
import { $fontSource } from '../../../configs/config.site'
interface Props {
name: string
@ -30,7 +31,7 @@ export default (props: Props) => {
<meta property="og:description" content={props.description} />
<meta property="og:type" content="website" />
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
<Show when={props.font}>
<Show when={$fontSource.get() === 'cdn'}>
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
</Show>
<Show when={props.preloadBackground}>

View file

@ -1,3 +1,3 @@
export { default as Column } from './components/Column'
export { default as HTML } from './components/HTML'
export { default as Page } from './components/Page'
export { default as Column } from './components/Column'

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View file

@ -1,23 +1,10 @@
// // src/entry-server.tsx
// import { createHandler, StartServer } from '@solidjs/start/server'
// import dotenv from 'dotenv'
// dotenv.config({ path: 'env/.env.site' })
// import { HTML } from './_dasig'
// const websiteName = process.env.WEBSITE_NAME || 'Dasig - Solid'
// const websiteDescription = process.env.WEBSITE_DESCRIPTION || 'A template for fast development (Solid Version)'
// const author = process.env.AUTHOR || 'Patrick Alvin Alcala'
// const font = process.env.FONT
// export default createHandler(() => <StartServer document={({ assets, children, scripts }) => <HTML name={websiteName} description={websiteDescription} author={author} children={children} assets={assets} scripts={scripts} font={font} />} />)
import { createHandler, StartServer } from '@solidjs/start/server'
import { $websiteName, $websiteDescription, $yourName, $font } from '../configs/config.site'
import { HTML } from '~/@dasig'
import { $companyName, $font, $websiteDescription, $websiteName } from '../configs/config.site'
const websiteName = $websiteName.get() || 'Dasig - Solid'
const websiteDescription = $websiteDescription.get() || 'A template for fast development (Solid Version)'
const author = $yourName.get() || 'Patrick Alvin Alcala'
const websiteName = $websiteName.get()
const websiteDescription = $websiteDescription.get()
const author = $companyName.get()
const font = $font.get()
export default createHandler(() => <StartServer document={({ assets, children, scripts }) => <HTML name={websiteName} description={websiteDescription} author={author} children={children} assets={assets} scripts={scripts} font={font} />} />)

View file

@ -1,10 +0,0 @@
import { Title } from "@solidjs/meta";
export default function About() {
return (
<main>
<Title>About</Title>
<h1>About</h1>
</main>
);
}

View file

@ -1,8 +1,16 @@
@use './global'
@use './variables'
@use '../../configs/design.site' as design
@use 'sass:color'
:root
background-color: variables.$background
color-scheme: light dark
background-color: light-dark(design.$lightBackground, design.$darkBackground)
transition: background-color 0.6s ease-out
.title
color: light-dark(color.adjust(design.$lightBackground, $blackness: 70%), color.adjust(design.$darkBackground, $lightness: 70%))
transition: background-color 0.6s ease-out
a
margin-right: 1rem