Skip to content

Instantly share code, notes, and snippets.

Created May 20, 2020 07:55
What would you like to do?
def render(assigns) do
<h1>Front Porch Light</h1>
<div id="light">
<div class="meter">
<span style="width: <%= @brigthness %>%">
<%= @brigthness %>
<img src="images/light-off.svg"/>
<img src="images/light-on.svg"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment