Skip to content

Instantly share code, notes, and snippets.

View sek-consulting's full-sized avatar

Stefan E-K sek-consulting

View GitHub Profile
@sek-consulting
sek-consulting / checkout.tsx
Created November 15, 2023 09:55
stripe checkout using solid-ui
import { TbCalendar, TbCreditCard, TbLock, TbMail } from "solid-icons/tb"
import { Button } from "~/components/ui/button"
import { Checkbox } from "~/components/ui/checkbox"
import {
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
@sek-consulting
sek-consulting / button.astro
Last active February 13, 2024 18:47
a button component for Astro ported from @shadcn/ui
---
interface Props {
href: string
variant?: "default" | "destructive" | "outline" | "subtle" | "ghost" | "link"
size?: "default" | "sm" | "lg"
class?: string
[x: string]: any
}
const variants = {
@sek-consulting
sek-consulting / .eslintrc.json
Last active February 27, 2023 10:22
current .prettier and .eslint settings for my next.js projects
{
"extends": ["next/core-web-vitals", "prettier", "plugin:tailwindcss/recommended"],
"plugins": ["import", "tailwindcss"],
"rules": {
"comma-dangle": ["error", "never"],
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal"],
"pathGroups": [