www/src/layouts/page/white-paper.html

161 lines
5.7 KiB
HTML
Raw Normal View History

{{ define "main" }}
2022-10-25 23:10:28 +03:00
{{- partial "white-paper-gen-art.html" -}}
2022-10-25 02:58:28 +03:00
<!-- Hero Section -->
2022-10-31 01:52:34 +03:00
<div class="section two-boxes wp-hero-section">
2022-10-13 23:55:46 +03:00
<div class="container">
<div class="row">
<div class="col" style="position: relative; z-index: 2;">
2022-10-13 23:55:46 +03:00
<h1>White Paper</h1>
2022-10-31 01:52:34 +03:00
<div class="wp-lead-text-container animated-5 animatedFadeInUp fadeInUp p-4 black-bg">
<p class="lead" style="margin-bottom: 0px;">Opensource is about the many coming together to create something great. In the spirit of that, were inviting developers, speculators, and enthusiasts alike to contribute to our white paper and help brew the future of the internet. This is our revolutionary undertaking to create equitable opensource for web3, and we want you to be a part of laying its groundwork.</p>
</div>
2022-10-25 03:15:49 +03:00
<img class="mobile-grid-element" src="/Images/mobile-grid-element-3-rows.svg" alt="grid">
2022-10-13 23:55:46 +03:00
</div>
</div>
2022-10-24 23:54:47 +03:00
</div>
</div>
2022-10-24 15:56:00 +03:00
2022-10-24 23:54:47 +03:00
<hr>
2022-10-25 19:16:58 +03:00
<div class="row button-container">
<a href="/tea.white-paper.pdf" role="button" class="btn btn-primary auth-btn split-btn" id="nav-cta"><i class="icon-enter-arrow"></i>DOWNLOAD WHITEPAPER</a>
<a href="https://github.com/teaxyz/white-paper" role="button" class="btn btn-primary auth-btn split-btn split-right" id="nav-cta"><i class="icon-enter-arrow"></i>CONTRIBUTE ON GITHUB</a>
</div>
<hr>
<style>
.split-btn{
display: inline-block;
width: 50%;
}
.split-right{
border-left: 0px !important;
}
</style>
2022-10-24 15:56:00 +03:00
<section class="one-box">
2022-10-25 03:15:49 +03:00
<div class="container">
2022-09-09 17:26:55 +03:00
<div class="row">
2022-10-24 23:54:47 +03:00
<div class="col">
<h4>Our white paper is available in multiple languages</h4>
<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>
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle languages" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Choose a Language
</button>
<ul class="dropdown-menu" id="language-selector"></ul>
2022-09-09 17:26:55 +03:00
</div>
2022-10-25 03:15:49 +03:00
<img class="mobile-grid-element" src="/Images/mobile-grid-element-3-rows.svg" alt="grid">
</div>
2022-10-24 23:54:47 +03:00
</div>
2022-10-13 23:55:46 +03:00
</div>
2022-10-24 23:54:47 +03:00
</section>
2022-10-13 23:55:46 +03:00
<section>
<div class="container" style="padding-top: 0px !important;">
<div class="row">
<div class="col">
<div id="adobe-dc-view" style="width: 100%;"></div>
<script src="https://documentservices.adobe.com/view-sdk/viewer.js"></script>
<script type="text/javascript">
const versions = [
['English', ''],
['Bahasa Indonesia', '_id'],
['беларускі', '_be'],
['български', '_bg'],
['Deutsch', '_de'],
['Русский', '_ru'],
['українська', '_uk'],
['官话', '_zh']
];
let adobeDcView;
const getAdobeDcView = () => {
if (!adobeDcView) {
adobeDCView = new AdobeDC.View({
clientId: "fc933927b4e947c2aaf9a7b33b26f0b4",
divId: "adobe-dc-view"
});
}
return adobeDCView;
}
const getWhitePaperUrl = (suffix = '') => {
return 'https://tea.xyz/tea.white-paper' + suffix + '.pdf';
}
document.addEventListener("adobe_dc_view_sdk.ready", function(){
2022-10-24 04:24:35 +03:00
//Must change clientId before final merge
try {
for (const lang of versions) {
$('#language-selector').append("<li><a class=\"dropdown-item\" onclick=\"viewWhitepaper(\'" + lang[1] + "')\">" + lang[0] + "</a></li>");
}
const adobeDCView = getAdobeDcView();
adobeDCView.previewFile({
content:{
location: {
url: getWhitePaperUrl(),
}
},
metaData:{
fileName: "tea.white-paper.pdf"
}
}, { embedMode: "IN_LINE" });
} catch (error) {
console.error('test:', error);
}
});
function viewWhitepaper(suffix) {
const adobeDCView = getAdobeDcView();
const url = getWhitePaperUrl(suffix);
adobeDCView.previewFile({
content:{
location: { url }
},
metaData:{
fileName: "tea.white-paper.pdf"
}
}, { embedMode: "IN_LINE" });
// document.getElementById('mobile-wp-download').setAttribute('href', url);
}
</script>
</div>
</div>
</div>
</section>
2022-10-24 04:39:29 +03:00
<!-- Start PDF
<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">
</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>
<a id="mobile-wp-download" style="display:block; margin-left:auto; margin-right:auto;" class="btn btn-primary mb-3"
href="https://tea.xyz/tea.white-paper.pdf" role="button">Download our White Paper</a>
</div>
</div>
</div>
</div>
</div>
2022-10-24 04:39:29 +03:00
</div>-->
{{ end }}