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
module HackerNews exposing (..) | |
import Html exposing (..) | |
import Html.Attributes exposing (..) | |
import Http | |
import Json.Decode as Decode exposing (Decoder, field) | |
-- MODELS |
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 deepFilter (search, arr) { | |
if (!search) return arr | |
const result = [] | |
arr.forEach(element => { | |
let temp = [] | |
let found = false | |
Object.keys(element).forEach(k => { |
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> | |
<!-- Show acts as if you are setting display: block, flex, etc. --> | |
<media-query max-width at="768" show> | |
Hello World | |
</media-query> | |
<!-- Hide acts if you are setting display: hidden --> | |
<media-query max-width at="992" hide> | |
Hidden at 992 and above |
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
export default { | |
name: 'ErrorBoundary', | |
data: () => ({ | |
error: false | |
}), | |
errorCaptured (err, vm, info) { | |
this.error = true | |
}, | |
render (h) { | |
return this.error ? h('p', 'Something went wrong') : this.$slots.default[0] |
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
@layer utilities { | |
.text-gradient { | |
background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
} |
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
/** @type {import('tailwindcss').Config} */ | |
export default { | |
theme: { | |
extend: { | |
colors: { | |
gray: { | |
25: "#FCFCFD", | |
50: "#F9FAFB", | |
100: "#F2F4F7", | |
200: "#EAECF0", |