Smallbook

Description

Tool for creating presentations with basic slides

Details

Source
GitHub
Stars
12
Forks
1
Created
Sept. 16, 2019
Updated
Jan. 3, 2024
Topics
pharo-smalltalk slideshow smalltalk

README excerpt

# Smallbook

Smallbook is a tool for creating presentations with basic slides and show them in a web browser. Programmed in Pharo for Pharo :) 

# Install

```smalltalk
Metacello new
  baseline: #Smallbook;
  repository: 'github://pablo1n7/Smallbook';
  load.
```

# [Example Page](https://pharo-smallbook.herokuapp.com)

# Basic usage

```smalltalk
server := SBServer new: 8080 staticFolder: ('/MY/DIR/USER/STATIC/userStatic').
SBSlide style:'simple_light'.
```

## Special Slide in localhost:8080/1.
```smalltalk

slide:=(SBSlide new:'Smallbook') specialSlide.
slide addComponent: (SBParagraph new: 'Smallbook is a tool for creating presentations with basic slides and show them in a web browser. Programmed in Pharo for Pharo :) ').
server addSlide: slide.

```
![](https://raw.githubusercontent.com/pablo1n7/Smallbook/master/StaticFiles/slide_1.jpg)


## New Slide in localhost:8080/2.
```smalltalk
slide := SBSlide new:'Syntax in Pharo' style:'simple_light'.
slide addComponent: (SBParagraph new: 'Examples').
slide addComponent: (SBCode new: '
|number string list|
"comments"
number := 20.
string := ''String''.
list := #(1 2 3 4 5).
list do: [ :each | Transcript show: each;cr. ]
').
server addSlide: slide.
```
![](https://raw.githubusercontent.com/pablo1n7/Smallbook/master/StaticFiles/slide_2.jpg)


## New Slide in localhost:8080/3.
```smalltalk
slide := SBSlide new:'Pharo'.
slide addComponent: (SBParagraph new:'Pharo is a pure object-oriented programming language and a powerful environment, focused on simplicity and immediate feedback (think IDE and OS rolled into one).').
slide addComponent: (SBImage new: 'https://pharo.org/web/files/pharo.png' align: 'Center' percentSize:40).
server addSlide: slide.
```
![](https://raw.githubusercontent.com/pablo1n7/Smallbook/master/StaticFiles/slide_3.jpg)

## Start Server listening to port 8080.
```smalltalk
server start. 
```
## Stop Server.
```smalltalk
server stop.
```

## Export HTML.
```smalltalk
"after start server!"
server saveHTML: '/MY/DIR/USER/EXPORT/'.
```


# Styles

![](https://raw.githubusercontent.com/pablo1n7/Smallbook/master/StaticFiles/gif_smallbook.gif)

# TODO: 
* [ ] Export to PDF.
* [ ] Create SBSlide from file.
* [ ] More components.

← Back to results