Updated
This commit is contained in:
parent
afb5f3a287
commit
db3736b71f
16 changed files with 203 additions and 181 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { $backendUrl } from 'configs/config.api'
|
||||
import { ofetch } from 'ofetch'
|
||||
import { $backendUrl } from '../../../../configs/config.api'
|
||||
|
||||
const URL = $backendUrl.get()
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
11
frontend/src/@dasig/components/Copyright.tsx
Normal file
11
frontend/src/@dasig/components/Copyright.tsx
Normal 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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
|
@ -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}>
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
BIN
frontend/src/assets/images/favicon.png
Normal file
BIN
frontend/src/assets/images/favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
|
|
@ -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} />} />)
|
||||
|
|
|
|||
|
|
@ -1,10 +0,0 @@
|
|||
import { Title } from "@solidjs/meta";
|
||||
|
||||
export default function About() {
|
||||
return (
|
||||
<main>
|
||||
<Title>About</Title>
|
||||
<h1>About</h1>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue