Topic Study is a personal project focusing on general topics and Bible verses or inspiring commentary on said topic.
Using WordPress REST API for data/content. Examples below are assuming WP REST API's base directory.
Examples
/wp-json/wp/v2/verses?filter[tag]=holyspirit
- get all post type verses tagged with holyspirit
/wp-json/wp/v2/tags
- get all tags
Tags are the topics that will be studied. I've chosen to organize the data this way for the following reasons:
- The grouping makes sense (i.e. one topic may have many verses/quotes related to it)
- It's conveniently already a part of WordPress
- verses
- quotes
- Prayer
- Holy Spirit
- John 3:16
topic-study-app
h1
(home)
input:search
topic-card
(topic)
h2
div.topic-filters
topic-post
(topic-post)
<topic stuff>
modal-detail
span.icon-close
p.post-content
span.post-attrib
- "For God so loved the world that He gave..."
- h1 saying "Topic Study"
- prominent search input to filter showing topics
- list of topics (w/ count of things within topic)
- clicking on a topic navigates
- h1 saying "Topic Study"
- back (arrow) button
- h2 saying topic name
- radios acting as filters (All, Verses, Quotes)
- list of verses/quotes w/ post title displaying
- clicking on verse/quote expands detail box (modal dialog)
- modal dialog overlaying Topic page
- content of post
- beneath that, verse/quote author showing in quote-like format
- Footer section will have Topics(/Home), About links
- Show list of topics
- Click topic for list & nav to /topic/:topic-slug
- Show (fetched) list of verses/quotes
- Click verse
- Modal dialog shows with post's content and title
- Offer back btn/link (eventually other post in topic)
/dist / /app /styles /bourbon styles.scss ... /topics ... topics.component.ts topics.component.ts topics.scss ... ...