2022-06-08 02:18:10 +03:00
{{ define "main" }}
<!-- Hero Section -->
2022-10-13 23:41:38 +03:00
2022-09-09 17:26:55 +03:00
< div class = "row" >
< hr >
2022-09-09 18:04:36 +03:00
< div class = "col mb-4 mt-3" >
< h4 > Our white paper is available in multiple languages< / h4 >
2022-09-09 20:26:15 +03:00
< p > Thanks to the tea community's generosity and time, our white paper is available in several world languages. Select your preferred language from the dropdown menu.< / p >
2022-09-09 18:04:36 +03:00
< div class = "dropdown" >
< button class = "btn btn-secondary dropdown-toggle languages" type = "button" data-bs-toggle = "dropdown" aria-expanded = "false" >
Choose a Language
< / button >
2022-09-13 01:32:41 +03:00
< ul class = "dropdown-menu" id = "language-selector" > < / ul >
2022-09-09 18:04:36 +03:00
< / div >
2022-09-09 17:26:55 +03:00
< / div >
2022-09-13 01:32:41 +03:00
< / div >
2022-06-08 02:18:10 +03:00
< / div >
2022-09-13 01:32:41 +03:00
< script >
const versions = [
['English', ''],
2022-09-21 23:14:30 +03:00
['Bahasa Indonesia', '_id'],
['беларускі', '_be'],
2022-10-07 18:03:15 +03:00
['Deutsch', '_de'],
['官话', '_zh']
2022-09-13 01:32:41 +03:00
];
document.addEventListener('DOMContentLoaded', function () {
for (const lang of versions) {
$('#language-selector').append("< li > < a class = \"dropdown-item\" onclick = \"go(\'" + lang [ 1 ] + " ' ) \ " > " + lang[0] + "< / a > < / li > ");
}
}, false);
function go(suffix) {
const url = 'https://tea.xyz/tea.white-paper' + suffix + '.pdf';
document.getElementById('wp-iframe').setAttribute('src', url + '#toolbar=0&navpanes=0&view=fitH');
document.getElementById('mobile-wp-download').setAttribute('href', url);
}
< / script >
2022-09-09 19:56:50 +03:00
2022-09-09 18:04:36 +03:00
< style >
.languages{
border: 2px solid white;
border-radius: 30px;
width:240px;
background-color:#1C1E21;
}
.languages:hover{
background-color:#23282c;
}
.languages:focus{
background-color:#1C1E21;
}
.dropdown-menu{
width:240px;
background-color:#23282c;
color:white;
}
.dropdown-item{
color:white;
}
.dropdown-item:hover{
background-color: #54BAAB;
}
< / style >
2022-10-13 23:41:38 +03:00
<!-- IF POSSIBLE:
I'd like to directly feed the .MD onto the this page instead of using an iFrame to display the PDF. Will look cleaner that way. Alterntively, we can just have a an accordion for the different languages with CTAs that open the white paper in a new tab. Just no iframes.
<!-- Start PDF
2022-06-08 02:18:10 +03:00
< div class = "container pdf-iframe"
style="margin-bottom:100px; overflow:auto; -webkit-overflow-scrolling:touch; z-index:2;">
2022-09-09 19:56:50 +03:00
< iframe id = "wp-iframe" src = "https://tea.xyz/tea.white-paper.pdf#toolbar=0&navpanes=0&view=fitH" width = "100%" height = "800px" >
2022-06-08 02:18:10 +03:00
< / iframe >
< / div >
< div class = "container mobile-pdf" style = "margin-bottom:100px;" >
< div class = "row" >
< div class = "col" >
< div class = "card" >
< div style = "display:flex; flex-direction:column; background-color:#23282C;" class = "card-body pt-5 pb-5" >
< div style = "margin-top:auto; margin-bottom:auto;" >
< p class = "text-center" > Mobile browsers can be finicky, so please view our white paper via the button
below.< / p >
2022-09-09 20:26:15 +03:00
< a id = "mobile-wp-download" style = "display:block; margin-left:auto; margin-right:auto;" class = "btn btn-primary mb-3"
2022-06-08 02:18:10 +03:00
href="https://tea.xyz/tea.white-paper.pdf" role="button">Download our White Paper< / a >
< / div >
< / div >
< / div >
< / div >
< / div >
2022-10-13 23:41:38 +03:00
< / div > -->
2022-06-08 02:18:10 +03:00
{{ end }}