Skip to content

Instantly share code, notes, and snippets.

@neisdev
neisdev / d3-js-bubble-map-layering-census-data-and-topojson.markdown
Created March 2, 2023 09:53
d3.js Bubble Map, layering census data and topoJSON

d3.js Bubble Map, layering census data and topoJSON

Based on Mike Bostock's map, created topoJSON from Natural Earth data and population data obtained from the US Census Bureau. Map depicts poverty numbers for those under 18 by county in US, represented with bubbles. County names and poverty population figures are shown on mouseover where available.

A Pen by Amelia Power on CodePen.

License.

@neisdev
neisdev / alpine-single-upload-with-croppie.markdown
Created March 2, 2023 08:38
Alpine single upload with croppie
@neisdev
neisdev / index.html
Created February 24, 2023 13:07
Invoice Generator with TailwindCSS and AlpineJS
<body class="antialiased sans-serif">
<div class="border-t-8 border-gray-700 h-2"></div>
<div
class="container mx-auto py-6 px-4"
x-data="invoices()"
x-init="generateInvoiceNumber(111111, 999999);"
x-cloak
>
<div class="flex justify-between">
<h2 class="text-2xl font-bold mb-6 pb-2 tracking-wider uppercase">Invoice</h2>
@neisdev
neisdev / index.html
Created February 23, 2023 15:26
Infinite Scroll using AlpineJS
<div class="p-8" x-data="infiniteScroll()" x-init="init()">
<template x-for="item in items">
<div class="bg-red-100 h-64 w-full border-b-2 border-red-300 flex items-center justify-center">
<h1 class="text-2xl inline" x-text="item"></h1>
</div>
</template>
<div class="bg-white h-64 w-full flex text-pink-600 items-center justify-center" id="infinite-scroll-trigger">
<svg class="animate-spin -ml-1 mr-3 h-5 w-5 " xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
@neisdev
neisdev / dashboard-ui.markdown
Created February 21, 2023 22:52
Dashboard UI
@neisdev
neisdev / index.html
Created February 21, 2023 22:46
React Hooks: Employee CRUD using React Context and Tailwind CSS
<div id="app"></div>
@neisdev
neisdev / script.vue
Created February 20, 2023 21:52
Tailwind CSS Application UI Modal
<template>
<div id="app" class="antialiased min-h-screen pt-8 pb-12 bg-gray-100">
<transition
enter-active-class="transition duration-300 ease-out transform"
enter-class="scale-95 opacity-0 translate-y-16"
enter-to-class="scale-100 opacity-100 translate-x-0"
leave-active-class="transition duration-150 ease-in transform"
leave-class="scale-100 opacity-100"
leave-to-class="scale-95 opacity-0"
>
@neisdev
neisdev / customers-table-w-horizontal-scroll-tailwind-css.markdown
Created February 20, 2023 21:49
Customers Table w/ horizontal scroll - Tailwind CSS

Customers Table w/ horizontal scroll - Tailwind CSS

A responsive table with horizontal scroll showing customers made with Tailwind CSS.

A Pen by Cruip on CodePen.

License.

@neisdev
neisdev / index.html
Created February 20, 2023 15:51
trello ui with tailwind css
<body>
<div id="root"></div>
</body>
@neisdev
neisdev / index.html
Created February 20, 2023 15:04
Tailwind Form
<body class="bg-cream text-charcoal min-h-screen font-sans leading-normal overflow-x-hidden lg:overflow-auto">
<main class="flex-1 md:p-0 lg:pt-8 lg:px-8 md:ml-24 flex flex-col">
<section class="bg-cream-lighter p-4 shadow">
<div class="md:flex">
<h2 class="md:w-1/3 uppercase tracking-wide text-sm sm:text-lg mb-6">Create New Location</h2>
</div>
<form>
<div class="md:flex mb-8">
<div class="md:w-1/3">
<legend class="uppercase tracking-wide text-sm">Location</legend>