Re-organized files

This commit is contained in:
Patrick Alvin Alcala 2025-09-15 10:43:56 +08:00
parent ea7be8fb39
commit 621faea4c2
53 changed files with 1434 additions and 1059 deletions

View file

@ -1,9 +1,9 @@
import './Background.sass'
import '../styles/Background.sass'
import { Show, createSignal } from 'solid-js'
import fs from 'fs'
import webpPath from '../../images/background.webp'
import avifPath from '../../images/background.avif'
import noBackground from '../../images/no-background.webp'
import webpPath from '../images/background.webp'
import avifPath from '../images/background.avif'
import noBackground from '../images/no-background.webp'
interface Props {
image?: boolean

View file

@ -1,6 +1,5 @@
import type { ImageMetadata } from 'astro'
import './Box.sass'
import { Show, type JSXElement, createMemo } from 'solid-js'
import '../styles/Box.sass'
import { type JSXElement, createMemo } from 'solid-js'
interface Props {
thickness: number

View file

@ -1,4 +1,4 @@
import './Button.sass'
import '../styles/Button.sass'
import { Show, Switch, Match } from 'solid-js'
interface Props {

View file

@ -1,5 +1,5 @@
import '../styles/Column.sass'
import type { JSXElement } from 'solid-js'
import './Column.sass'
interface Props {
children: JSXElement

View file

@ -1,4 +1,4 @@
import './Footer.sass'
import '../styles/Footer.sass'
import type { JSXElement } from 'solid-js'
interface Props {

View file

@ -1,4 +1,4 @@
import './Form.sass'
import '../styles/Form.sass'
import type { JSXElement } from 'solid-js'
interface Props {

View file

@ -1,7 +1,7 @@
import './HTML.sass'
import '../styles/HTML.sass'
import { type JSXElement, Show } from 'solid-js'
import background1 from '../../images/background.avif'
import background2 from '../../images/background.webp'
import background1 from '../images/background.avif'
import background2 from '../images/background.webp'
interface Props {
title: string
@ -22,15 +22,18 @@ export default (props: Props) => {
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<meta name="name" content={props.name} />
<meta name="description" content={props.description} />
<meta property="og:title" content={props.name} />
<meta name="title" property="og:title" content={props.name} />
<meta property="og:description" content={props.description} />
<meta property="og:type" content="website" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
<Show when={props.font}>
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
</Show>
<Show when={props.preloadBackground}>
<link rel="preload" href={background1.src} as="image" type="image/svg+xml" />
<link rel="preload" href={background2.src} as="image" type="image/svg+xml" />
</Show>
<title>{props.title}</title>
</head>

View file

@ -1,4 +1,4 @@
import './Input.sass'
import '../styles/Input.sass'
import { createSignal } from 'solid-js'
interface Props {

View file

@ -1,4 +1,4 @@
import './Link.sass'
import '../styles/Link.sass'
interface Props {
to: string

View file

@ -1,5 +1,5 @@
import webpPath from '../../images/logo.webp'
import avifPath from '../../images/logo.avif'
import webpPath from '../images/logo.webp'
import avifPath from '../images/logo.avif'
interface Props {
size?: number

View file

@ -1,6 +1,5 @@
import './Navbar.sass'
import { Show } from 'solid-js'
import Row from '../Row/Row'
import '../styles/Navbar.sass'
import Row from './Row'
interface Props {
transparent?: boolean

View file

@ -1,4 +1,4 @@
import './Page.sass'
import '../styles/Page.sass'
import { Show } from 'solid-js'
interface Props {

View file

@ -1,4 +1,4 @@
import './Row.sass'
import '../styles/Row.sass'
import { Show, type JSXElement } from 'solid-js'
interface Props {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 3.6 KiB

Before After
Before After

BIN
fwt/images/sample.avif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
fwt/images/sample.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

18
fwt/index.ts Normal file
View file

@ -0,0 +1,18 @@
export { default as Background } from './components/Background'
export { default as Box } from './components/Box'
export { default as Button } from './components/Button'
export { default as Column } from './components/Column'
export { default as Copyright } from './components/Copyright'
export { default as Footer } from './components/Footer'
export { default as Form } from './components/Form'
export { default as HTML } from './components/HTML'
export { default as Image } from './components/Image'
export { default as Link } from './components/Link'
export { default as Logo } from './components/Logo'
export { default as Navbar } from './components/Navbar'
export { default as Page } from './components/Page'
export { default as Row } from './components/Row'
export { default as OptimizeBackground } from './Optimizers/OptimizeBackground'
export { default as OptimizeImage } from './Optimizers/OptimizeImage'
export { default as OptimizeLogo } from './Optimizers/OptimizeLogo'