Skip to content

Commit

Permalink
Added a second tutorial screen for the platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
m-velichkov committed Sep 14, 2023
1 parent faf631c commit 61410e8
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 1,185 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ Web pages for [dreymar.colemak.org](https://dreymar.colemak.org)

TODO/WIP for the BigBag Forum & web content (mostly for DreymaR's use):
-----------------------------------------------------------------------
- Some still find platform selection non-intuitive. Hmmm...
- Could we link to a specific platform box with platform specified? As in `page.html#anchor?platform=win`.
- Make it so that clicking the text `PLATFORMS` shows the how-to screen again (only seen initially now).

- Platform box for Sequencing? And Modifiers?
- Colemak-eD too?
- Tarmak `DOWNLOADS` definitely should be boxed. But the Mac one doesn't show up?!
Expand Down Expand Up @@ -40,7 +36,8 @@ TODO/WIP for the BigBag Forum & web content (mostly for DreymaR's use):


DONE
----
- Functionality allowing links to a specific platform box with platform specified? As in `page.html#anchor?platform=win`.
- Make it so that clicking the text `PLATFORMS` shows the how-to screen again (only seen initially now).
- More likeable links:
- Pascal Getreuer's alt layouts guide: https://getreuer.info/posts/keyboards/alt-layouts/index.html
- More consistent page and anchor naming
Expand Down
Binary file added docs/content/img/platforms-large.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 docs/content/img/platforms-large.png~
Binary file not shown.
Binary file added docs/content/img/platforms-picker-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 docs/content/img/platforms-picker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 39 additions & 17 deletions docs/content/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ table td p.legend {
overflow-y: auto;
}

#tutorialScreen {
.tutorial-screen {
width: 100%;
height: 100%;
position: fixed;
Expand All @@ -87,7 +87,7 @@ table td p.legend {
transition: opacity 500ms ease-in-out;
}

#tutorialScreen.show {
.tutorial-screen.show {
opacity: 1;
}

Expand All @@ -99,6 +99,16 @@ table td p.legend {
height: 64px;
}

#tutorialScreen2 #tutorialArrow {
top: 110px;
left: 130px;
}

#tutorialScreen2 #tutorialText {
top: 184px;
left: 120px;
}

#tutorialPlatform {
position: absolute;
left: 20px;
Expand Down Expand Up @@ -139,29 +149,15 @@ table td p.legend {
cursor: pointer;
}

#tutorialCloseButton {
position: absolute;
top: 8px;
left: 6px;
width: 22px;
height: 22px;
font-size: 23;
background-image: url("..img/close.png");
background-size: contain;
}

.platform-box {
display: none;
}

.platform-box.win, .platform-box.linux, .platform-box.tmk, .platform-box.mac, .platform-box-empty {
display: block;
position: relative;
margin-top: 16px;
padding: 2px 10px 10px 10px;
border: 3px solid #AA77BB;
}

div[class="platform-box"],
.platform-box.platform-box-empty {
border: none;
border-top: 3px solid #AA77BB;
Expand Down Expand Up @@ -238,6 +234,13 @@ table td p.legend {
background-position-y: 50%;
}

#tutorialScreen2 #tutorialPlatform {
background-image: url("../img/platforms-picker-small.png");
width: 118px;
height: 175px;
left: 0;
}

#platforms {
display: -webkit-box;
display: -ms-flexbox;
Expand Down Expand Up @@ -1004,6 +1007,25 @@ kbd {
}

@media only screen and (min-width: 1100px) {
#tutorialPlatform {
background-image: url("../img/platforms-large.png");
width: 181px;
height: 60px;
}

#tutorialScreen2 #tutorialPlatform {
background-image: url("../img/platforms-picker.png");
width: 181px;
}

#tutorialClose {
left: 0;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}

#navbar {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
Expand Down
Loading

0 comments on commit 61410e8

Please sign in to comment.