Flexera Launcher website
A one-page site for Flexera Launcher. Plain HTML, CSS and JavaScript: no build step and no libraries. The one thing loaded from another server is the visit counter (see "Putting it online").
| File | What it is |
|---|---|
index.html |
The page and all its copy |
styles.css |
Layout, colours and the phone's look |
script.js |
The phone model, the scroll story, the playground and the timed test |
assets/ |
App icon (WebP and PNG favicons), QR code, link-preview image (og.jpg) |
fonts/ |
Inter and JetBrains Mono, the page's faces, and Outfit, the face inside the phones, each with its licence |
Look at it
Open index.html in a browser. To see it as a server would serve it:
cd WEBSITE
python -m http.server 8080
and open http://localhost:8080.
After a release
- Change
VERSIONat the top ofscript.js. The page fills every version number from it, including the update check's user agent under "What goes online".index.htmlcarries the same number as a fallback for browsers without JavaScript (under Install); replace it there too. - Elements with
data-since="x.y.z"read "Coming in x.y.z" untilVERSIONreaches that version and "New in x.y.z" after it. Full-screen folders carrydata-since="1.0.0". - The download buttons and the QR code point at
.../releases/download/latest/FlexeraLauncher.apk, the fixed-name copy that every release uploads, so they never need changing. - If the headline or the look of the top of the page changes, remake
assets/og.jpg, the 1200 x 630 card that chats and social sites show for a link: runnode flexera/website/make-og.mjsfrom the project root (Chrome and Node 22 or newer, nothing to install). It reads the headline fromindex.htmland draws the icon and name, the headline, one line under it and two phones (the home screen's edge and the list scrubbed to F) with the site's own script and styles. - If the app's numbers in the table below change, change the model to match.
Putting it online
- Upload what is in
PRODUCTION/, and nothing else from this folder. It is a copy made bynode flexera/website/make-production.mjs(run from the project root): the page, its stylesheet and script, and only the pictures and fonts those three load, each font with its licence. The script empties and refills the folder, so run it again after any change to the website, and never edit the copy. - With Docker:
docker compose up -din this folder servesPRODUCTION/with nginx at http://localhost:8080 (docker-compose.yml,nginx.conf;FLEXERA_PORT=9000picks another port). On a server, put those two files andPRODUCTION/in one directory. It answers plain HTTP: HTTPS belongs to the proxy in front of it. The page, stylesheet and script are sent withno-cache, so a new version shows at once; pictures and the font are kept for a week. - The site lives at https://flexera.mariosem.es/. Link previews need full addresses, so the
head of
index.htmlnames that address three times:og:image(the full address ofassets/og.jpg),og:urland<link rel="canonical">. If the site moves, change all three; a relativeog:imageshows no picture in most chats. - The head also carries the page's title and description, the card's size and description, and a
short
SoftwareApplicationrecord for search engines; none of them holds the version number. - Visits are counted by Plausible, on the owner's own server: the last two
<script>tags in the head ofindex.html, pasted as Plausible gives them. It sets no cookies, and it does not count the page opened from a file or fromlocalhost. If aContent-Security-Policyheader is ever added, it must allowhttps://plausible.mariosem.esfor scripts and for connections.
The look
The page is dark throughout, after a style reference the owner chose (inspiration only): one
near-black canvas, #040506, with surfaces barely above it (#07080a for cards, #111214 for
wells and keys, #1b1c1e for badges), 1 px hairlines in #363739, and depth from inset
highlights rather than drop shadows. The main actions (Download, Start) are light grey buttons,
#e6e6e6 with #454647 text, lifted by a soft shadow; none is coloured. The playground's buttons
are dark keys with the 'key' shadow, a faint ring and an inner top highlight, which the install
steps' numbers borrow; a setting that is on there, the chosen row size or the left-edge switch,
turns light grey. Text is Inter: headings in white at regular weight (medium for the small ones)
and never tracked tighter, body #dcdcdd and secondary #9c9c9d. JetBrains Mono sets what is
technical: control labels, table heads, version numbers, user agents, the timed test's times, the
labels of the phones' measurements and the strip at the foot.
Colour comes from the app icon and is rationed. The top of the page is the one place it is spent:
a deep indigo wash, and behind the big phone the icon's sweep as soft diagonal bands (cyan
#19dff8 and sky #0899f4, royal #0a4cc5 and indigo #2815b7, violet #5e19da and purple
#a420f5, magenta #dc29f8). On a phone's screen the sweep hangs from the big phone's top
instead (.fig::before), so that it starts just under the download wherever the text above ends.
Below it, magenta marks only the 'New in' badge, on its own dark tint #240c2a, and cyan only the
phones' measurements and the leader to the top figure's note.
Sections sit in a 1200 px column with a hairline between them. Past the last page is the
exception: the one band of true black, #000, edge to edge between full-width hairlines, the
page quick launch brings in. The bar at the top floats, frosted, from 700 px up; on a phone it
scrolls away, because the story's phone holds the top of the screen there.
The phone
The phone is drawn in HTML at 390 x 844, one pixel per dp, and scaled to fit, six times over:
three stills in the top figure (edgeState(), the home screen with a thumb on the band along its
edge, heroState(), the list scrubbed to F, and quickState(), quick launch just past its
line), the one the scroll position drives through six chapters
(storyState()), the playground (setupPlay()), and the list phone of the timed test (the
playground's controller, locked to the app list). All of them render the state described in
blank(). The 40 apps on it are made-up stand-ins. The page shows it as a product shot: a light
ring around the frame and a soft shadow.
Its wallpaper is a plain abstract one in muted shades of the icon's indigo (flat shapes, so the
blur has edges to soften), and its icons are drawn the way Android 13 and Lawnchair theme them,
tinted from the wallpaper, with a few apps left in their own colours (THEMED and ODD in
script.js). The picture frame's photos are the sea, mountains and lemons on a checked cloth;
the camera that quick launch opens looks at a desk.
Its numbers are the app's:
| What | Value | From |
|---|---|---|
| Rows, compact and comfy | 50 and 58 dp; icons 34 and 40; gaps 16 and 18; names 15 and 16 sp | flexera/res/values/flexera_dimens.xml |
| Letter headers | 34 and 38 dp, 12 and 13 sp, white at 80% | same, flexera_colors.xml |
| Row padding | 24 dp, 56 dp on the alphabet's side | flexera_dimens.xml |
| Notification line | 78% of the name's size, white at 70% | FlexeraNotificationPreview.kt |
| Backdrop | black at 78% over the blurred wallpaper; the list fully visible at 60% of its opening | FlexeraDrawer.kt |
| Letters | 12 sp, 20 dp apart, 30 dp from the edge, white at 70%; the strip is sized for 26 letters and ends 40 + 16 dp above the navigation bar | flexera_dimens.xml, WaveAlphabetView.computeLayout |
| Wave | peak 104 dp beyond the finger, at least 96; spread max(104, 0.36 x reach); chosen letter bold and 25% larger; press 110 ms in, 220 ms out | WaveAlphabetView.onDraw |
| Bubble | 40 dp disc #f1f1f4, 22 sp letter #17181c, 38 dp beyond the peak |
same |
| Scrub dim | black, 55% x how far the wave lies over the list (35% of that at the right edge) | same |
| Landing | the group's middle on the list's middle, its header no higher than 22% | WaveAlphabetView.scrollListTo |
| Bands | 60 dp in the open list, 40 dp on the home screen; Android's Back strip about 24 dp | flexera_dimens.xml |
| Scrub from home, swipe up and hold | the list opens in 120 ms; under 200 ms is a flick; a hold is 150 ms still after 32 dp | FlexeraEdgeScrubController.kt, FlexeraDrawer.kt, NoButtonNavbarToOverviewTouchController.java |
| Quick launch | opens past 40% or on a flick; the home screen dimmed 35% and blurred by 1 - (1 - p)^2; settles in 150 to 300 ms; the app appears with no animation | QuickLaunchPage.kt, QuickLaunch.kt |
| Full-screen folders (1.0.0) | the home screen's columns and cells, 16 dp above the navigation bar, the list's backdrop | FullScreenFolders.kt |
| Clock sizes | small and large figures 0.625 and 1.25 times medium (0.5, 0.8 and 1.25 icon heights) | ClockWidgetView.kt |
| Picture widget | next picture every 10 s, 600 ms fade | PictureWidgetView.kt |
The blur is never animated: the phone fades between sharp and pre-blurred copies of the wallpaper and the home screen.
Other moving parts, all in script.js:
-
Measurement marks (
Phone.drawMarks()): dimension lines and labels drawn in cyan#19dff8, the labels in JetBrains Mono, on the phone's screen in an SVG layer, in the story chapters whose text gives the number. -
The top figure (
setupHero(),.figinstyles.css): a lineup of three stills straight on the page, standing on one line, each with a one-sentence caption under it. The list is in front and larger, with the icon's sweep on its rim (.fig__phone::beforeand::after); the home screen's edge and quick launch stand either side of it, smaller and dimmed. Under 700 px the list has a row to itself and the other two share the row below. The two side captions are the same length on purpose, so they always break into the same number of lines. -
The two settings (
setupLook()): the alphabet's side and the row size, applied to every phone on the page. -
A keyboard slider over the playground's alphabet, like the single slider the app gives TalkBack: Tab to it, then the arrow keys, Home and End.
-
Tap to try (
opts.armableinsetupPlay()): on a touch screen the playground phone lets the page scroll over it until it is tapped, and lets go again once it is off the screen. The timed test's list phone takes the touch only during round two. -
The timed test (
setupRace()): find an app in a grid drawer of the 40 apps, sorted A to Z as Lawnchair's is, then in the list. Escape stops a round. Start brings the phone into view with the app's name clear of the bar. -
Motion (the Motion block in
styles.css;setupHero().play,setupReveal(),setupGlint()and the scroll handler inboot()):- The entrance, once, when the fonts are in: the headline word by word (a small script after
the
h1wraps the words, so the headline stays plain text in the HTML), the copy and the button, then the three phones. On the same clock the stills play their own part: the thumb comes down on F, the wave goes out and the list goes to F; the edge band and the swipe follow. - Sections rise into place the first time they are scrolled to (
REVEALlists them); the headings among them also come out of a blur. Things that arrive together follow one another 80 ms apart, and anything jumped over is simply there. - With the scroll position: the bar is clear at the top and turns to glass once the page moves under it; the light on the front phone's rim travels round as the hero scrolls by; in the story, the chapter the phone is playing is lit and the others are dimmed.
- With the pointer: a light on the rim of the two cards (the timed test and Install) follows the mouse, and buttons lift a pixel. Where the browser can, the answers under "Before you install" open and close at their own height.
- The entrance, once, when the fonts are in: the headline word by word (a small script after
the
-
The egg (
setupNom()): point at or tap NOMNOM Inc. in the footer and a small creature, one of the launcher's icons with a jaw, comes in from the right and eats the name.
On its own the page moves once, for the entrance; after that only a picture widget's photo changes, every 10 seconds, and everything else answers a scroll, a pointer or a tap. Visitors who ask their system for reduced motion get none of it: the page is at rest from the start, and the story shows one still frame per chapter. Visitors who ask for reduced transparency get a solid bar and solid cards. Without JavaScript the page shows its text and the download, and leaves out the drawings, the playground and the coloured sweep they stand on. Printed, it is dark text on white, without the drawings, the playground or the bar.
Checking it
Headless Chrome takes screenshots without anything else installed:
"C:\Program Files\Google\Chrome\Application\chrome.exe" --headless=new --disable-gpu --hide-scrollbars --user-data-dir=<an empty folder> --virtual-time-budget=6000 --window-size=1440,900 --screenshot=<a .png path> file:///<path to>/WEBSITE/index.html
The command returns before the file is written; wait for the PNG. CSS animations do not advance
under --virtual-time-budget, so a screenshot taken this way catches the entrance on its first
frame, an almost empty page: add --force-prefers-reduced-motion to see the page at rest, and to
see the motion itself drive Chrome over its DevTools port in real time (Page.captureScreenshot
at set moments after loading or scrolling). Each story chapter has an id
(#one-column, #slide, #lands, #from-home, #no-page, #no-animation): open the page at
that fragment to see the chapter's phone. Chrome won't lay a page out narrower than about 500 px
from the command line, so for a phone's width either screenshot a scratch page outside this
folder that holds a 390 px wide iframe of index.html, or drive Chrome over its DevTools port
with Emulation.setDeviceMetricsOverride. Add --force-prefers-reduced-motion to see the still
frames. For the page without JavaScript, printed, or with reduced motion, transparency, more
contrast or forced colours, drive Chrome over its DevTools port with
Emulation.setScriptExecutionDisabled and Emulation.setEmulatedMedia.
Fonts
Three faces, served from fonts/, all under the SIL Open Font License 1.1: Inter 4.001
(inter.woff2, variable weight, Latin; inter-OFL.txt) for the page; JetBrains Mono 2.211
(jetbrains-mono.woff2, weights 400 to 800, Latin; jetbrains-mono-OFL.txt) for technical
labels; Outfit (outfit.woff2, outfit-OFL.txt, downloaded from Google Fonts) only inside the
phones. The Inter file has no liga or ss03, so none are set. No font is preloaded: a font
preload needs CORS, which fails when the page is opened as a file.