In todays class, we will create a simple webpage. And some Javascript code in it.
Webpage consists of 3 technologies. HTML, CSS and JS.
Links:
# Author: Margus Pärt (margus@wave.ee) | |
# Work based and added value from original: https://github.com/lorenzosinisi/phrase_client | |
# Usage: | |
# | |
# def fetch_translations do | |
# {:ok, locales} = PhraseClient.get_locales() | |
# Enum.map(locales, fn locale -> | |
# {:ok, translations} = PhraseClient.get_translations(locale) | |
# save_translations_to_file(locale, translations) |
# Final result should look like | |
def render(assigns) do | |
~H""" | |
<style> | |
color: {{ @theme.color }}; | |
background-color: {{ @theme.background_color }}; | |
font-size: {{ @count + 12 }}px; | |
&:hover { | |
background-color: {{ @theme.background_color_2 }} |