Skip to content

Instantly share code, notes, and snippets.

1

In todays class, we will create a simple webpage. And some Javascript code in it.

2

Webpage consists of 3 technologies. HTML, CSS and JS.

Links:

@mxrguspxrtwork
mxrguspxrtwork / phrase_client.ex
Last active June 1, 2022 18:00
How to get translations for locales in Phrase
# 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 }}