A minimalist Gatsby theme designed for photography and portfolios — with a masonry grid and lightbox
The Serena Theme is a minimalist Gatsby theme designed specifically for photography and portfolios. It features a masonry grid and lightbox, allowing users to showcase their work in a visually appealing way. The theme offers various customization options, including the ability to define galleries using YAML, support for both local and remote images, and the inclusion of a contact form powered by Netlify. With its responsive design and offline support, the Serena Theme provides a seamless and optimized experience for visitors.
To generate a new site pre-configured with Gatsby Theme Serena, follow these steps:
npm install -g gatsby-cli
gatsby new my-serena-site https://github.com/username/repo
Replace username/repo with the repository URL where the Serena Theme starter is hosted.
To add the Serena Theme to an existing Gatsby site, you have two options:
npm install gatsby-theme-serena
or
yarn add gatsby-theme-serena
gatsby-config.js file:module.exports = {
plugins: [
{
resolve: 'gatsby-theme-serena',
options: {
// theme options here
},
},
],
};
You can customize the theme options based on your requirements.
To configure and customize the Serena Theme, you can use the following options in your gatsby-config.js file:
| Key | Default value | Description | | ---------------- | ------------------- | --------------------------------------------------------------------------------------------------------- | | galleriesPath | content/galleries | Location of galleries, can be one or multiple YML files | | pagesPath | content/pages | Location of pages | | assetPath | content/assets | Location of assets | | disableContact | false | Delete the default Contact page | | margin | 6 | Margin between photos in the masonry grid | | direction | column | Direction in the masonry grid, "column" (vertical) or "row" (horizontal) | | mdx | true | Configure gatsby-plugin-mdx (if your website already is using the plugin pass false to turn this off) |
The Serena Theme is a visually appealing and customizable Gatsby theme designed for photography and portfolios. Its key features include a masonry grid layout, lightbox functionality, support for YAML-defined galleries, social media integration, and a contact form powered by Netlify. The theme is easy to install, can be used for new or existing Gatsby sites, and offers various configuration options for further customization. With its minimalist design, fast performance, and responsive layout, the Serena Theme is an excellent choice for photographers and portfolio owners looking to showcase their work effectively.