Skip to content

LeenaCruz/Web-APIs-Personal-Blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web-APIs-Personal-Blog

This repository contains Week's 3 Coding BootCamp Challenge: Web APIs: Personal Blog entry.

The goal is to create a two-page website where users will input and view blog posts. It includes building a content form, dynamically rendering blog posts, and implementing a light/dark mode toggle.

User Story

AS A marketing student,
I WANT a personal blog
SO THAT I can showcase my thoughts and experiences.

Acceptance Criteria

GIVEN a personal blog
WHEN I load the app,
THEN I am presented with the landing page containing a form with labels and inputs for username, blog title, and blog content.
WHEN I submit the form,
THEN blog post data is stored to localStorage.
WHEN the form submits,
THEN I am redirected to the posts page.
WHEN I enter try to submit a form without a username, title, or content,
THEN I am presented with a message that prompts me to complete the form.
WHEN I view the posts page,
THEN I am presented with a header, with a light mode/dark mode toggle, and a "Back" button.
WHEN I click the light mode/dark mode toggle,
THEN the page content's styles update to reflect the selection.
WHEN I click the "Back" button,
THEN I am redirected back to the landing page where I can input more blog entries.
WHEN I view the main content,
THEN I am presented with a list of blog posts that are pulled from localStorage.
WHEN I view localStorage,
THEN I am presented with a JSON array of blog post objects, each including the post author's username, title of the post, and post's content.
WHEN I take a closer look at a single blog entry in the list,
THEN I can see the title, the content, and the author of the post.
WHEN I view the footer,
THEN I am presented with a link to the developer's portfolio.

Mock Up

The following animation demonstrates the application functionality: A user adds a blog through a form, then the post appears on the following page.

Deployed Application

Live URL

Resources

JS Create Element

Credits

Shout out to:

Akon (Creating Arrays, localStorage)

Aleksander (Creating JS elements, CSS "overflow" property)

Stephen (localStorage, CSS)

Thank you for your insight!

About

This repo contains my entry for Week's 3 Coding BootCamp Challenge: Web APIs: Personal Blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors