4.5.1 • Published 5 years ago

@blog-o-matic/react v4.5.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Blog-o-Matic React

@blog-o-matic/react is a library of Blog-o-Matic-aware React components. These components are also used to build the Blog-o-Matic editor. A component library is helpful because it lets us take advantage of end-to-end awareness of context.

For Example...

Progressive Image Component

import { ProgressiveImage } from "@blog-o-matic/react"

// 1. Load and blurs image https://static.bpev.me/micro/my-image.WebP
// 2. Load image https://static.bpev.me/medium/my-image.WebP
// 3. On-click, show image https://static.bpev.me/large/my-image.WebP
<ProgressiveImage src="/my-image.jpg" />

Context

import { Blog, Post } from "@blog-o-matic/react"

<Blog root="https://static.bpev.me">
  {/* Images already have width/height available via post metadata + context */}
  {/* Image lists are combined into tile */}
  <Post name="my-blog-post" />
</Blog>

Usage

Blog-o-Matic depends on use of Civility (and by extension, Basscss) styles. It uses Highlight.js for code snippets.

@import "@civility/stylesheets/dist/civility.css";
@import "highlight.js/styles/ocean.css";
4.5.1

5 years ago

4.5.0

5 years ago

4.4.3

5 years ago

4.4.2

5 years ago

4.4.1

5 years ago

4.3.7

5 years ago

4.3.4

5 years ago

4.3.2

5 years ago

4.3.1

5 years ago

4.3.0

5 years ago

4.2.3

5 years ago

4.2.2

5 years ago

4.1.0

5 years ago

4.0.4

5 years ago