Your Guide to Recreating Elements of the Photon Demo for Grav
The Coming Soon example page demonstrates how you can create and assign a useful Coming Soon page for your theme.
In this guide, we will go over how to create a new theme outline for the Coming Soon page, configure the Simple Counter particle, and assign the coming soon outline to your home page.
The first step to utilizing the Coming Soon page for your site is to create a Coming Soon theme outline. This outline is very easy to make, just create a new override via the Outlines administration panel, and navigate to the Layout Manager.
From here, you will want to load the Coming Soon layout preset which is included in the User column. This preset includes everything you need to get started with the Coming Soon page.
Make sure that the Keep the Current Particles While Changing Preset option is unchecked.
Along with everything in this preset layout, the most noticeable one in our demo that you will want to work with is the countdown timer. The Simple Counter particle should appear in the Mainbar section upon loading the Coming Soon preset layout.
Here is a breakdown of the settings you can configure in this particle:
|CSS Classes||Enables you to set a CSS class to the particle itself. This is a great way to customize its appearance.|
|Title||This is the title you wish to have displayed on the front end. For example:
|Description||This description appears on the front end with your particle. It is where you would place any text (or custom HTML) that you want to have appear.|
|Date||The day of the month you want to have the timer expire.|
|Month||The month you would like to have the timer expire.|
|Year||The year you would like to have the timer expire.|
|Day Text||Sets the text that appears describing a single day|
|Days Text||Sets the text that appears describing multiple days|
|Hour Text||Sets the text that appears describing a single hour|
|Hours Text||Sets the text that appears describing multiple hours|
|Minute Text||Sets the text that appears describing a single minute|
|Minutes Text||Sets the text that appears describing multiple minutes|
|Second Text||Sets the text that appears describing a single second|
|Seconds Text||Sets the text that appears describing multiple seconds|
Once you have configured your countdown timer, everything else on the page is pretty straightforward. Arrange widgets and/or particles as you see fit. You will also want to configure your Grav permissions settings to ensure that only logged-in folks have access to the rest of the site.
The next step is pretty simple. You want your coming soon page to be assigned to the home page, or any other specific page you wish you have the Coming Soon message appear. To do this, navigate to the Assignments administration panel within the Gantry 5 administrator, locate the desired pages you wish you have the Coming Soon page appear, and turn their toggles on.
Once you have saved your changes, you can navigate to the front end of your site to check the results.