mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-18 12:09:29 -07:00
Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a715327f6 | ||
|
|
c111de15b1 | ||
|
|
1b9826f582 | ||
|
|
6a3ce498a9 | ||
|
|
8d48e6347e | ||
|
|
4599a5dfc2 | ||
|
|
7536288baa | ||
|
|
e12c32388b | ||
|
|
4198a5fa90 | ||
|
|
089e9b285a | ||
|
|
60e19fed00 | ||
|
|
626433e67d | ||
|
|
cb5080ce41 | ||
|
|
e2f8317669 | ||
|
|
5d9e32f62b | ||
|
|
b96ecd6042 | ||
|
|
5b7ec62106 | ||
|
|
3ca4a0d803 | ||
|
|
a8d8802d9f | ||
|
|
28782217f1 | ||
|
|
cfcda29524 | ||
|
|
fb498971c7 | ||
|
|
9dbb3cb624 | ||
|
|
129f26dd54 | ||
|
|
d1f9b843c3 | ||
|
|
a7b5ec45ed | ||
|
|
5d82276734 | ||
|
|
b0c4fa8ea7 | ||
|
|
a6f983de5d | ||
|
|
3bc232638a | ||
|
|
67944df12f | ||
|
|
e82fe6cab2 | ||
|
|
819df6b2ed | ||
|
|
dfef87ca55 | ||
|
|
477b6d748a | ||
|
|
31a59c5e9e | ||
|
|
e8cdd12151 | ||
|
|
a8bc17ca12 | ||
|
|
4d04fe1945 | ||
|
|
bafd2aa3b3 | ||
|
|
acf50d10d7 | ||
|
|
30a6a3bd23 |
@@ -60,7 +60,7 @@ representative at an online or offline event.
|
|||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
||||||
reported to the community leaders responsible for enforcement at
|
reported to the community leaders responsible for enforcement at
|
||||||
hi@sped0nwen.com.
|
hi@sped0n.com.
|
||||||
All complaints will be reviewed and investigated promptly and fairly.
|
All complaints will be reviewed and investigated promptly and fairly.
|
||||||
|
|
||||||
All community leaders are obligated to respect the privacy and security of the
|
All community leaders are obligated to respect the privacy and security of the
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ Based on the https://github.com/tylermcrobert/bridget-pictures-www.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
## [Demo Site](https://bridget-demo.sped0nwen.com)
|
## [Demo Site](https://bridget-demo.sped0n.com)
|
||||||
|
|
||||||
To see this theme in action, here is a live [demo site](https://bridget-demo.sped0nwen.com) which is rendered with **Bridget** theme.
|
To see this theme in action, here is a live [demo site](https://bridget-demo.sped0n.com) which is rendered with **Bridget** theme.
|
||||||
|
|
||||||
## Getting Started
|
## Getting Started
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { For, type Accessor, type JSX, type Setter } from 'solid-js'
|
import { For, createEffect, type Accessor, type JSX, type Setter } from 'solid-js'
|
||||||
|
|
||||||
import { useState } from '../state'
|
import { useState } from '../state'
|
||||||
import { decrement, increment, type Vector } from '../utils'
|
import { decrement, increment, type Vector } from '../utils'
|
||||||
@@ -24,6 +24,7 @@ export default function StageNav(props: {
|
|||||||
type NavItem = (typeof navItems)[number]
|
type NavItem = (typeof navItems)[number]
|
||||||
|
|
||||||
// variables
|
// variables
|
||||||
|
let controller: AbortController | undefined
|
||||||
// eslint-disable-next-line solid/reactivity
|
// eslint-disable-next-line solid/reactivity
|
||||||
const navItems = [props.prevText, props.closeText, props.nextText] as const
|
const navItems = [props.prevText, props.closeText, props.nextText] as const
|
||||||
|
|
||||||
@@ -70,6 +71,19 @@ export default function StageNav(props: {
|
|||||||
else if (e.key === 'ArrowRight') nextImage()
|
else if (e.key === 'ArrowRight') nextImage()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
createEffect(() => {
|
||||||
|
if (props.isOpen()) {
|
||||||
|
controller = new AbortController()
|
||||||
|
const abortSignal = controller.signal
|
||||||
|
window.addEventListener('keydown', handleKey, {
|
||||||
|
passive: true,
|
||||||
|
signal: abortSignal
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
controller?.abort()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div class="navOverlay" classList={{ active: props.active() }}>
|
<div class="navOverlay" classList={{ active: props.active() }}>
|
||||||
@@ -80,9 +94,9 @@ export default function StageNav(props: {
|
|||||||
onClick={() => {
|
onClick={() => {
|
||||||
handleClick(item)
|
handleClick(item)
|
||||||
}}
|
}}
|
||||||
onKeyDown={handleKey}
|
|
||||||
onFocus={() => props.setHoverText(item)}
|
onFocus={() => props.setHoverText(item)}
|
||||||
onMouseOver={() => props.setHoverText(item)}
|
onMouseOver={() => props.setHoverText(item)}
|
||||||
|
tabIndex="-1"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</For>
|
</For>
|
||||||
|
|||||||
@@ -38,7 +38,9 @@ const Mobile = lazy(async () => await import('./mobile/layout'))
|
|||||||
function Main(): JSX.Element {
|
function Main(): JSX.Element {
|
||||||
// variables
|
// variables
|
||||||
const [ijs] = createResource(getImageJSON)
|
const [ijs] = createResource(getImageJSON)
|
||||||
const isMobile = window.matchMedia('(hover: none)').matches
|
const isMobile =
|
||||||
|
window.matchMedia('(hover: none)').matches &&
|
||||||
|
!window.navigator.userAgent.includes('Win')
|
||||||
|
|
||||||
// states
|
// states
|
||||||
const [scrollable, setScollable] = createSignal(true)
|
const [scrollable, setScollable] = createSignal(true)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# timeout
|
# timeout
|
||||||
timeout = "1200s"
|
timeout = "1200s"
|
||||||
# your website url
|
# your website url
|
||||||
baseURL = 'https://www.example.com/'
|
baseURL = 'https://bridget-demo.sped0n.com'
|
||||||
# website title
|
# website title
|
||||||
title = 'Bridget'
|
title = 'Bridget'
|
||||||
# don't touch this
|
# don't touch this
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ id = ""
|
|||||||
# Umami Analytics
|
# Umami Analytics
|
||||||
[analytics.umami]
|
[analytics.umami]
|
||||||
data_website_id = "44a4a42d-ec8e-44c9-a38c-7533929e9845"
|
data_website_id = "44a4a42d-ec8e-44c9-a38c-7533929e9845"
|
||||||
src = "https://umami.sped0nwen.com/script.js"
|
src = "https://umami.sped0n.com/script.js"
|
||||||
data_host_url = ""
|
data_host_url = ""
|
||||||
data_domains = "bridget-demo.sped0nwen.com"
|
data_domains = "bridget-demo.sped0n.com"
|
||||||
# Plausible Analytics
|
# Plausible Analytics
|
||||||
[analytics.plausible]
|
[analytics.plausible]
|
||||||
data_domain = ""
|
data_domain = ""
|
||||||
|
|||||||
20
package.json
20
package.json
@@ -49,22 +49,22 @@
|
|||||||
"eslint-plugin-import": "^2.29.1",
|
"eslint-plugin-import": "^2.29.1",
|
||||||
"eslint-plugin-n": "^16.6.2",
|
"eslint-plugin-n": "^16.6.2",
|
||||||
"eslint-plugin-prettier": "^5.1.3",
|
"eslint-plugin-prettier": "^5.1.3",
|
||||||
"eslint-plugin-promise": "^6.1.1",
|
"eslint-plugin-promise": "^6.4.0",
|
||||||
"eslint-plugin-solid": "^0.13.1",
|
"eslint-plugin-solid": "^0.14.1",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"prettier": "3.2.5",
|
"prettier": "3.3.2",
|
||||||
"prettier-plugin-go-template": "^0.0.15",
|
"prettier-plugin-go-template": "^0.0.15",
|
||||||
"prettier-plugin-organize-imports": "^3.2.4",
|
"prettier-plugin-organize-imports": "^4.0.0",
|
||||||
"sass": "^1.71.1",
|
"sass": "^1.77.6",
|
||||||
"terser": "^5.29.2",
|
"terser": "^5.31.1",
|
||||||
"typescript": "^5.4.2",
|
"typescript": "^5.5.3",
|
||||||
"vite": "^5.1.6",
|
"vite": "^5.3.3",
|
||||||
"vite-plugin-solid": "^2.10.2"
|
"vite-plugin-solid": "^2.10.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"gsap": "^3.12.5",
|
"gsap": "^3.12.5",
|
||||||
"solid-js": "^1.8.15",
|
"solid-js": "^1.8.18",
|
||||||
"swiper": "^11.0.7",
|
"swiper": "^11.1.4",
|
||||||
"tiny-invariant": "^1.3.3"
|
"tiny-invariant": "^1.3.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
584
pnpm-lock.yaml
generated
584
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
static/bundled/js/KNt9e0.js
Normal file
1
static/bundled/js/KNt9e0.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user