diff --git a/.gitignore b/.gitignore index 364bc9e..0e2c485 100644 --- a/.gitignore +++ b/.gitignore @@ -38,6 +38,11 @@ kopynpaste-*.tar npm-debug.log /assets/node_modules/ +# Hugo website output and generated resources. +/website/public/ +/website/resources/_gen/ +/website/.hugo_build.lock + /.direnv/ /.nix/ diff --git a/Makefile b/Makefile index 8189a09..eec6905 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,18 @@ dev: mix phx.server +.PHONY: website-dev +website-dev: + hugo server --source website --buildDrafts --disableFastRender + +.PHONY: website-build +website-build: + hugo --source website --minify --cleanDestinationDir + +.PHONY: website-clean +website-clean: + rm -rf website/public website/resources/_gen website/.hugo_build.lock + .PHONY: test test: ex-test rs-test diff --git a/flake.nix b/flake.nix index 744566b..a6461be 100644 --- a/flake.nix +++ b/flake.nix @@ -63,6 +63,7 @@ shfmt shellcheck git-cliff + hugo postgresql ] ++ lib.optionals stdenv.isLinux [ inotify-tools ]; diff --git a/website/README.md b/website/README.md new file mode 100644 index 0000000..d3c33e2 --- /dev/null +++ b/website/README.md @@ -0,0 +1,38 @@ +# Textbin website + +This directory is the Hugo source for Textbin's public website. It is +intentionally separate from the Phoenix application: Cloudflare Pages builds +and serves this site, while the stateful application still requires a BEAM +runtime, PostgreSQL, and a storage backend. + +The site uses custom Hugo layouts and Hugo Pipes rather than a third-party theme +or JavaScript frontend. Product demonstrations are semantic HTML and CSS so +they stay responsive and do not drift from the public product description. + +## Development + +From the repository root, enter the Nix development shell and use the website +targets: + +```sh +nix develop +make website-dev +make website-build +make website-clean +``` + +`website-build` writes the production site to `website/public` with minified, +fingerprinted CSS. Generated output is not committed. + +## Cloudflare Pages + +The `textbin` Pages project deploys this repository with: + +- production branch: `main` +- root directory: `website` +- build command: `hugo --minify` +- build output directory: `public` +- environment variable: `HUGO_VERSION=0.164.0` in preview and production + +Cloudflare applies the response headers in `static/_headers` after Hugo copies +them into the build output. diff --git a/website/assets/css/main.css b/website/assets/css/main.css new file mode 100644 index 0000000..5521060 --- /dev/null +++ b/website/assets/css/main.css @@ -0,0 +1,1062 @@ +/* Textbin's public-site styles are processed and fingerprinted by Hugo Pipes. */ + +@font-face { + font-family: "IBM Plex Sans"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); +} + +@font-face { + font-family: "IBM Plex Sans"; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); +} + +@font-face { + font-family: "IBM Plex Sans"; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); +} + +@font-face { + font-family: "IBM Plex Mono"; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); +} + +:root { + --paper: #f7f4ec; + --paper-deep: #eee9de; + --surface: #fffdf8; + --ink: #172329; + --ink-soft: #536168; + --ink-muted: #646c7a; + --line: #dcd7ca; + --blue: #176c86; + --blue-dark: #0e4050; + --night: #0d3440; + --night-deep: #082832; + --amber: #e4aa44; + --amber-light: #f7d999; + --coral: #bd5d4d; + --green: #2b7b67; + --shadow: 0 24px 70px rgb(48 47 41 / 12%); +} + +* { + box-sizing: border-box; +} + +html { + scroll-behavior: smooth; +} + +body { + margin: 0; + background: var(--paper); + color: var(--ink); + font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; + font-size: 16px; + line-height: 1.6; + -webkit-font-smoothing: antialiased; +} + +a { + color: inherit; + text-decoration: none; +} + +.skip-link { + position: fixed; + z-index: 100; + top: 0.75rem; + left: 0.75rem; + padding: 0.65rem 1rem; + transform: translateY(-160%); + border-radius: 0.35rem; + background: var(--surface); + color: var(--ink); + box-shadow: var(--shadow); + font-weight: 600; +} + +.skip-link:focus { + transform: translateY(0); +} + +.site-header, +.site-footer, +.section { + width: min(100% - 3rem, 1180px); + margin-inline: auto; +} + +.site-header { + display: grid; + grid-template-columns: 1fr auto 1fr; + align-items: center; + min-height: 84px; + gap: 2rem; +} + +.brand { + display: inline-flex; + align-items: center; + width: max-content; + gap: 0.6rem; + font-size: 1.08rem; + font-weight: 600; + letter-spacing: -0.025em; +} + +.brand-mark { + width: 1.65rem; + height: 1.65rem; + fill: none; + stroke: var(--blue); + stroke-width: 2.75; + stroke-linecap: round; + stroke-linejoin: round; +} + +.site-nav, +.site-footer nav { + display: flex; + align-items: center; + gap: 2rem; + color: var(--ink-soft); + font-size: 0.86rem; + font-weight: 500; +} + +.site-nav a, +.site-footer nav a { + position: relative; +} + +.site-nav a::after, +.site-footer nav a::after { + position: absolute; + right: 0; + bottom: -0.25rem; + left: 0; + height: 1px; + content: ""; + transform: scaleX(0); + transform-origin: right; + background: currentcolor; + transition: transform 180ms ease; +} + +.site-nav a:hover::after, +.site-nav a:focus-visible::after, +.site-footer nav a:hover::after, +.site-footer nav a:focus-visible::after { + transform: scaleX(1); + transform-origin: left; +} + +.button { + display: inline-flex; + align-items: center; + justify-content: center; + min-height: 48px; + gap: 0.6rem; + padding: 0.75rem 1.25rem; + border: 1px solid transparent; + border-radius: 0.35rem; + font-size: 0.9rem; + font-weight: 600; + line-height: 1; + transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; +} + +.button:hover, +.button:focus-visible { + transform: translateY(-2px); +} + +.button:focus-visible, +a:focus-visible { + outline: 3px solid var(--blue); + outline-offset: 3px; +} + +.confidence a:focus-visible, +.open-source a:focus-visible { + outline-color: var(--amber-light); +} + +.button-small { + justify-self: end; + min-height: 39px; + padding: 0.65rem 1rem; + font-size: 0.82rem; +} + +.button-ink, +.button-primary { + background: var(--night); + color: white; + box-shadow: 0 8px 22px rgb(13 52 64 / 16%); +} + +.button-ink:hover, +.button-primary:hover { + background: var(--blue-dark); + box-shadow: 0 12px 28px rgb(13 52 64 / 22%); +} + +.button-secondary { + border-color: var(--line); + background: rgb(255 253 248 / 55%); +} + +.button-secondary:hover { + border-color: #bcb6a9; + background: var(--surface); +} + +.button-light { + background: var(--surface); + color: var(--night); + box-shadow: 0 12px 28px rgb(0 0 0 / 14%); +} + +.hero { + display: grid; + grid-template-columns: 0.83fr 1.17fr; + align-items: center; + min-height: 620px; + gap: clamp(3rem, 6vw, 6.5rem); + padding-block: 4rem 3rem; +} + +.eyebrow { + margin: 0 0 1rem; + color: var(--blue-dark); + font-family: "IBM Plex Mono", ui-monospace, monospace; + font-size: 0.72rem; + font-weight: 500; + letter-spacing: 0.16em; + text-transform: uppercase; +} + +h1, +h2, +h3, +p { + text-wrap: pretty; +} + +h1, +h2, +h3 { + margin-top: 0; + line-height: 1.08; +} + +h1 { + max-width: 570px; + margin-bottom: 1.55rem; + font-size: clamp(3.4rem, 5.4vw, 5.6rem); + font-weight: 500; + letter-spacing: -0.055em; +} + +h1 em { + color: var(--blue); + font-family: Georgia, "Times New Roman", serif; + font-weight: 400; +} + +h2 { + margin-bottom: 1.25rem; + font-size: clamp(2.25rem, 4vw, 3.75rem); + font-weight: 500; + letter-spacing: -0.045em; +} + +h3 { + margin-bottom: 0.65rem; + font-size: 1.05rem; + font-weight: 600; +} + +.hero-lede { + max-width: 530px; + margin: 0 0 2rem; + color: var(--ink-soft); + font-size: 1.14rem; + line-height: 1.65; +} + +.hero-actions { + display: flex; + flex-wrap: wrap; + gap: 0.75rem; +} + +.trust-list { + display: flex; + flex-wrap: wrap; + gap: 0.8rem 1.5rem; + margin: 1.7rem 0 0; + padding: 0; + color: var(--ink-muted); + font-size: 0.76rem; + list-style: none; +} + +.trust-list span { + margin-right: 0.3rem; + color: var(--blue); + font-weight: 600; +} + +.hero-art { + position: relative; + min-width: 0; + padding: 2rem 0 3.5rem; +} + +.paste-window { + position: relative; + z-index: 1; + overflow: hidden; + border: 1px solid #e1ddd3; + border-radius: 0.5rem; + background: var(--surface); + box-shadow: var(--shadow); +} + +.paste-toolbar, +.paste-footer { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; + padding: 1rem 1.25rem; +} + +.paste-toolbar { + border-bottom: 1px solid #e7e3da; + font-size: 0.78rem; +} + +.paste-toolbar > div:first-child { + display: flex; + align-items: center; + gap: 0.5rem; +} + +.file-dot { + width: 7px; + height: 7px; + border-radius: 999px; + background: var(--blue); +} + +.file-meta { + color: var(--ink-muted); +} + +.paste-policies { + display: flex; + gap: 0.4rem; +} + +.policy { + padding: 0.32rem 0.5rem; + border: 1px solid #e2ddd2; + border-radius: 0.25rem; + background: #faf7ef; + color: var(--ink-soft); + font-size: 0.66rem; + white-space: nowrap; +} + +.policy span { + color: var(--green); +} + +.code-block { + padding: 1.35rem 1rem 1.35rem 0; + background: + linear-gradient(90deg, transparent 0 3.35rem, #e1ddd2 3.35rem 3.4rem, transparent 3.4rem), + linear-gradient(90deg, #f8f6ef 0 3.35rem, var(--surface) 3.35rem); +} + +.code-block ol { + margin: 0; + padding-left: 3.8rem; + color: #9a968c; + font-family: "IBM Plex Mono", ui-monospace, monospace; + font-size: clamp(0.62rem, 1vw, 0.75rem); + line-height: 1.85; +} + +.code-block li { + padding-left: 1rem; +} + +.code-block code { + display: block; + overflow: hidden; + color: #35444a; + text-overflow: ellipsis; + white-space: nowrap; +} + +.code-muted { color: #758188; } +.code-error { color: #bf425e; } +.code-warn { color: #c07725; } +.code-value { color: var(--blue); } +.code-string { color: #986142; } + +.code-spacer { + min-height: 0.8rem; +} + +.paste-footer { + border-top: 1px solid #e7e3da; + font-size: 0.72rem; +} + +.avatar-stack { + display: flex; + align-items: center; +} + +.avatar { + display: grid; + width: 28px; + height: 28px; + place-items: center; + margin-left: -6px; + border: 2px solid var(--surface); + border-radius: 999px; + color: white; + font-size: 0.55rem; + font-weight: 600; +} + +.avatar:first-child { margin-left: 0; } +.avatar-blue { background: #436b78; } +.avatar-gold { background: #b98a42; } +.avatar-coral { background: #a95a50; } + +.shared-label { + margin-left: 0.6rem; + color: var(--ink-muted); +} + +.copy-link { + padding: 0.42rem 0.62rem; + border: 1px solid #ded9ce; + border-radius: 0.25rem; + background: #f7f4ec; + font-weight: 500; +} + +.share-note { + position: absolute; + z-index: 2; + top: 9.2rem; + right: -2.4rem; + width: 155px; + padding: 0.9rem 1rem 0.35rem; + transform: rotate(1.5deg); + border-radius: 0.25rem; + background: var(--amber-light); + box-shadow: 0 16px 36px rgb(95 72 30 / 17%); + font-size: 0.73rem; + line-height: 1.35; +} + +.note-kicker { + display: block; + color: #70521d; +} + +.share-note svg, +.security-note svg { + display: block; + width: 55px; + margin: 0.15rem auto 0; + fill: none; + stroke: #d89629; + stroke-width: 3; + stroke-linecap: round; + stroke-linejoin: round; +} + +.margin-note { + position: absolute; + right: -1.6rem; + bottom: 0; + margin: 0; + transform: rotate(-4deg); + color: var(--ink-soft); + font-family: Georgia, "Times New Roman", serif; + font-size: 0.95rem; + font-style: italic; + line-height: 1.35; + text-align: center; +} + +.workflow, +.features { + padding-block: 3.5rem 5rem; +} + +.section-heading { + margin-bottom: 3.5rem; +} + +.section-heading h2 { + max-width: 840px; +} + +.split-heading { + display: grid; + grid-template-columns: 1.15fr 0.85fr; + align-items: end; + gap: 5rem; +} + +.split-heading > p { + margin: 0 0 1.3rem; + color: var(--ink-soft); + font-size: 1.02rem; +} + +.workflow-grid { + display: grid; + grid-template-columns: repeat(4, 1fr); + margin: 0; + padding: 0; + list-style: none; +} + +.workflow-grid li { + padding: 0.4rem 2rem 0 0; + border-right: 1px solid var(--line); +} + +.workflow-grid li + li { + padding-left: 2rem; +} + +.workflow-grid li:last-child { + border-right: 0; +} + +.step-icon { + display: block; + height: 54px; + color: var(--blue); + font-family: "IBM Plex Mono", ui-monospace, monospace; + font-size: 1.55rem; +} + +.step-number { + color: var(--blue-dark); + font-family: "IBM Plex Mono", ui-monospace, monospace; + font-size: 0.78rem; + font-weight: 500; +} + +.workflow-grid h3 { + display: inline-block; + margin: 0 0 0.9rem 0.4rem; +} + +.workflow-grid p, +.feature-grid p { + margin: 0; + color: var(--ink-soft); + font-size: 0.9rem; + line-height: 1.6; +} + +.confidence { + overflow: hidden; + background: linear-gradient(135deg, var(--night) 0%, var(--night-deep) 100%); + color: white; +} + +.confidence-inner { + position: relative; + display: grid; + grid-template-columns: 0.8fr 1.2fr; + align-items: center; + gap: clamp(4rem, 9vw, 9rem); + padding-block: 4rem; +} + +.eyebrow-light { + color: #9fcbd7; +} + +.confidence-copy > p:not(.eyebrow) { + max-width: 460px; + margin: 0 0 2rem; + color: #c7d8dc; + font-size: 1.05rem; +} + +.share-card { + position: relative; + z-index: 1; + width: min(100%, 505px); + padding: 1.6rem; + border-radius: 0.55rem; + background: var(--surface); + color: var(--ink); + box-shadow: 0 30px 80px rgb(0 0 0 / 28%); +} + +.share-card-heading, +.share-url, +.share-options > div { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; +} + +.share-card-heading { + margin-bottom: 1.15rem; +} + +.share-card-heading > div { + display: flex; + flex-direction: column; +} + +.mini-label { + color: var(--ink-muted); + font-size: 0.68rem; + text-transform: uppercase; + letter-spacing: 0.12em; +} + +.share-url { + padding: 0.45rem; + border: 1px solid var(--line); + border-radius: 0.35rem; + font-size: 0.76rem; +} + +.share-url code { + overflow: hidden; + padding-left: 0.4rem; + color: var(--ink-soft); + font-family: "IBM Plex Mono", ui-monospace, monospace; + text-overflow: ellipsis; + white-space: nowrap; +} + +.share-url span { + padding: 0.55rem 0.7rem; + border-radius: 0.25rem; + background: var(--night); + color: white; + font-weight: 500; + white-space: nowrap; +} + +.share-options { + margin: 1.2rem 0; +} + +.share-options > div { + padding: 0.85rem 0; + border-bottom: 1px solid #e8e4da; +} + +.share-options dt { + color: var(--ink-soft); + font-size: 0.76rem; +} + +.share-options dt span { + display: inline-block; + width: 1.5rem; + color: var(--blue); +} + +.share-options dd { + margin: 0; + font-size: 0.76rem; + font-weight: 500; +} + +.policy-message { + padding: 0.75rem 0.9rem; + border-radius: 0.3rem; + background: #e9f3ef; + color: #2c6759; + font-size: 0.72rem; +} + +.policy-message span { + margin-right: 0.4rem; +} + +.security-note { + position: absolute; + right: -1.6rem; + bottom: 4.5rem; + z-index: 2; + width: 165px; + padding: 0.9rem 1rem 0.35rem; + transform: rotate(1.5deg); + border-radius: 0.25rem; + background: var(--amber-light); + color: #4f3a16; + box-shadow: 0 18px 40px rgb(0 0 0 / 22%); + font-size: 0.75rem; + line-height: 1.4; +} + +.features { + padding-bottom: 5rem; +} + +.feature-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + border-top: 1px solid var(--line); + border-left: 1px solid var(--line); +} + +.feature-grid article { + display: grid; + grid-template-columns: 42px 1fr; + min-height: 180px; + gap: 1rem; + padding: 2rem; + border-right: 1px solid var(--line); + border-bottom: 1px solid var(--line); + background: rgb(255 253 248 / 24%); + transition: background 180ms ease, transform 180ms ease; +} + +.feature-grid article:hover { + z-index: 1; + transform: translateY(-2px); + background: rgb(255 253 248 / 72%); +} + +.feature-icon { + color: var(--blue); + font-family: "IBM Plex Mono", ui-monospace, monospace; + font-size: 1.5rem; + font-weight: 500; +} + +.feature-grid h3 { + margin-bottom: 0.55rem; +} + +.open-source { + display: grid; + grid-template-columns: 1fr 0.65fr; + align-items: center; + gap: 6rem; + margin-bottom: 6rem; + padding: 4.5rem 5rem; + border-radius: 0.65rem; + background: linear-gradient(135deg, var(--blue-dark), var(--night-deep)); + color: white; + box-shadow: 0 26px 70px rgb(13 52 64 / 18%); +} + +.open-source h2 { + margin-bottom: 0; + font-size: clamp(2.2rem, 3.5vw, 3.35rem); +} + +.open-source > div:last-child > p { + margin: 0 0 1.5rem; + color: #c7d8dc; +} + +.site-footer { + display: grid; + grid-template-columns: 1fr auto 1fr; + align-items: center; + gap: 2rem; + padding-block: 1.5rem 3rem; + color: var(--ink-soft); + font-size: 0.76rem; +} + +.site-footer p { + justify-self: end; + margin: 0; + text-align: right; +} + +@media (min-width: 1101px) and (max-width: 1279px) { + .share-note, + .margin-note, + .security-note { + right: 0.5rem; + } +} + +@media (max-width: 1100px) { + .site-header, + .site-footer, + .section { + width: min(100% - 2.5rem, 960px); + } + + .hero { + grid-template-columns: 1fr; + padding-top: 4.5rem; + } + + .hero-copy { + max-width: 760px; + } + + .hero-art { + width: min(100% - 3rem, 760px); + margin-inline: auto; + } + + .workflow-grid { + grid-template-columns: repeat(2, 1fr); + } + + .workflow-grid li { + border-bottom: 1px solid var(--line); + } + + .workflow-grid li:nth-child(2) { + border-right: 0; + } + + .workflow-grid li:nth-child(n + 3) { + padding-top: 2rem; + border-bottom: 0; + } + + .confidence-inner { + gap: 4rem; + } + + .security-note { + right: -0.8rem; + } +} + +@media (max-width: 760px) { + .site-header, + .site-footer, + .section { + width: min(100% - 2rem, 620px); + } + + .site-header { + grid-template-columns: 1fr auto; + min-height: 72px; + } + + .site-nav { + display: none; + } + + .hero { + min-height: auto; + gap: 3rem; + padding-block: 3.5rem 4.5rem; + } + + h1 { + font-size: clamp(3rem, 15vw, 4.2rem); + } + + .hero-art { + width: 100%; + padding: 0; + } + + .paste-toolbar { + align-items: flex-start; + } + + .paste-policies { + flex-direction: column; + } + + .code-block { + overflow: hidden; + } + + .share-note { + position: relative; + top: auto; + right: auto; + bottom: auto; + margin: 1rem 0 0 auto; + } + + .margin-note { + display: none; + } + + .split-heading { + grid-template-columns: 1fr; + gap: 0.5rem; + } + + .workflow, + .features { + padding-block: 4rem; + } + + .workflow-grid { + grid-template-columns: 1fr; + } + + .workflow-grid li, + .workflow-grid li + li, + .workflow-grid li:nth-child(n + 3) { + min-height: auto; + padding: 2rem 0; + border-right: 0; + border-bottom: 1px solid var(--line); + } + + .workflow-grid li:first-child { + padding-top: 0; + } + + .workflow-grid li:last-child { + border-bottom: 0; + } + + .step-icon { + float: left; + width: 54px; + } + + .workflow-grid p { + margin-left: 54px; + } + + .confidence-inner { + grid-template-columns: 1fr; + min-height: auto; + gap: 3rem; + padding-block: 4rem; + } + + .confidence-copy .button, + .open-source .button { + width: 100%; + } + + .share-card { + padding: 1.15rem; + } + + .share-options > div { + align-items: flex-start; + flex-direction: column; + gap: 0.3rem; + } + + .security-note { + position: relative; + right: auto; + bottom: auto; + justify-self: end; + margin-top: -1.5rem; + } + + .feature-grid { + grid-template-columns: 1fr; + } + + .feature-grid article { + min-height: 150px; + padding: 1.6rem; + } + + .open-source { + grid-template-columns: 1fr; + gap: 2rem; + margin-bottom: 4rem; + padding: 3rem 1.5rem; + } + + .site-footer { + grid-template-columns: 1fr; + justify-items: start; + } + + .site-footer nav { + flex-wrap: wrap; + gap: 1rem 1.5rem; + } + + .site-footer p { + justify-self: start; + text-align: left; + } +} + +@media (max-width: 430px) { + .button-small { + padding-inline: 0.8rem; + } + + .button-small span:first-child { + display: none; + } + + .hero-actions .button { + width: 100%; + } + + .paste-toolbar, + .paste-footer { + padding-inline: 0.8rem; + } + + .file-meta, + .shared-label, + .policy:last-child { + display: none; + } + + .share-note { + width: 145px; + } +} + +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } + + *, + *::before, + *::after { + transition-duration: 0.01ms !important; + } +} diff --git a/website/hugo.toml b/website/hugo.toml new file mode 100644 index 0000000..c64b70b --- /dev/null +++ b/website/hugo.toml @@ -0,0 +1,11 @@ +baseURL = "https://textbin-4j4.pages.dev/" +locale = "en-US" +title = "Textbin" +disableKinds = ["taxonomy", "term", "RSS"] + +[params] +description = "A fast, self-hostable workspace for snippets, logs, notes, and everything in between." +repositoryURL = "https://github.com/chaba-dev/textbin" + +[minify] +minifyOutput = true diff --git a/website/layouts/index.html b/website/layouts/index.html new file mode 100644 index 0000000..758cc96 --- /dev/null +++ b/website/layouts/index.html @@ -0,0 +1,246 @@ + + + + {{ partial "head.html" . }} + + + + + {{ partial "site-header.html" . }} + +
+
+
+

Paste · share · keep things moving

+

A quieter place for working text.

+

+ Textbin gives teams one trusted scratch space for code, logs, notes, and any text + that needs to move. Less noise. Clearer ownership. +

+ +
    +
  • Open source
  • +
  • API and CLI first
  • +
  • Private by default
  • +
+
+ +
+
+
+
+ + nginx-error.log + 64 lines · 2.3 KB +
+
+ Team only + Expires in 7 days +
+
+ + + + +
+ + + +

Get the right context
to the right people.

+
+
+ +
+
+
+

How Textbin works

+

From clipboard to context
in four clear steps.

+
+

+ Keep the path from finding a problem to sharing the answer short. Textbin stays out of + the way until your team needs history, policy, or proof. +

+
+ +
    +
  1. + + 01. +

    Paste

    +

    Drop in code, logs, notes, or binary files. Get a clean link in one motion.

    +
  2. +
  3. + + 02. +

    Share

    +

    Choose the workspace, the audience, and when the paste should disappear.

    +
  4. +
  5. + + 03. +

    Find

    +

    Search across the workspaces you belong to without hunting through chat.

    +
  6. +
  7. + + 04. +

    Govern

    +

    Make ownership, access, expiry, recovery, and audit history visible.

    +
  8. +
+
+ +
+
+
+

Built for teams

+

Share with confidence.

+

+ Control who can see each paste. Keep sensitive working text inside the workspace, + open a deliberate link when needed, and let expiry clean up the rest. +

+ + Read the product principles + +
+ + + + +
+
+ +
+
+

More than a paste tool

+

A home for all your working text.

+
+ +
+
+ +

Global search

Find snippets across every workspace you can access.

+
+
+ +

Syntax highlighting

Readable source with line numbers across common languages.

+
+
+ +

Deliberate sharing

Workspace, link-only, and public audiences governed by policy.

+
+
+ +

Expiry and recovery

Clean up automatically without losing work by accident.

+
+
+ +

API and CLI

Create, retrieve, delete, and restore pastes through the API and CLI.

+
+
+ +

Audit trail

See the operational history without exposing paste bodies.

+
+
+
+ +
+
+

Open source · self-hosted

+

Your team’s scratch space
should belong to your team.

+
+
+

+ Run Textbin with PostgreSQL and the storage backend that fits your environment. The + deployment contract is documented, inspectable, and portable. +

+ + Read the self-hosting guide + +
+
+
+ + {{ partial "site-footer.html" . }} + + diff --git a/website/layouts/partials/head.html b/website/layouts/partials/head.html new file mode 100644 index 0000000..5a86716 --- /dev/null +++ b/website/layouts/partials/head.html @@ -0,0 +1,13 @@ + + + + + + + + + +{{ .Site.Title }} — A quieter place for working text + +{{ $style := resources.Get "css/main.css" | minify | fingerprint }} + diff --git a/website/layouts/partials/site-footer.html b/website/layouts/partials/site-footer.html new file mode 100644 index 0000000..12eefc6 --- /dev/null +++ b/website/layouts/partials/site-footer.html @@ -0,0 +1,14 @@ + diff --git a/website/layouts/partials/site-header.html b/website/layouts/partials/site-header.html new file mode 100644 index 0000000..bc2203f --- /dev/null +++ b/website/layouts/partials/site-header.html @@ -0,0 +1,23 @@ + diff --git a/website/static/_headers b/website/static/_headers new file mode 100644 index 0000000..1cd2349 --- /dev/null +++ b/website/static/_headers @@ -0,0 +1,12 @@ +/* + Content-Security-Policy: default-src 'self'; style-src 'self'; img-src 'self'; font-src 'self'; script-src 'none'; connect-src 'none'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'none'; upgrade-insecure-requests + Permissions-Policy: camera=(), geolocation=(), microphone=() + Referrer-Policy: strict-origin-when-cross-origin + X-Content-Type-Options: nosniff + X-Frame-Options: DENY + +/fonts/* + Cache-Control: public, max-age=31536000, immutable + +/css/* + Cache-Control: public, max-age=31536000, immutable diff --git a/website/static/favicon.svg b/website/static/favicon.svg new file mode 100644 index 0000000..025b9e2 --- /dev/null +++ b/website/static/favicon.svg @@ -0,0 +1,4 @@ + + + + diff --git a/website/static/fonts/OFL.txt b/website/static/fonts/OFL.txt new file mode 100644 index 0000000..2ae8ef3 --- /dev/null +++ b/website/static/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2019 IBM Corp. All rights reserved. IBMPlexSans-Italic[wdth,wght].ttf: Copyright 2019 IBM Corp. All rights reserved. + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/website/static/fonts/ibm-plex-mono-latin-400-normal.woff2 b/website/static/fonts/ibm-plex-mono-latin-400-normal.woff2 new file mode 100644 index 0000000..0804aaf Binary files /dev/null and b/website/static/fonts/ibm-plex-mono-latin-400-normal.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-latin-400-normal.woff2 b/website/static/fonts/ibm-plex-sans-latin-400-normal.woff2 new file mode 100644 index 0000000..f0ee65d Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-latin-400-normal.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-latin-500-normal.woff2 b/website/static/fonts/ibm-plex-sans-latin-500-normal.woff2 new file mode 100644 index 0000000..6d5527e Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-latin-500-normal.woff2 differ diff --git a/website/static/fonts/ibm-plex-sans-latin-600-normal.woff2 b/website/static/fonts/ibm-plex-sans-latin-600-normal.woff2 new file mode 100644 index 0000000..08c0d5a Binary files /dev/null and b/website/static/fonts/ibm-plex-sans-latin-600-normal.woff2 differ diff --git a/website/static/robots.txt b/website/static/robots.txt new file mode 100644 index 0000000..1464e1a --- /dev/null +++ b/website/static/robots.txt @@ -0,0 +1,3 @@ +User-agent: * +Allow: / +Sitemap: https://textbin-4j4.pages.dev/sitemap.xml