Adding Astrojs sources.

This commit is contained in:
Benjamin A. Shelton 2026-06-05 14:31:12 -06:00
commit e20f4f45de
Signed by: zancarius
GPG key ID: 8BD42DBD6C337E01
169 changed files with 11389 additions and 0 deletions

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

BIN
public/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

49
public/favicon.svg Normal file
View file

@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="83.649155mm"
height="111.79879mm"
viewBox="0 0 83.649155 111.79879"
version="1.1"
id="svg5"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14, custom)"
sodipodi:docname="cross.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.75366162"
inkscape:cx="-98.187301"
inkscape:cy="272.00536"
inkscape:window-width="1920"
inkscape:window-height="1024"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-65.882284,-39.479829)">
<path
id="rect111"
style="opacity:0.98;fill:#49b8c0;fill-opacity:1;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke fill markers"
d="m 96.349158,39.479829 v 29.21882 H 65.882284 v 18.642273 h 30.466874 v 63.937698 h 0.671277 21.372855 0.67128 V 87.340922 h 30.46687 V 68.698649 h -30.46687 v -29.21882 h -0.67128 -21.372855 z"
sodipodi:nodetypes="ccccccccccccccccc" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 293 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 457 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 455 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
public/images/meta/og.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,4 @@
// Import local modules
import '@modules/mobile-nav'
import '@modules/lazyload'

View file

@ -0,0 +1,55 @@
import $$ from '@utilities/selectors'
import { exists } from '@utilities/helpers'
const Lazyload = function Lazyload()
{
// lazyload our images
const images = $$.wrapper.querySelectorAll('[data-src]')
if ( exists(images) )
{
// options
const options = {
threshold: 0.5
}
const preloadImage = (img) => {
// find and store the image's data-load attribute
const src = img.dataset.src
img.src = src
// add a class of loaded
// we can then use this as a hook for fade-in animations etc
img.classList.add('loaded')
img.removeAttribute('data-src')
}
const lazyLoad = new IntersectionObserver((entries, lazyLoad) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
preloadImage(entry.target)
lazyLoad.unobserve(entry.target)
}
})
}, options)
images.forEach(image => {
lazyLoad.observe(image)
})
}
}()
export default Lazyload

View file

@ -0,0 +1,27 @@
import $$ from '@utilities/selectors'
const MobileNav = function MobileNav()
{
$$.mobileNavToggle.addEventListener('click', function() {
this.classList.toggle('expanded')
$$.mobileNav.classList.toggle('menu-visible')
// set aria-expanded attribute on menu toggle button
if ( this.getAttribute('aria-expanded') === 'false' )
{
this.setAttribute('aria-expanded', 'true')
} else {
this.setAttribute('aria-expanded', 'false')
}
})
}()
export default MobileNav

View file

@ -0,0 +1,39 @@
import $$ from '@utilities/selectors'
/**
* @description Test if the body id is something
* @param {string}
* @return {bool}
*
*/
const page = function(name) {
if (!name) {
return $$.body.getAttribute('id')
}
return ($$.body.getAttribute('id') == name)
}
/**
* @description Check if element exists the page
* @param {string} Element selector
* @param {string} Minimum number of elements
* @return {bool}
*/
const exists = function(el, limit) {
return (el.length > 0)
}
export {
page,
exists
}

View file

@ -0,0 +1,30 @@
const $$ = {
body : document.querySelector('body'),
wrapper : document.getElementById('wrapper'),
header : document.getElementById('header'),
nav : document.getElementById('nav'),
hero : document.getElementById('hero'),
main : document.getElementById('main'),
containerCentre : document.getElementById('container-centre'),
containerRight : document.getElementById('container-right'),
preFooter : document.getElementById('pre-footer'),
footer : document.getElementById('footer'),
mobileNav : document.getElementById('mobile-nav'),
mobileNavToggle : document.getElementById('mobile-nav-toggle')
}
export default $$

View file

@ -0,0 +1,200 @@
//========== Gorko CSS Config ==========//
/**
* BASE SIZE
* All calculations are based on this. It’s recommended that
* you keep it at 1rem because that is the root font size. You
* can set it to whatever you like and whatever unit you like.
*/
$gorko-base-size: 1rem;
/**
* SIZE SCALE
* This is a Major Third scale that powers all the utilities that
* it is relevant for (font-size, margin, padding). All items are
* calcuated off the base size, so change that and cascade across
* your whole project.
*/
$gorko-size-scale: (
'300': $gorko-base-size * 0.8,
'400': $gorko-base-size,
'500': $gorko-base-size * 1.25,
'600': $gorko-base-size * 1.56,
'700': $gorko-base-size * 1.95,
'800': $gorko-base-size * 2.44,
'900': $gorko-base-size * 3.05,
'1000': $gorko-base-size * 3.81,
'1100': $gorko-base-size * 4.76
);
/**
* COLORS
* Colors are shared between backgrounds and text by default.
* You can also use them to power borders, fills or shadows, for example.
*/
$gorko-colors: (
'base': #1c1c1c,
'primary': #01093c,
'secondary': #24e0d0,
'tertiary': #7cdce9,
'highlighter': #f1f0a1,
'grey': #4e5b71,
'light-grey': #b8c9d6,
'white': #fff,
'orange': #db7500,
'purple': #770cb1,
'red': #7c0808,
'blue': #183dd3,
'green': #328b23
);
/**
* CORE CONFIG
* This powers everything from utility class generation to breakpoints
* to enabling/disabling pre-built components/utilities.
*/
$gorko-config: (
'bg': (
'items': $gorko-colors,
'output': 'standard',
'property': 'background'
),
'color': (
'items': $gorko-colors,
'output': 'standard',
'property': 'color'
),
'font': (
'items': (
'base': 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif',
'heading': 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif'
),
'output': 'standard',
'property': 'font-family'
),
'box': (
'items': (
'block': 'block',
'inline-block': 'inline-block',
'flex': 'flex',
'grid': 'grid',
'hidden': 'none'
),
'output': 'responsive',
'property': 'display'
),
'mt': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-top'
),
'mb': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-bottom'
),
'ml': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-left'
),
'mr': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-right'
),
'pt': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-top'
),
'pb': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-bottom'
),
'pl': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-left'
),
'pr': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-right'
),
'text': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'font-size'
),
'leading': (
'items': (
'tight': '1.1',
'normal': '1.6',
'loose': '2'
),
'output': 'standard',
'property': 'line-height'
),
'weight': (
'items': (
'thin': '300',
'regular': '400',
'bold': '700'
),
'output': 'standard',
'property': 'font-weight'
),
'width': (
'items': (
'full': '100%',
'screen': '100vw',
'half': percentage(1/2),
'quarter': percentage(1/4),
'third': percentage(1/3)
),
'output': 'responsive',
'property': 'width'
),
'height': (
'items': (
'full': '100%',
'screen': '100vh'
),
'output': 'standard',
'property': 'height'
),
'length': (
'items': (
'compact': 25ch,
'optimal': 75ch
),
'output': 'standard',
'property': 'max-width'
),
'z': (
'items': (
'-1': -1,
'1': 1,
'2': 2,
'10': 10,
'20': 20
),
'output': 'standard',
'property': 'z-index'
),
'breakpoints': (
'mobileL' : '(min-width : 22.5em)', // 360px
'mobileXL' : '(min-width : 40em)', // 640px
'tablet' : '(min-width : 48em)', // 768px
'laptop' : '(min-width : 64em)', // 1024px
'desktop' : '(min-width : 80em)', // 1280px
'desktopL' : '(min-width : 90em)', // 1440px
'desktopXL' : '(min-width : 120em)' // 1920px
)
);

View file

@ -0,0 +1,3 @@
@import 'config';
@import '../../../node_modules/gorko/gorko.scss';

View file

@ -0,0 +1,17 @@
//========== Functions ==========//
// declare CSS variables quicker in SCSS
// SCSS: v(bg-color);
// output CSS: var(--bg-color);
// also accepts fallbacks
@function v($var, $fallback: null) {
@if($fallback) {
@return var(--#{$var}, #{$fallback});
}
@else {
@return var(--#{$var});
}
}

View file

@ -0,0 +1,5 @@
@import 'variables';
@import 'functions';
@import 'mixins';
@import 'utilities';

View file

@ -0,0 +1,3 @@
//========== Mixins ==========//

View file

@ -0,0 +1,44 @@
//========== Utilities ==========//
// container
.inner {
@include apply-utility('width', 'full');
margin: 0 auto;
max-width: v(max-width);
@include apply-utility('pl', '600');
@include apply-utility('pr', '600');
}
// better vertical rhythm
.flow > * + * {
margin-top: v(gap);
@include media-query('tablet') {
--gap: #{get-size('700')};
}
}
// subtle fade in to lazyloaded images
[data-src] {
opacity: 0;
}
.loaded {
opacity: 1;
transition: opacity v(transition-duration) v(transition-timing);
}
// content only for screen readers
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}

View file

@ -0,0 +1,41 @@
//========== Variables ==========//
:root {
// site
--max-width: 80rem;
// spacing
--gap: #{get-size('600')};
// typography
--base-font-size: #{$gorko-base-size};
--ratio: 1.1;
--text-300: calc((var(--base-font-size) / var(--ratio)) / var(--ratio));
--text-400: calc(var(--text-300) * var(--ratio));
--text-500: calc(var(--text-400) * var(--ratio) * var(--ratio));
--text-600: calc(var(--text-500) * var(--ratio));
--text-700: calc(var(--text-600) * var(--ratio));
--text-800: calc(var(--text-700) * var(--ratio));
--text-900: calc(var(--text-800) * var(--ratio));
--text-1000: calc(var(--text-900) * var(--ratio));
--text-1100: calc(var(--text-1000) * var(--ratio));
// borders
--border-radius: .25rem;
--border-size: .15rem;
--border-size-thick: .3rem;
// transitions
--transition-duration: .25s;
--transition-timing: ease-out;
@include media-query('tablet') {
--ratio: 1.2;
}
@include media-query('laptop') {
--ratio: 1.25;
}
}

View file

@ -0,0 +1,4 @@
@import 'reset';
@import 'typography';
@import 'links';

Some files were not shown because too many files have changed in this diff Show more