Compare commits
No commits in common. "7c4f4b133d77f6ff856e3047addccf372172a837" and "64458773d2277fe224879dbc3a360689205d75d6" have entirely different histories.
7c4f4b133d
...
64458773d2
7 changed files with 5 additions and 33 deletions
|
|
@ -13,6 +13,7 @@ export default defineConfig({
|
||||||
robotsTxt(),
|
robotsTxt(),
|
||||||
purgecss({
|
purgecss({
|
||||||
fontFace: true,
|
fontFace: true,
|
||||||
|
keyframes: true,
|
||||||
variables: true,
|
variables: true,
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@ import sharp from 'sharp'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
size?: number
|
size?: number
|
||||||
favicon?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const convertLogo = async (props: Props) => {
|
const convertLogo = async (props: Props) => {
|
||||||
|
|
@ -17,18 +16,6 @@ const convertLogo = async (props: Props) => {
|
||||||
await sharp(webpBuffer).toFile(webpImage)
|
await sharp(webpBuffer).toFile(webpImage)
|
||||||
}
|
}
|
||||||
|
|
||||||
const generateFavicon = async (props: Props) => {
|
|
||||||
const inputSrc = 'src/assets/images/logo.png'
|
|
||||||
const favicon = 'public/favicon.png'
|
|
||||||
|
|
||||||
const faviconBuffer = await sharp(inputSrc).png({ quality: 90 }).resize(50).toBuffer()
|
|
||||||
await sharp(faviconBuffer).toFile(favicon)
|
|
||||||
}
|
|
||||||
|
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
convertLogo(props)
|
convertLogo(props)
|
||||||
|
|
||||||
if (props.favicon) {
|
|
||||||
generateFavicon(props)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,6 @@ interface Props {
|
||||||
edges?: 'curved' | 'rounded' | 'flat'
|
edges?: 'curved' | 'rounded' | 'flat'
|
||||||
design?: 'bu-primary' | 'bu-link' | 'bu-info' | 'bu-success' | 'bu-warning' | 'bu-danger' | 'bu-dark' | 'bu-light' | 'bu-text' | 'bu-ghost' | 'bo-primary' | 'bo-secondary' | 'bo-success' | 'bo-danger' | 'bo-warning' | 'bo-info' | 'bo-light' | 'bo-dark' | 'bo-link'
|
design?: 'bu-primary' | 'bu-link' | 'bu-info' | 'bu-success' | 'bu-warning' | 'bu-danger' | 'bu-dark' | 'bu-light' | 'bu-text' | 'bu-ghost' | 'bo-primary' | 'bo-secondary' | 'bo-success' | 'bo-danger' | 'bo-warning' | 'bo-info' | 'bo-light' | 'bo-dark' | 'bo-link'
|
||||||
submit?: boolean
|
submit?: boolean
|
||||||
newtab?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getBorderRadius = (edge: Props['edges']) => {
|
const getBorderRadius = (edge: Props['edges']) => {
|
||||||
|
|
@ -32,14 +31,14 @@ export default (props: Props) => {
|
||||||
<Show when={props.to}>
|
<Show when={props.to}>
|
||||||
<Switch>
|
<Switch>
|
||||||
<Match when={props.design}>
|
<Match when={props.design}>
|
||||||
<a href={props.to} aria-label={props.label} rel="noopener" target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
|
<a href={props.to} aria-label={props.label} data-astro-prefetch>
|
||||||
<button class={props.design} style={borderRadius}>
|
<button class={props.design} style={borderRadius}>
|
||||||
{props.label || 'Click Me!'}
|
{props.label || 'Click Me!'}
|
||||||
</button>
|
</button>
|
||||||
</a>
|
</a>
|
||||||
</Match>
|
</Match>
|
||||||
<Match when={!props.design}>
|
<Match when={!props.design}>
|
||||||
<a href={props.to} aria-label={props.label} rel="noopener" target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
|
<a href={props.to} aria-label={props.label} data-astro-prefetch>
|
||||||
<button class="button" style={borderRadius}>
|
<button class="button" style={borderRadius}>
|
||||||
{props.label || 'Click Me!'}
|
{props.label || 'Click Me!'}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,12 @@ import '../styles/Link.sass'
|
||||||
interface Props {
|
interface Props {
|
||||||
to: string
|
to: string
|
||||||
children?: any
|
children?: any
|
||||||
newtab?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default (props: Props) => {
|
export default (props: Props) => {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<a href={props.to} aria-label={`Go to ${props.to}`} rel="noopener" target={props.newtab ? '_blank' : '_self'} data-astro-prefetch>
|
<a href={props.to} aria-label={`Go to ${props.to}`} data-astro-prefetch>
|
||||||
{props.children}
|
{props.children}
|
||||||
</a>
|
</a>
|
||||||
</>
|
</>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
import { type JSXElement } from 'solid-js'
|
|
||||||
|
|
||||||
interface Props {
|
|
||||||
left: number
|
|
||||||
right: number
|
|
||||||
top?: number
|
|
||||||
bottom?: number
|
|
||||||
children: JSXElement
|
|
||||||
}
|
|
||||||
|
|
||||||
export default (props: Props) => {
|
|
||||||
return <div style={{ padding: `${props.top || 0}rem ${props.right}rem ${props.bottom || 0}rem ${props.left}rem` }}>{props.children}</div>
|
|
||||||
}
|
|
||||||
|
|
@ -13,8 +13,6 @@ export { default as Navbar } from './components/Navbar'
|
||||||
export { default as Page } from './components/Page'
|
export { default as Page } from './components/Page'
|
||||||
export { default as Row } from './components/Row'
|
export { default as Row } from './components/Row'
|
||||||
export { default as Display } from './components/Display'
|
export { default as Display } from './components/Display'
|
||||||
export { default as Padding } from './components/Padding'
|
|
||||||
export { default as Modal } from './components/Modal'
|
|
||||||
|
|
||||||
export { default as OptimizeBackground } from './Optimizers/OptimizeBackground'
|
export { default as OptimizeBackground } from './Optimizers/OptimizeBackground'
|
||||||
export { default as OptimizeImage } from './Optimizers/OptimizeImage'
|
export { default as OptimizeImage } from './Optimizers/OptimizeImage'
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
@extend .page
|
@extend .page
|
||||||
display: flex
|
display: flex
|
||||||
flex-direction: column
|
flex-direction: column
|
||||||
|
align-items: center
|
||||||
|
|
||||||
.row
|
.row
|
||||||
@extend .column
|
@extend .column
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue