Adding Astrojs sources.
32
astro.config.mjs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// @ts-check
|
||||
import { defineConfig } from 'astro/config';
|
||||
import mdx from '@astrojs/mdx';
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import { unified } from '@astrojs/markdown-remark';
|
||||
import { ScriptureLinks } from './src/utils/remark';
|
||||
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
base: "/sundays",
|
||||
trailingSlash: "always",
|
||||
site: "https://bashelton.com",
|
||||
integrations: [mdx()],
|
||||
markdown: {
|
||||
processor: unified({
|
||||
remarkPlugins: [ScriptureLinks],
|
||||
}),
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
/*css: {
|
||||
transformer: "lightningcss",
|
||||
},
|
||||
build: {
|
||||
cssMinify: false,
|
||||
},*/
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
port: 8080,
|
||||
},
|
||||
});
|
||||
6237
package-lock.json
generated
Normal file
20
package.json
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"name": "astro-sundays",
|
||||
"type": "module",
|
||||
"version": "0.0.1",
|
||||
"engines": {
|
||||
"node": ">=22.12.0"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "astro dev",
|
||||
"build": "astro build",
|
||||
"preview": "astro preview",
|
||||
"astro": "astro"
|
||||
},
|
||||
"dependencies": {
|
||||
"@astrojs/mdx": "^6.0.1",
|
||||
"@tailwindcss/vite": "^4.3.0",
|
||||
"astro": "^6.4.2",
|
||||
"tailwindcss": "^4.3.0"
|
||||
}
|
||||
}
|
||||
BIN
public/favicon.ico
Normal file
|
After Width: | Height: | Size: 655 B |
BIN
public/favicon.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
49
public/favicon.svg
Normal 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 |
BIN
public/images/diagrams/diagram-2026-01-04-1.jpg
Normal file
|
After Width: | Height: | Size: 152 KiB |
BIN
public/images/headers/1990265447220908032.jpg
Normal file
|
After Width: | Height: | Size: 282 KiB |
BIN
public/images/headers/1990265448189902848-cropped.jpg
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
public/images/headers/1990265448189902848.jpg
Normal file
|
After Width: | Height: | Size: 263 KiB |
BIN
public/images/headers/1993100767633211392-prostrate-shepherd.jpg
Normal file
|
After Width: | Height: | Size: 210 KiB |
BIN
public/images/headers/1993100767859732480-prostrate-shepherd.jpg
Normal file
|
After Width: | Height: | Size: 251 KiB |
BIN
public/images/headers/abstract-metallic-cubes-rounded.jpg
Normal file
|
After Width: | Height: | Size: 151 KiB |
BIN
public/images/headers/abstract-metallic-cubes.jpg
Normal file
|
After Width: | Height: | Size: 142 KiB |
BIN
public/images/headers/baptism-of-jesus-cropped.jpg
Normal file
|
After Width: | Height: | Size: 136 KiB |
BIN
public/images/headers/baptism-of-jesus.jpg
Normal file
|
After Width: | Height: | Size: 233 KiB |
BIN
public/images/headers/disciples-before-a-village-source.jpg
Normal file
|
After Width: | Height: | Size: 363 KiB |
BIN
public/images/headers/disciples-before-a-village.jpg
Normal file
|
After Width: | Height: | Size: 228 KiB |
BIN
public/images/headers/golden-scroll.jpg
Normal file
|
After Width: | Height: | Size: 168 KiB |
BIN
public/images/headers/image-10.jpg
Normal file
|
After Width: | Height: | Size: 242 KiB |
BIN
public/images/headers/image-11.jpg
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
public/images/headers/image-13.jpg
Normal file
|
After Width: | Height: | Size: 206 KiB |
BIN
public/images/headers/image-14.jpg
Normal file
|
After Width: | Height: | Size: 257 KiB |
BIN
public/images/headers/image-17.jpg
Normal file
|
After Width: | Height: | Size: 263 KiB |
BIN
public/images/headers/image-19.jpg
Normal file
|
After Width: | Height: | Size: 227 KiB |
BIN
public/images/headers/image-24.jpg
Normal file
|
After Width: | Height: | Size: 256 KiB |
BIN
public/images/headers/image-32.jpg
Normal file
|
After Width: | Height: | Size: 245 KiB |
BIN
public/images/headers/image-37.jpg
Normal file
|
After Width: | Height: | Size: 350 KiB |
BIN
public/images/headers/image-39.jpg
Normal file
|
After Width: | Height: | Size: 275 KiB |
BIN
public/images/headers/image-41 copy.jpg
Normal file
|
After Width: | Height: | Size: 239 KiB |
BIN
public/images/headers/image-41.jpg
Normal file
|
After Width: | Height: | Size: 239 KiB |
BIN
public/images/headers/image-42.jpg
Normal file
|
After Width: | Height: | Size: 294 KiB |
BIN
public/images/headers/image-45.jpg
Normal file
|
After Width: | Height: | Size: 315 KiB |
BIN
public/images/headers/image-49.jpg
Normal file
|
After Width: | Height: | Size: 293 KiB |
BIN
public/images/headers/image-6.jpg
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
public/images/headers/image-7.jpg
Normal file
|
After Width: | Height: | Size: 253 KiB |
BIN
public/images/headers/image-8.jpg
Normal file
|
After Width: | Height: | Size: 263 KiB |
BIN
public/images/headers/image-9.jpg
Normal file
|
After Width: | Height: | Size: 236 KiB |
BIN
public/images/headers/image.jpg
Normal file
|
After Width: | Height: | Size: 292 KiB |
|
After Width: | Height: | Size: 183 KiB |
BIN
public/images/headers/jesus-close-to-the-brokenhearted.jpg
Normal file
|
After Width: | Height: | Size: 355 KiB |
|
After Width: | Height: | Size: 382 KiB |
BIN
public/images/headers/jesus-have-no-fear-source.jpg
Normal file
|
After Width: | Height: | Size: 478 KiB |
BIN
public/images/headers/jesus-have-no-fear.jpg
Normal file
|
After Width: | Height: | Size: 544 KiB |
BIN
public/images/headers/jesus-healing-a-woman.jpg
Normal file
|
After Width: | Height: | Size: 186 KiB |
BIN
public/images/headers/jesus-healing-and-the-crowds.jpg
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
public/images/headers/jesus-healing-demoniacs-01-scaled.jpg
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
public/images/headers/jesus-healing-demoniacs-01.jpg
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
public/images/headers/jesus-healing-demoniacs-02-scaled.jpg
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
public/images/headers/jesus-healing-demoniacs-02.jpg
Normal file
|
After Width: | Height: | Size: 361 KiB |
BIN
public/images/headers/jesus-healing-the-blind.jpg
Normal file
|
After Width: | Height: | Size: 183 KiB |
BIN
public/images/headers/jesus-heals-a-man.jpg
Normal file
|
After Width: | Height: | Size: 187 KiB |
BIN
public/images/headers/jesus-sends-the-twelve-source.jpg
Normal file
|
After Width: | Height: | Size: 266 KiB |
BIN
public/images/headers/jesus-sends-the-twelve.jpg
Normal file
|
After Width: | Height: | Size: 372 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-1-source.jpg
Normal file
|
After Width: | Height: | Size: 159 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-1.jpg
Normal file
|
After Width: | Height: | Size: 213 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-2-source.jpg
Normal file
|
After Width: | Height: | Size: 173 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-2.jpg
Normal file
|
After Width: | Height: | Size: 221 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-3-source.jpg
Normal file
|
After Width: | Height: | Size: 133 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-3.jpg
Normal file
|
After Width: | Height: | Size: 192 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-4-source.jpg
Normal file
|
After Width: | Height: | Size: 148 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-4.jpg
Normal file
|
After Width: | Height: | Size: 409 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-5-source.jpg
Normal file
|
After Width: | Height: | Size: 132 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-5.jpg
Normal file
|
After Width: | Height: | Size: 252 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-6-source.jpg
Normal file
|
After Width: | Height: | Size: 111 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-6.jpg
Normal file
|
After Width: | Height: | Size: 156 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-6a.jpg
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-6b.jpg
Normal file
|
After Width: | Height: | Size: 253 KiB |
BIN
public/images/headers/jesus-sermon-on-the-mount-7.jpg
Normal file
|
After Width: | Height: | Size: 158 KiB |
BIN
public/images/headers/jesus-wielding-sword-source.jpg
Normal file
|
After Width: | Height: | Size: 255 KiB |
BIN
public/images/headers/jesus-wielding-sword.jpg
Normal file
|
After Width: | Height: | Size: 328 KiB |
BIN
public/images/headers/king-david-cropped.jpg
Normal file
|
After Width: | Height: | Size: 457 KiB |
BIN
public/images/headers/king-david.jpg
Normal file
|
After Width: | Height: | Size: 326 KiB |
BIN
public/images/headers/king-david2.jpg
Normal file
|
After Width: | Height: | Size: 273 KiB |
BIN
public/images/headers/mary-and-joseph-cropped.jpg
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
public/images/headers/prostrate-shepherd-1.jpg
Normal file
|
After Width: | Height: | Size: 132 KiB |
BIN
public/images/headers/prostrate-shepherd-2.jpg
Normal file
|
After Width: | Height: | Size: 145 KiB |
BIN
public/images/headers/psalm49.jpg
Normal file
|
After Width: | Height: | Size: 122 KiB |
BIN
public/images/headers/shepherd-praying-cropped.jpg
Normal file
|
After Width: | Height: | Size: 297 KiB |
BIN
public/images/headers/shepherd-praying.jpg
Normal file
|
After Width: | Height: | Size: 288 KiB |
BIN
public/images/headers/shepherd-praying2-cropped.jpg
Normal file
|
After Width: | Height: | Size: 310 KiB |
BIN
public/images/headers/shepherd-praying2.jpg
Normal file
|
After Width: | Height: | Size: 248 KiB |
BIN
public/images/headers/the-shepherd-cradling-a-lamb.jpg
Normal file
|
After Width: | Height: | Size: 182 KiB |
BIN
public/images/headers/throne-room-cropped.jpg
Normal file
|
After Width: | Height: | Size: 455 KiB |
BIN
public/images/meta/apple-touch-icon.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
public/images/meta/og.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/images/meta/twitter.jpg
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
public/images/placeholder.jpg
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
public/papers/noegel-unearthing-hs-58-2017.pdf
Normal file
BIN
public/papers/psalm-23-hebrew-plus-morphology.pdf
Executable file
4
public/resources/js/main.js
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
|
||||
// Import local modules
|
||||
import '@modules/mobile-nav'
|
||||
import '@modules/lazyload'
|
||||
55
public/resources/js/modules/lazyload/index.js
Normal 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
|
||||
27
public/resources/js/modules/mobile-nav/index.js
Normal 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
|
||||
39
public/resources/js/utilities/helpers/index.js
Normal 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
|
||||
}
|
||||
|
||||
|
||||
30
public/resources/js/utilities/selectors/index.js
Normal 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 $$
|
||||
200
public/resources/scss/01-config/_config.scss
Normal 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
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
3
public/resources/scss/01-config/_index.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
@import 'config';
|
||||
@import '../../../node_modules/gorko/gorko.scss';
|
||||
17
public/resources/scss/02-utilities/_functions.scss
Normal 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});
|
||||
}
|
||||
}
|
||||
5
public/resources/scss/02-utilities/_index.scss
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
@import 'variables';
|
||||
@import 'functions';
|
||||
@import 'mixins';
|
||||
@import 'utilities';
|
||||
3
public/resources/scss/02-utilities/_mixins.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
|
||||
//========== Mixins ==========//
|
||||
|
||||