Skip to content

cpol0/simple-portfolio-maker

Repository files navigation

Simple Portfolio Maker

Overview

Simple Portfolio Maker (SPM) is (mostly) a Wordpress theme that allows you to easily build your portfolio.

Example

Pol's portfolio

Pol Carré

Features

  • Predefined blocks which let you choose your text and images arrangement (left, right, on 2 columns, et....).
  • Delivered with SEO plugins by default
  • Contact form included
  • Home page with your highklighted cases studies
  • An index page for all your cases studies
  • Simple and sober design with easily customizable CSS sheets
  • Thanks to Timber, it is very easy to adapt the html (twig files) to fit your needs.
  • Useless CSS & JS from default wordpress installation removed to speed up the site
  • Tanks to Bedrock, you also take advantage of nice features like:
    • Better folder structure
    • Easy WordPress configuration with environment specific files
    • Environment variables with Dotenv
    • Autoloader for mu-plugins (use regular plugins as mu-plugins)
    • Enhanced security (separated web root and secure passwords with wp-password-bcrypt)

Requirements

  • PHP >= 7.4
  • Composer - Install
  • If you just want to look over the theme and run a demo, docker-compose is also recommanded but not mandatory in production.

Installation

  1. Clone this project
  2. Update environment variables in the .env file as explained here. You can copy paste .env.example to have an example.
  3. Build docker images:
    $ make build
  4. Install all dependencies
    $ make install
  5. Run docker
    $ make dev
  6. According to the .env file, create your Wordpress database. By default, you can create it with PhpMyAdmin on http://localhost:8001. Defaults credentials are root/root.
  7. Finish the Wordpress installation and access to WordPress admin at http://localhost:8000
  8. In another shell, configure defaults settings for the theme:
    $ make configure
  9. If you want to crate fake cases studies:
    $ make fake
  10. You should have a nice portfolio now on http://localhost:8000 ! 🎉

Documentation

Add your case studies

Under "Posts", you have now a "Case study" item:

Case study entry

You can choose the block type you want with the select box, then let's put your images and write your text:

Block type

Additionnally, you may have some mandatory fields to fill to have a nice case study to display, let yourself be guided with the instructions diplayed under each field.

For a better rendering, you have to set a featured image on each case study. You can also choose to highlight you case study, in this case it will be displayed on the home page.

Highlight box

Contact form settings

You have to set yourself some things to have a functionnal contact form.

  1. ⚠️ If you have several contact forms, Simple Portfolio Maker will always use the first one! (shorted by id) CF7 short code

  2. Copy paste this code in the tab "form" of your contact form.

[text* your-name placeholder "Nom & Prénom / Société"]
[email* your-email placeholder "Email"]
[textarea* your-message minlength:50 placeholder "Votre message"]
<div>
	<button class="btn" type="submit">
		Envoyer le message
	</button>
</div>

CF7 form code

Mail settings

You can configue your mail settings in the "WP mail SMTP" panel.

If you want to test locally emails (thanks to Maildev), please follow the guide:

  1. Select "Other SMTP"
  2. Settings:
  • set maildev for SMTP host
  • Encryption: none
  • SMTP Port: 25
  • Auto TLS: off
  • Authentication: off
  1. save settins
  2. Go to "email test" tab on the top of the page and send email
  3. You should have an email at http://localhost:1080 ! 🎉

License

CC BY-NC 4.0

Contributing

Contributions are welcome from everyone.

About

Create easily your portfolio with a lightweight & customized wordpress base

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published