Used new location of components

This commit is contained in:
Patrick Alvin Alcala 2025-08-28 17:02:06 +08:00
parent f00098687c
commit f1b8768b63
3 changed files with 23 additions and 19 deletions

View file

@ -5,6 +5,7 @@ const websiteName = 'Template'
const websiteDescription = 'This is just a template.' const websiteDescription = 'This is just a template.'
import Background from '../templates/components/Background/Background' import Background from '../templates/components/Background/Background'
import OptimizeBackground from '../templates/components/Optimizer/OptimizeBackground'
--- ---
<html lang="en"> <html lang="en">
@ -18,16 +19,17 @@ import Background from '../templates/components/Background/Background'
</head> </head>
<body id="body"> <body id="body">
<Background image /> <!-- <OptimizeBackground /> -->
<Background color="#0c1b31" />
<slot /> <slot />
<style lang="sass">
@use '/src/styles/variables.sass' as vars
@use '/src/styles/fonts.sass' as fonts
#body
font-family: fonts.$Inter
color: vars.$textColor
</style>
</body> </body>
</html> </html>
<style lang="sass">
@use '/src/styles/variables.sass' as vars
@use '/src/styles/fonts.sass' as fonts
#body
font-family: fonts.$Inter
color: vars.$textColor
</style>

View file

@ -1,16 +1,18 @@
--- ---
import Layout from '../layouts/Layout.astro' import Layout from '../layouts/Layout.astro'
import Button from '../templates/Button/Button.tsx' import Button from '../templates/components/Button/Button'
import Image from '../templates/Image/Image' import Logo from '../templates/components/Logo/Logo'
import Link from '../templates/Link/Link' import OptimizeLogo from '../templates/components/Optimizer/OptimizeLogo'
import Counter from '../components/Counter/Counter.tsx' import Link from '../templates/components/Link/Link'
import Page from '../templates/Page/Page' import Counter from '../components/Counter/Counter'
import Page from '../templates/components/Page/Page'
--- ---
<Layout title="FWT"> <Layout title="FWT">
<Page alignment="column"> <Page alignment="column">
<Link to="https://git.patalcala.com/patalcala9/fwt"> <Link to="https://git.patalcala.com/patalcala9/fwt">
<Image src="fwt.png" size={250} /> <!-- <OptimizeLogo size={250} /> -->
<Logo size={250} />
</Link> </Link>
<h1>Fast WebApp Template</h1> <h1>Fast WebApp Template</h1>

View file

@ -1,8 +1,8 @@
--- ---
import Layout from '../layouts/Layout.astro' import Layout from '../layouts/Layout.astro'
import Button from '../templates/Button/Button.tsx' import Button from '../templates/components/Button/Button.tsx'
import Image from '../templates/Image/Image' import Image from '../templates/components/Image/Image'
import Page from '../templates/Page/Page' import Page from '../templates/components/Page/Page'
--- ---
<Layout title="Home"> <Layout title="Home">