Skip to content

Commit

Permalink
Improved help page, images and README file
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeoleaf committed Sep 6, 2020
1 parent 11a63e8 commit c827793
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@
TBlogs is a basic app for your terminal that allows you to read, follow and save posts from development blogs from lots of companies.

## What It Looks Like
<p align="center"><img src="images/posts-1.png"></p>
<p align="center"><img src="images/home.png"></p>

## Other screens

### Help section
<p align="center"><img src="images/help.png"></p>

### Blogs section
<p align="center"><img src="images/blogs.png"></p>

### Saved Posts
<p align="center"><img src="images/saved-posts.png"></p>

## Install
You can install by the following set of instructions:
Expand Down
9 changes: 6 additions & 3 deletions app/help.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ const logo = `

const (
subtitle = `tblogs - Read development blogs from the terminal`
// navigation = ``
mouse = `(or use your mouse)`
quote = `All your blogs are belongs to us`
mouse = `(or use your mouse)`
)

var shortcuts = []string{"Ctrl-S: Save Post", "Ctrl-F: Follow Blog", "Ctrl-B: Blogs", "Ctrl-H: Help",
"Ctrl-P: Saved Posts", "Ctrl-C: Exit", "Ctrl-T: Home"}
"Ctrl-P: Saved Posts", "Ctrl-C: Exit", "Ctrl-T: Home", "Enter: Search posts for blog or open browser with post",
"Esc: Returns from posts results to blogs list"}

func helpPage(nextSlide func()) (title string, content tview.Primitive) {
lines := strings.Split(logo, "\n")
Expand All @@ -48,6 +49,8 @@ func helpPage(nextSlide func()) (title string, content tview.Primitive) {
frame := tview.NewFrame(tview.NewBox()).
SetBorders(0, 0, 0, 0, 0, 0).
AddText(subtitle, true, tview.AlignCenter, tcell.ColorWhite).
AddText("", true, tview.AlignCenter, tcell.ColorWhite).
AddText(quote, true, tview.AlignCenter, tcell.ColorWhite).
AddText("", true, tview.AlignCenter, tcell.ColorWhite)
// AddText(navigation, true, tview.AlignCenter, tcell.ColorDarkMagenta)
// AddText(mouse, true, tview.AlignCenter, tcell.ColorDarkMagenta)
Expand Down
Binary file modified images/blogs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/saved-posts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c827793

Please sign in to comment.