Skip to content

Commit

Permalink
getting close to ready, deployment looks good
Browse files Browse the repository at this point in the history
  • Loading branch information
argyleink committed Nov 26, 2018
1 parent 4f9deea commit ce24762
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 41 deletions.
1 change: 1 addition & 0 deletions .gcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@

# Node.js dependencies:
node_modules/
extension/
1 change: 0 additions & 1 deletion app.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
runtime: python27
api_version: 1
threadsafe: true
service: pixelbug

handlers:
- url: /(.*\.css)
Expand Down
Binary file modified app/assets/visbug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/demo/artboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
grid-gap: 0.5rem;
border: 1px solid var(--darkest-grey);
border-radius: 1rem;
padding: 0.5rem 0.75rem;
padding: 0.5rem;

& > p {
margin-top: 0;
Expand Down
14 changes: 14 additions & 0 deletions app/demo/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,18 @@ a {
&[href]:not(:hover) {
text-decoration: none;
}
}

[text-styles] {
padding: 0 2rem 2rem;
}

[bad-contrast] {
background: hsl(0,0%,40%);
color: hsl(0,0%,70%);
}

[good-contrast] {
background: black;
color: white;
}
128 changes: 90 additions & 38 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,29 +110,29 @@ <h2>
<article span1x1 flex class="artboard">
<label class="Click_stuff_below_👇">Select</label>
<div class="You_did_it!" grid="rows" horizontally-aligned="center" vertically-aligned="center" vertically-distributed="around">
<h2 class="You_did_it!"><b class="You_did_it!">Click</b> Me 😏</h2>
<h2 class="You_did_it!"><b class="You_did_it!">Click</b> Me <em class="Emoji_are_coo" style="font-style: normal;">😏</em></h2>
</div>
</article>

<article span2x1 class="artboard" padded grid vertically-distributed="between">
<label>Keyboard Nav</label>
<div class="tips">
<p> <kbd>Tab</kbd> & <kbd>Shift + Tab</kbd> traverse laterally</p>
<p> <kbd>Enter</kbd> & <kbd>Shift + Enter</kbd> traverse lineage</p>
<p><kbd>Tab</kbd> & <kbd>Shift + Tab</kbd> traverse laterally</p>
<p><kbd>Enter</kbd> & <kbd>Shift + Enter</kbd> traverse lineage</p>
</div>
<div grid horizontally-distributed="between" vertically-aligned="center">
<div class="outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="filled-square"></div>
<div class="filled-square"></div>
<div class="Tab_in_and_out_and_around_these_children" grid horizontally-distributed="between" vertically-aligned="center">
<div class="Press_enter! outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="Press_tab! filled-square"></div>
<div class="filled-square"></div>
<div class="filled-square"></div>
<div class="Press_shift+tab! filled-square"></div>
</div>
<div class="filled-square"></div>
<div class="outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="filled-square"></div>
<div class="filled-square"></div>
<div class="Press_tab! filled-square"></div>
<div class="Press_enter! outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="Press_tab! filled-square"></div>
<div class="filled-square"></div>
<div class="filled-square"></div>
<div class="Press_shift+tab! filled-square"></div>
</div>
</div>
</article>
Expand All @@ -144,7 +144,7 @@ <h2 class="You_did_it!"><b class="You_did_it!">Click</b> Me 😏</h2>
<p> Press <kbd>cmd+e</kbd> to expand your selection</p>
<p> Press <kbd>cmd+shift+e</kbd> to expand to all matches</p>
</div>
<div grid vertically-aligned="center">
<div grid vertically-aligned="center" class="Demo_area_for_expanding_selection">
<span class="tip">try here 👉</span>
<div multi-select class="so_many!_how_to_select_them_all!?">
<span class="cmd_e"></span>
Expand All @@ -168,7 +168,7 @@ <h2 class="You_did_it!"><b class="You_did_it!">Click</b> Me 😏</h2>
<div class="tips">
<p> Hotkey <kbd>m</kbd></p>
</div>
<div fit-height grid vertically-aligned="center" horizontally-aligned="center">
<div fit-height grid vertically-aligned="center" horizontally-aligned="center" class="Select_all_the_buttons_and_adjust_their_margin_spacing">
<nav margin>
<a class="margin-link" href="#">Home</a>
<a class="margin-link" href="#">About</a>
Expand Down Expand Up @@ -200,10 +200,9 @@ <h3>Am I in the center?<span class="👾_wtf_is_this? delete_it!">&nbsp;&nbsp;&n
<article span1x1 flex class="dark artboard For_fun-copy_my_styles">
<div grid="rows" horizontally-aligned="center" vertically-aligned="center" vertically-distributed="around">
<div>
<h2><kbd>opt+delete</kbd></h2>
<h2>No undo yet..</h2>
<h2>BUT<br>
<small>You can unstyle</small>
<h2>#1 rule</h2>
<h2>
<small>Have some fun!</small>
</h2>
</div>
</div>
Expand All @@ -229,7 +228,7 @@ <h2>BUT<br>
<p> Press <kbd>cmd+d</kbd></p>
</div>
<div fit-height grid vertically-aligned="center" horizontally-aligned="center" horizontally-distributed="around">
<button class="mdc-button mdc-button--raised" style="margin-bottom:0.5rem;">Submit</button>
<button class="mdc-button mdc-button--raised" style="margin-bottom:0.5rem;">Dupe</button>
</div>
</article>

Expand All @@ -239,11 +238,11 @@ <h2>BUT<br>
<p> Copy the circle <b>from the left box</b> and paste it <b>in the right box</b></p>
<p> Works across tabs!</b></p>
</div>
<div grid horizontally-distributed="around" vertically-aligned="center">
<div class="outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="filled-circle"></div>
<div class="Copy_and_paste_simple_elements" grid horizontally-distributed="around" vertically-aligned="center">
<div class="Copy_the_circle_in_this_square outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="Copy_me filled-circle"></div>
</div>
<div class="outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
<div class="Paste_here outlined-square" grid horizontally-distributed="around" vertically-aligned="center">
</div>
</div>
</article>
Expand All @@ -264,27 +263,66 @@ <h2>BUT<br>
<article span2x2 padded class="artboard">
<label>Image Swap</label>
<div image-grid>
<div>
<p class="tip">💡 Select all 4 images and drag in 4 new ones</p>
<p class="tip">💡 Drag a new image onto any one of these too</p>
<div class="tips">
<p>Select all 4 images and drag in some new ones</p>
<p>OR just drag a new image onto any one of these</p>
</div>
<img src="http://i.pravatar.cc/300?img=7" alt="">
<img src="http://i.pravatar.cc/300?img=24" alt="">
<img src="http://i.pravatar.cc/300?img=22" alt="">
<img src="http://i.pravatar.cc/300?img=16" alt="">
<img class="drag_in_a_new_image!" src="http://i.pravatar.cc/300?img=7" alt="">
<img class="drag_in_a_new_image!" src="http://i.pravatar.cc/300?img=24" alt="">
<img class="drag_in_a_new_image!" src="http://i.pravatar.cc/300?img=22" alt="">
<img class="drag_in_a_new_image!" src="http://i.pravatar.cc/300?img=16" alt="">
</div>
</article>

<article span2x1 padded class="artboard">
<article span2x1 padded class="artboard" grid="rows" vertically-distributed="around" horizontally-aligned="left">
<label>Accessibility Tool</label>
<span good-contrast>Good contrast</span>
<span bad-contrast>Bad contrast</span>
<form>
<div class="mdc-form-field">
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="radio-1" name="radios">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
<label for="radio-1">Radio 1</label>
</div>
<div class="mdc-form-field">
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="radio-2" name="radios" checked>
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
<label for="radio-2">Radio 2</label>
</div>
<div class="mdc-form-field">
<div class="mdc-radio">
<input class="mdc-radio__native-control" type="radio" id="radio-3" name="radios">
<div class="mdc-radio__background">
<div class="mdc-radio__outer-circle"></div>
<div class="mdc-radio__inner-circle"></div>
</div>
</div>
<label for="radio-3">Radio 3</label>
</div>
<div>
<button class="mdc-button mdc-button--outlined" type="reset">Reset</button>
<button class="mdc-button mdc-button--raised" type="submit">Submit</button>
</div>
</form>
<img src="assets/visbug.png" alt="Sweet VisBug logo" style="width: 4rem;">
</article>

<article span3x1 class="artboard" padded grid vertically-distributed="equal">
<label>Text Styles</label>
<div class="tips">
<p> Multiselect these headings and edit the ramp with the font tool</p>
</div>
<div text-styles>
<div text-styles class="Multiselect_each_header_here_and_change_their_fontsize!">
<h1>The quick brown fox jumps over the lazy dog</h1>
<h2>The quick brown fox jumps over the lazy dog</h2>
<h3>The quick brown fox jumps over the lazy dog</h3>
Expand All @@ -300,18 +338,19 @@ <h6>The quick brown fox jumps over the lazy dog</h6>
<p><b>Fix the order</b> of the circles below</p>
</div>
<div ordered-numbers fit-height>
<div class="filled-circle">3</div>
<div class="filled-circle">5</div>
<div class="filled-circle">4</div>
<div class="filled-circle">1</div>
<div class="filled-circle">2</div>
<div class="Use_left_and_right_arrows filled-circle">3</div>
<div class="Use_left_and_right_arrows filled-circle">5</div>
<div class="Use_left_and_right_arrows filled-circle">4</div>
<div class="Use_left_and_right_arrows filled-circle">1</div>
<div class="Use_left_and_right_arrows filled-circle">2</div>
</div>
</article>

<article span1x2 class="artboard" padded grid="rows" vertically-distributed="equal" horizontally-aligned="center">
<label>Move Tool</label>
<div class="tips">
<p >Flow direction can make left/right be up/down 🤔</p>
<p>Flow direction can make left/right be up/down 🤔</p>
<p><b>Fix the order</b> of the stop light below</p>
</div>
<div stop-light fit-height>
<div class="filled-circle green"></div>
Expand Down Expand Up @@ -346,7 +385,7 @@ <h2>Site<br>
<p>Delete, copy, paste, & duplicate svg!</p>
<p>Change color, move x/y, & inspect svg!</p>
</div>
<div grid vertically-aligned="center" horizontally-aligned="center">
<div class="Play_with_this_svg!" fit-height grid vertically-aligned="center" horizontally-aligned="center">
<svg height="90%" width="90%" viewBox="0 0 512 512" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<filter x="0.0%" y="0.0%" width="100.0%" height="100.0%" filterUnits="objectBoundingBox" id="filter-1">
Expand Down Expand Up @@ -476,6 +515,19 @@ <h2 style="font-size: 3rem; color: green; text-shadow: 0 2px 4px red; font-weigh
</div>
</article>

<article span1x1 flex class="dark artboard For_fun-copy_my_styles">
<div grid="rows" horizontally-aligned="center" vertically-aligned="center" vertically-distributed="around">
<div>
<!-- <h2><kbd>opt+delete</kbd></h2> -->
<h2>No undo..</h2>
<h2>yet.</h2>
<h2>BUT<br>
<small>You can unstyle</small>
</h2>
</div>
</div>
</article>

</main>

<script src="bundle.js" defer></script>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"extension:css": "postcss app/extension.css -o extension/toolbar/bundle.css",
"extension:copy": "cp app/bundle.js extension/toolbar/ && cp -R app/tuts/ extension/tuts/",
"extension:zip": "rm -rf ./extension/build/* && mkdir ./visbug_v$npm_package_version && cp -R ./extension/* ./visbug_v$npm_package_version/ && zip -r ./extension/build/visbug_v$npm_package_version.zip ./visbug_v$npm_package_version && rm -rf ./visbug_v$npm_package_version",
"deploy": "gcloud app deploy --project=google.com:atoms-sandbox"
"deploy": "gcloud app deploy --project=visbug-1337"
},
"author": "",
"license": "ISC",
Expand Down

0 comments on commit ce24762

Please sign in to comment.