Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(website): improve markdown rendering #463

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions gnoland/website/pages/HOME.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,3 @@ Check out our [community projects](https://github.com/gnolang/awesome-gno).
Official channel: [Discord](https://discord.gg/S8nKUqwkPn)<br />
Other channels: [Telegram](https://t.me/gnoland) [Twitter](https://twitter.com/_gnoland)

<!-- mailchimp -->
<div id="mc_embed_signup">
<form action="https://land.us18.list-manage.com/subscribe/post?u=8befe3303cf82796d2c1a1aff&amp;id=271812000b&amp;f_id=009170e7f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_self">
<label for="mce-EMAIL">Subscribe by email:</label>
<div id="mc_embed_signup_scroll">
<div class="mc-field-group">
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Type your email here" required>
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
<span id="mce-EMAIL-HELPERTEXT" class="helper_text"></span>
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_8befe3303cf82796d2c1a1aff_271812000b" tabindex="-1" value=""></div>
</div>
</form>
</div>
<!-- /mailchimp -->
6 changes: 5 additions & 1 deletion gnoland/website/static/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ pre {
margin-left: auto;
}

#home {
#home, #subscribe {
padding: 0 22px;
}

Expand Down Expand Up @@ -150,3 +150,7 @@ pre {
#realm_help .func_name td {
font-weight: bold;
}

#source {
display: none;
}
27 changes: 27 additions & 0 deletions gnoland/website/views/funcs.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="stylesheet" href="/static/css/app.css"/>
<link rel="stylesheet" href="/static/css/normalize.css"/>
<noscript>
<style type="text/css">
#source { display:block; }
</style>
</noscript>
{{ end }}

{{ define "header_logo" }}<a id="logo" href="/"><img src="/static/img/logo.png" alt="Gno.land" title="Gno.land" height="38" /> </a>{{ end }}
Expand All @@ -30,3 +35,25 @@
};
</script>
{{ end }}

{{ define "subscribe" }}
<!-- mailchimp -->
<div id="mc_embed_signup">
<form action="https://land.us18.list-manage.com/subscribe/post?u=8befe3303cf82796d2c1a1aff&amp;id=271812000b&amp;f_id=009170e7f0" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_self">
<label for="mce-EMAIL">Subscribe by email:</label>
<div id="mc_embed_signup_scroll">
<div class="mc-field-group">
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL" placeholder="Type your email here" required>
<input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button">
<span id="mce-EMAIL-HELPERTEXT" class="helper_text"></span>
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div>
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_8befe3303cf82796d2c1a1aff_271812000b" tabindex="-1" value=""></div>
</div>
</form>
</div>
<!-- /mailchimp -->
{{ end }}
3 changes: 3 additions & 0 deletions gnoland/website/views/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
<div id="home">
<pre id="source">{{ .Data.HomeContent }}</pre>
</div>
<div id="subscribe">
{{ template "subscribe" }}
</div>
{{ template "footer" }}
</div>
{{ template "js" }}
Expand Down