Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
/* This file is for your main application css. */

@import "tailwindcss/base";

@import "tailwindcss/components";

@import "tailwindcss/utilities";

@import "./phoenix.css";

$gold: rgb(182, 140, 47);
Expand Down
3 changes: 2 additions & 1 deletion assets/css/phoenix.css

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,27 @@ import "../css/app.scss"
// import socket from "./socket"
//
import "phoenix_html"
import { Socket } from "phoenix"
import NProgress from "nprogress"
import { LiveSocket } from "phoenix_live_view"
import 'alpinejs'

let csrfToken = document.querySelector("meta[name='csrf-token']").getAttribute("content")
let liveSocket = new LiveSocket("/live", Socket, { params: { _csrf_token: csrfToken } })

// Show progress bar on live navigation and form submits
window.addEventListener("phx:page-loading-start", info => NProgress.start())
window.addEventListener("phx:page-loading-stop", info => NProgress.done())

// connect if there are any LiveViews on the page
liveSocket.connect()

// expose liveSocket on window for web console debug logs and latency simulation:
// >> liveSocket.enableDebug()
// >> liveSocket.enableLatencySim(1000)
window.liveSocket = liveSocket

// document.getElementById("play-it").addEventListener("click", (e) => {
// e.preventDefault();
// console.log('adjisda');
// })
Loading