Skip to content

Create photo/video journals with a simple, declarative React API.

Notifications You must be signed in to change notification settings

conordavidson/journal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JOURNAL

Create photo/video journals with a simple, declarative React API.

The syntax is as follows:

<Journal title="My Trip to Italy (2019)">
  <Chapter title="Venice" subtitle="March 24~28">
    <Page caption="I arrived in Venice!">
      <Image src="img/venice_1.jpg" />
      <Image src="img/venice_2.jpg" />
    </Page>
    <Page caption="Was greeted by busy streets.">
      <Image src="img/venice_3.jpg" />
      <Video src="img/venice_4.mov" />
    </Page>
  </Chapter>
  <Chapter title="Florence" subtitle="March 28~30">
    <Page caption="I arrived in Florence!">
      <Image src="img/florence_1.jpg" />
      <Video src="img/florence_2.mov" />
    </Page>
  </Chapter>
</Journal>

Journals have Chapters
Chapters have Pages
Pages have Media (Images / Videos / Maps (todo))

An app can be as simple as:

import React from "react";
import ReactDOM from "react-dom";
import Journal, { Chapter, Page, Image, Video } from 'journal';

const MyNewJournal = () => (
  <Journal title="My Trip to Italy (2019)">
    ...
  </Journal>
);

ReactDOM.render(<MyNewJournal />, document.getElementById("root"));

About

Create photo/video journals with a simple, declarative React API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published