BoxLang 🚀 A New JVM Dynamic Language Learn More...
A coming-soon theme for ContentBox 7 and ContentBox Studio: one screen with a countdown to the opening, a headline, a short text and a newsletter signup. Text pages (imprint, privacy) and the 404 come in the same frame. Plain CSS and JavaScript, no build step, one self-hosted variable font.
Status: 0.1.0, the first version, on ForgeBox.
Studio Launch is meant to stay small enough to read in one sitting and to run for years without updates. Changes should keep it that way:
Everything together (stylesheet, script and font) is under 200 KB.
In the root of the ContentBox site:
box install studio-launch
It goes to
modules_app/contentbox-custom/_themes/studio-launch.
Without CommandBox, clone or unpack it there:
git clone https://github.com/akitogo/studio-launch.git modules_app/contentbox-custom/_themes/studio-launch
Keep the folder name studio-launch: ContentBox stores
the theme settings under it. Then:
imprint-and-privacy:
with Studio's Heading and Text blocks (give the two main headings
the anchors imprint and privacy), or paste
the
sample text into the classic editor and replace it with your
own. Then add the footer links.| Field | |
|---|---|
| Layout | Big countdown: the days set large, the hours, minutes and seconds below. Name large, small countdown: the name across the screen, the headline and a one-line countdown beside the text and the signup |
| Name set large | Only in the second layout; empty means the site name |
| Headline | The page's h1, e.g.
"Rooftop cinema in Hamburg, opening 1 May." |
| Opening | Date and time the countdown runs to, as
2027-05-01 19:30 (or 2027-05-01 for midnight) |
| Time zone of the opening | e.g.
Europe/Berlin; empty means the server's time zone.
The countdown is right for visitors in every time zone |
| Date as written | Shown in place of the countdown when a browser runs no JavaScript; empty means written from the opening in the site's language ("1 May 2027", "1. Mai 2027") |
| Text once open | Takes the countdown's place when the time has come, e.g. "We're open." |
| Text | A few sentences beside or below the countdown |
| Newsletter signup | Shows the signup form, with the fields below |
The countdown runs in the visitor's browser. While its seconds run, a button pauses it (moving content needs one); the small countdown, and visitors who ask for reduced motion, get no seconds. In Studio's editor the block shows the numbers of the moment it was last rendered.
The form sends the address straight to your newsletter service, so the theme stores nothing and needs no JavaScript for it. Take the values from the signup form the service gives you to embed (Buttondown, Brevo, Mailchimp, Sendy, listmonk, ...):
| Field | From the service's form |
|---|---|
| Form address of your newsletter service | The
action of its <form>
|
| Name of the email field | The name of its
email <input>, e.g. email, or
EMAIL for Mailchimp |
| Hidden fields | Each <input
type="hidden"> with its name
and value, e.g. a list ID |
| Field label, Field example, Button | The words on the form |
| Thank-you line | Shown under the form when the service
sends visitors back with ?subscribed in the
address. Set the service's success page to your start page with
it, e.g. https://example.com/?subscribed
|
Until the form address and the field name are set, the form stays off and Studio's editor shows a note in its place. Mention the service in your privacy policy (the sample text has a paragraph for it).
| Setting | |
|---|---|
| Colour scheme | Ink (night blue, the figures lit from sky blue to moonlight), Ember (dark wine, orange to red to gold), Glacier (light, teal to blue) |
| Language | The pages' language code (html
lang), e.g. en or de. The
theme's own words (countdown units, skip link, 404 page,
maintenance) come in English and German; other languages get the
English ones |
| Links in the header | One link per line, label and
address separated by \|: Instagram \|
https://www.instagram.com/yourname, Email \| mailto:[email protected]
|
| Links in the footer | Same format, e.g. Imprint \|
/imprint-and-privacy#imprint and Privacy \| /imprint-and-privacy#privacy
|
The image shared on social media is the start page's featured image (ContentBox's own Open Graph tags).
| Part | |
|---|---|
blocks/launch
| The coming-soon screen |
blocks/text, blocks/heading
| Replace Studio's core Text and Heading blocks (same fields; headings get an optional anchor) with the theme's text styles |
blocks/editor.css
| Studio's editor canvas: the page colours and font, the countdown as rendered, notes for missing settings |
blocks/_shared/words.cfm
| The theme's words in English and German |
layouts/pages.cfm
| The frame: site name and links, the page, copyright and links; one screen high |
views/
| Start page and text pages (page), 404
(notfound), maintenance mode, error, and a plain
blog (list, post, search) |
includes/css/schemes/
| The three colour schemes: six colours each, linked before the theme's stylesheet |
includes/css/launch.css, includes/js/launch.js
| Everything else; plain CSS and JavaScript |
includes/fonts/
| Unbounded (SIL Open Font License) |
To change a scheme's colours or add one, copy a file in
includes/css/schemes/ and add its name to the list in
layouts/pages.cfm and to the setting's options in
Theme.cfc. Changes inside the theme folder are
overwritten by an update, so keep a copy.
Apache License 2.0, see LICENSE. The font comes with its own license, see THIRD-PARTY.md.
First version.
?subscribed
$
box install studio-launch