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
<!doctype html> | |
<html lang="en" class="h-full"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Episode 4: Your First Custom Vue Component</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> | |
<body class="h-full grid place-items-center"> |
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
<!doctype html> | |
<html lang="en" class="h-full"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Episode 3: Lists and Computed Properties</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
<script src="https://cdn.tailwindcss.com"></script> | |
</head> | |
<body class="h-full grid place-items-center"> |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Episode 2: Attribute Binding and Basic Events</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
<style> | |
html, body { | |
height: 100%; | |
} |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Episode 1: The Absolute Basics</title> | |
<script src="https://unpkg.com/vue@3"></script> | |
</head> | |
<body> | |
<div id="app"> | |
<p> |
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> | |
<Teleport to="body"> | |
<div v-show="open" | |
class="fixed z-10 inset-0 overflow-y-hidden h-full" | |
role="dialog" | |
aria-modal="true" | |
> | |
<div class="flex items-center justify-center min-h-full text-center"> | |
<!-- Overlay --> | |
<div class="fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity" aria-hidden="true" |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<title>Markdown Example</title> | |
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet"> | |
<link rel="stylesheet" href="https://unpkg.com/@tailwindcss/[email protected]/dist/typography.min.css"> | |
<script src="https://unpkg.com/[email protected]/dist/axios.min.js"></script> | |
</head> | |
<body> |
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
<?php | |
use Illuminate\Foundation\Inspiring; | |
use Illuminate\Support\Facades\Artisan; | |
use Symfony\Component\Process\Process; | |
/* | |
|-------------------------------------------------------------------------- | |
| Console Routes | |
|-------------------------------------------------------------------------- |
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
<?php | |
namespace App; | |
use ArrayAccess; | |
use ArrayIterator; | |
use Countable; | |
use IteratorAggregate; | |
class Collection implements Countable, ArrayAccess, IteratorAggregate |
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> | |
<form> | |
<input | |
@input="setSearch($event.target.value)" | |
:value="search" | |
type="text" | |
placeholder="Search" | |
class="border p-1" | |
/> |
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
<x-layout> | |
<x-button class="bg-gray-400 hover:bg-gray-500" onclick="$modals.show('join-modal')">Join</x-button> | |
<x-modals.join /> | |
<script> | |
window.$modals = { | |
show(name) { | |
window.dispatchEvent( | |
new CustomEvent('modal', { detail: name }) |