Skip to content

A single page PHP site for displaying photos with associated text

Notifications You must be signed in to change notification settings

ondenman/images_and_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Images and text

screenshot

What is it?

A single page PHP site for displaying photos with associated text. Each image is displayed full width. On clicking the browser window, the current image dissolves into the next. Clicking the circle button reveals the text content associated with the image.

Adding images

In the assets directory, you will see several subdirectories. Each of these contains a single image file and a corresponding markdown file. The image file can be in one of three formats: jpeg, png, or gif.

To add a new image to the site, create a new directory within assets, and add an image file and its accompanying markdown file.

Images are displayed in the order of their containing directories.

Text content

The the text content associated with an image is stored in a markdown file within the image's directory.

Removing images

To remove an image, delete the folder.

Changing the circle button’s colour

The circle button is white by default. To change its colour for a particular picture, edit the circle-colours.css file in the styles directory. You will need to write a little CSS. For example:

[id='06'] {
    border-color:#555;
}

About

A single page PHP site for displaying photos with associated text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published