This file contains 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
<template> | |
<div class="widget"> | |
<h2>Find My {{ title }}</h2> | |
<div> | |
<div v-if="initialState"> | |
<p class="description">{{ description }}</p> | |
<div class="input"> | |
<!-- Main input --> | |
<input |
This file contains 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
<template> | |
<SmoothReflow> | |
<div>My height will change at some point, and the SmoothReflow component | |
will automatically make sure that it animates</div> | |
</SmoothReflow> | |
</template> |
This file contains 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
<template> | |
<svg> | |
<use :xlink:href="path"></use> | |
</svg> | |
</template> | |
<script> | |
export default { | |
props: { | |
name: String, |
This file contains 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
<script> | |
import { usePersistedRef } from "./usePersistentRef"; | |
export default { | |
setup() { | |
const name = usePersistedRef('name', 'Jake Dohm') | |
} | |
} | |
</script> |
This file contains 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
// Import our CSS | |
import styles from '../css/app.pcss'; | |
import VueConfetti from 'vue-confetti'; | |
// App main | |
const main = async () => { | |
// Async load the vue module | |
const { createApp, defineAsyncComponent } = await import(/* webpackChunkName: "vue" */ 'vue'); | |
// Create our root vue instance | |
const root = createApp({ |
This file contains 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
function generateScreens(screenSizes) { | |
const getPx = val => `${val}px` | |
const screenEntries = Object.entries(screenSizes) | |
const minWidthBreakpoints = screenEntries.reduce( | |
(acc, [name, width]) => ({ | |
...acc, | |
[name]: { min: getPx(width) }, | |
}), | |
{}, |
This file contains 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
<!-- Before --> | |
<div class="-mx-8"> | |
<div class="px-8"> | |
<div class="bg-purple">Card #1</div> | |
</div> | |
<div class="px-8"> | |
<div class="bg-purple">Card #2</div> | |
</div> | |
</div> |
This file contains 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
<script> | |
export default { | |
props: { | |
color: { | |
type: String, | |
default: 'teal', | |
validator: value => ['teal', 'orange'].includes(value) | |
} | |
} | |
} |
This file contains 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
/* Apply a default duration to all .transition classes */ | |
[class*="transition"] { | |
@apply duration-300; | |
} | |
/* Default transition class must come _before_ utilities, | |
so it can be overridden by any .duration-x utilities */ | |
@tailwind utilities; |
This file contains 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
- pipeline: "Production" | |
trigger_mode: "MANUAL" # this means builds have to be triggered manually and won't be triggered on Push or PR merge | |
ref_name: "master" | |
ref_type: "BRANCH" | |
target_site_url: "https://applause.com" | |
variables: | |
- key: "APPPATH" | |
value: "applications/XXXXXXXXXX/public_html/" # TODO: Input the path on the server to the webroot | |
settable: false | |
description: "Server path to webroot" |
NewerOlder