Skip to content

Add layout logic diagrams for the block clock #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/block-clock/layout-compact-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-compact.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-compact@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-showcase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-showcase@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-small-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-small@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-tiny-big.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-tiny.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/block-clock/layout-tiny@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions pages/block-clock.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,54 @@ And the block clock in light mode, which simply switches the [color variables]({
height = 622
%}

## Layout logic

By default, the circular block clock is 200x200px in size, centered on the screen. The top bar is 46px tall and absolutely positioned.

When a network indicator is shown, the bounding box of the block clock and network indicator is used for centering within the window.

{% include picture.html
image = "/assets/images/block-clock/layout-compact.png"
retina = "/assets/images/block-clock/layout-compact@2x.png"
big = "/assets/images/block-clock/layout-compact-big.png"
alt-text = "Default layout logic diagram"
width = 800
height = 366
%}

In [showcase]({{ '/showcase/' | relative_url }}) mode, the block clock tries to maintain 1/3 of the screen width or height, whichever value is smaller. It maintains a minimum size of 200x200px.

{% include picture.html
image = "/assets/images/block-clock/layout-showcase.png"
retina = "/assets/images/block-clock/layout-showcase@2x.png"
big = "/assets/images/block-clock/layout-showcase-big.png"
alt-text = "Layout logic diagram for showcase mode"
width = 800
height = 366
%}

At smaller sizes (height < 400), the network indicator moves to the top-left corner of the window, making more room for the block clock, which tries to keep a size of 200x200px.

{% include picture.html
image = "/assets/images/block-clock/layout-small.png"
retina = "/assets/images/block-clock/layout-small@2x.png"
big = "/assets/images/block-clock/layout-small-big.png"
alt-text = "Layout logic diagram for small window sizes"
width = 800
height = 427
%}

At even smaller sizes, the primary factor becomes a minimum side padding of 25px. The block clock shrinks smaller than it's 200x200px default size. The top bar height shrinks to 36px.

{% include picture.html
image = "/assets/images/block-clock/layout-tiny.png"
retina = "/assets/images/block-clock/layout-tiny@2x.png"
big = "/assets/images/block-clock/layout-tiny-big.png"
alt-text = "Layout logic diagram for very small window sizes"
width = 800
height = 693
%}

## Prototype

This web prototype was done to validate if the block clock dial renders well with realistic data (or if segments get too small), to explore animations & interactions, and test widgets.
Expand Down