This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // see image: https://jang.digital/_ipx/_/media/the-modest-inquisitor/screenshot1.jpg | |
| // see case study: https://jang.digital/work/the-modest-inquisitor | |
| <script setup lang="ts"> | |
| // javascript - vue 3 setup | |
| import Fuse from 'fuse.js'; // Import the Fuse.js library for fuzzy searching | |
| import WordHighlighter from 'vue-word-highlighter'; // Import a Vue component for highlighting words | |
| // Get a collection of data using Firebase and Vuefire | |
| const collection = useCollection(...); | |
| // Create a reactive variable for the search query |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // website https://dofa.netlify.app/services/mep/mechanical | |
| // case study https://jang.digital/work/department-of-approvals | |
| <script setup lang="ts"> | |
| //layouts/header.vue | |
| import { routes } from "/assets/routes.ts"; | |
| import { useWindowSize } from "@vueuse/core"; | |
| import { useElementSize } from "@vueuse/core"; | |
| const headers = ref(null); | |
| const { width: windowW } = useWindowSize(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // for https://plugsandmugs.com/map/ | |
| // see case study for illustration details https://jang.digital/work/plugs-and-mugs#illustration-and-color-choice | |
| // composite.js | |
| import jimp from "jimp"; | |
| import imagemin from "imagemin"; | |
| import imageminPngquant from "imagemin-pngquant"; | |
| import fs from "fs"; | |
| import path from "path"; | |
| // Function to create composite image |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //translationZHTW.json | |
| { | |
| "Navbar":{ | |
| "trekinn":"《 美崙遊記 》", | |
| "about":"簡介", | |
| "destinations+map":"觀光指南及地圖", | |
| "rooms":"訂房", | |
| "contact":"聯絡資訊", | |
| "changeTo":"English", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Headers: Rufina - English, Genwan - Chinese */ | |
| .h1{ | |
| @apply text-4xl tracking-wider font-medium; | |
| font-family: "Rufina","Genwan"; | |
| } | |
| /* Body Text: Roboto - English, Genseki - Chinese */ | |
| .body{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //combining and referencing code from 'react-zoom-pan-pinch' by Maciej Pyrc, 'react-image-fade-in' by Patrick Tran, react portal tutorial by Kyle Cook (WebDevSimplified) | |
| import ImageFadeIn from '../../../../../customHooks/imageFadeIn'; | |
| import React from 'react' | |
| import ReactDom from 'react-dom' | |
| import {TransformWrapper, TransformComponent} from "react-zoom-pan-pinch"; | |
| import {VscZoomIn as ZoomInIcon} from "react-icons/vsc"; | |
| import {VscZoomOut as ZoomOutIcon} from "react-icons/vsc"; | |
| import {IoResizeOutline as ResetIcon} from "react-icons/io5"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //simple Carousel setup using CSS position and custom hooks by Kyle Cook (WebDevSimplified) | |
| import ImageFadeIn from '../../../../../customHooks/imageFadeIn' | |
| import useTimeout from '../../../../../customHooks/useTimeout' | |
| import useDebounce from '../../../../../customHooks/useDebounce' | |
| import useClickOutside from '../../../../../customHooks/useClickOutside'; | |
| import ImageModal from './ImageModal' | |
| import {useEffect, useState, useRef} from 'react' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "_id": ".....", | |
| "shelfSubjects": [ | |
| "0 Ancient and Modern Languages", | |
| "1 Literature", | |
| "4 Anthropology", | |
| "5 Human Geography" | |
| ], | |
| "editions": [ | |
| { |
NewerOlder