v0.7.2
Added -mechanism for changing one slide at a time in carousel - ICO investors in ICO page
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 529 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 274 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 303 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 234 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 269 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 221 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 245 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 274 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 247 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 434 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 288 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 247 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 157 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 361 KiB |
|
Before Width: | Height: | Size: 1.8 MiB After Width: | Height: | Size: 521 KiB |
|
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 270 KiB |
|
Before Width: | Height: | Size: 126 KiB After Width: | Height: | Size: 288 KiB |
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 227 KiB |
|
Before Width: | Height: | Size: 189 KiB After Width: | Height: | Size: 271 KiB |
|
Before Width: | Height: | Size: 67 KiB |
BIN
assets/investors/Janardan Tiwary.jpg
Normal file
|
After Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 142 KiB |
BIN
assets/investors/Kanwal Koul.jpg
Normal file
|
After Width: | Height: | Size: 238 KiB |
|
Before Width: | Height: | Size: 104 KiB After Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 90 KiB |
BIN
assets/investors/Meghna Patel.jpg
Normal file
|
After Width: | Height: | Size: 244 KiB |
|
Before Width: | Height: | Size: 69 KiB After Width: | Height: | Size: 252 KiB |
|
Before Width: | Height: | Size: 437 KiB After Width: | Height: | Size: 416 KiB |
|
Before Width: | Height: | Size: 156 KiB After Width: | Height: | Size: 277 KiB |
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 239 KiB |
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 162 KiB |
|
Before Width: | Height: | Size: 920 KiB After Width: | Height: | Size: 358 KiB |
@ -2339,9 +2339,7 @@ button:focus-visible{
|
|||||||
}
|
}
|
||||||
.carousel-container{
|
.carousel-container{
|
||||||
position: relative;
|
position: relative;
|
||||||
display: -webkit-box;
|
display: grid;
|
||||||
display: -ms-flexbox;
|
|
||||||
display: flex;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: center;
|
||||||
@ -2451,7 +2449,8 @@ customElements.define('sm-carousel', class extends HTMLElement {
|
|||||||
}).append(smCarousel.content.cloneNode(true))
|
}).append(smCarousel.content.cloneNode(true))
|
||||||
|
|
||||||
this.isAutoPlaying = false
|
this.isAutoPlaying = false
|
||||||
this.autoPlayInterval = 3000
|
this.autoPlayInterval = 5000
|
||||||
|
this.autoPlayTimeout
|
||||||
this.activeSlideNum = 0
|
this.activeSlideNum = 0
|
||||||
this.carouselItems
|
this.carouselItems
|
||||||
this.indicators
|
this.indicators
|
||||||
@ -2504,14 +2503,14 @@ customElements.define('sm-carousel', class extends HTMLElement {
|
|||||||
else
|
else
|
||||||
this.showSlide(0)
|
this.showSlide(0)
|
||||||
if (this.isAutoPlaying) {
|
if (this.isAutoPlaying) {
|
||||||
setTimeout(() => {
|
this.autoPlayTimeout = setTimeout(() => {
|
||||||
this.startAutoPlay()
|
this.startAutoPlay()
|
||||||
}, this.autoPlayInterval);
|
}, this.autoPlayInterval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stopAutoPlay = () => {
|
stopAutoPlay = () => {
|
||||||
this.isAutoPlaying = false
|
this.removeAttribute('autoplay')
|
||||||
}
|
}
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
@ -2617,7 +2616,8 @@ customElements.define('sm-carousel', class extends HTMLElement {
|
|||||||
this.startAutoPlay()
|
this.startAutoPlay()
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.stopAutoPlay()
|
this.isAutoPlaying = false
|
||||||
|
clearTimeout(this.autoPlayTimeout)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2626,7 +2626,7 @@ customElements.define('sm-carousel', class extends HTMLElement {
|
|||||||
this.autoPlayInterval = Math.abs(parseInt(this.getAttribute('interval').trim()))
|
this.autoPlayInterval = Math.abs(parseInt(this.getAttribute('interval').trim()))
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.autoPlayInterval = 3000
|
this.autoPlayInterval = 5000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -3490,9 +3490,6 @@ smTabPanels.innerHTML = `
|
|||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
:host{
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.panel-container{
|
.panel-container{
|
||||||
position: relative;
|
position: relative;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
@ -3504,17 +3501,7 @@ smTabPanels.innerHTML = `
|
|||||||
}
|
}
|
||||||
slot::slotted(.hide-completely){
|
slot::slotted(.hide-completely){
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
@media (hover: none){
|
|
||||||
.tab-header::-webkit-scrollbar-track {
|
|
||||||
-webkit-box-shadow: none !important;
|
|
||||||
background-color: transparent !important;
|
|
||||||
}
|
|
||||||
.tab-header::-webkit-scrollbar {
|
|
||||||
height: 0;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
<div part="panel-container" class="panel-container">
|
<div part="panel-container" class="panel-container">
|
||||||
<slot>Nothing to see here.</slot>
|
<slot>Nothing to see here.</slot>
|
||||||
|
|||||||
73
css/main.css
@ -37,7 +37,7 @@ body[data-theme=dark] .outlet-preview {
|
|||||||
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 5px -1px, rgba(0, 0, 0, 0.4) 0px 1px 3px -1px;
|
-webkit-box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 5px -1px, rgba(0, 0, 0, 0.4) 0px 1px 3px -1px;
|
||||||
box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 5px -1px, rgba(0, 0, 0, 0.4) 0px 1px 3px -1px;
|
box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 5px -1px, rgba(0, 0, 0, 0.4) 0px 1px 3px -1px;
|
||||||
}
|
}
|
||||||
body[data-theme=dark] sm-carousel {
|
body[data-theme=dark] .outlet-preview sm-carousel {
|
||||||
border-top: dashed 0.5rem rgba(var(--foreground-color), 0.7);
|
border-top: dashed 0.5rem rgba(var(--foreground-color), 0.7);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -168,6 +168,16 @@ ul {
|
|||||||
gap: 3rem;
|
gap: 3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.pos-relative {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.align-start {
|
||||||
|
-webkit-box-align: start;
|
||||||
|
-ms-flex-align: start;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
.align-center {
|
.align-center {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: center;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: center;
|
||||||
@ -178,6 +188,12 @@ ul {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.justify-start {
|
||||||
|
-webkit-box-pack: start;
|
||||||
|
-ms-flex-pack: start;
|
||||||
|
justify-content: start;
|
||||||
|
}
|
||||||
|
|
||||||
.justify-center {
|
.justify-center {
|
||||||
-webkit-box-pack: center;
|
-webkit-box-pack: center;
|
||||||
-ms-flex-pack: center;
|
-ms-flex-pack: center;
|
||||||
@ -188,6 +204,15 @@ ul {
|
|||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.align-self-center {
|
||||||
|
-ms-flex-item-align: center;
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.justify-self-center {
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
|
|
||||||
.direction-column {
|
.direction-column {
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
-webkit-box-direction: normal;
|
-webkit-box-direction: normal;
|
||||||
@ -416,6 +441,11 @@ ul {
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag {
|
||||||
|
background: var(--accent-color);
|
||||||
|
padding: 0.4rem 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
.common-padding {
|
.common-padding {
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
@ -433,6 +463,7 @@ ul {
|
|||||||
.outlet-preview {
|
.outlet-preview {
|
||||||
padding-top: 2rem;
|
padding-top: 2rem;
|
||||||
background: rgba(var(--foreground-color), 1);
|
background: rgba(var(--foreground-color), 1);
|
||||||
|
border-radius: 0.3rem;
|
||||||
-webkit-transition: -webkit-box-shadow 0.3s;
|
-webkit-transition: -webkit-box-shadow 0.3s;
|
||||||
transition: -webkit-box-shadow 0.3s;
|
transition: -webkit-box-shadow 0.3s;
|
||||||
transition: box-shadow 0.3s;
|
transition: box-shadow 0.3s;
|
||||||
@ -444,6 +475,9 @@ ul {
|
|||||||
background-size: contain;
|
background-size: contain;
|
||||||
} */
|
} */
|
||||||
}
|
}
|
||||||
|
.outlet-preview sm-carousel {
|
||||||
|
border-top: dashed 0.5rem rgba(var(--foreground-color), 1);
|
||||||
|
}
|
||||||
|
|
||||||
.outlet__title {
|
.outlet__title {
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
@ -462,13 +496,13 @@ ul {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sm-carousel {
|
sm-carousel {
|
||||||
border-top: dashed 0.5rem rgba(var(--foreground-color), 1);
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(var(--text-color), 0.06);
|
background: rgba(var(--text-color), 0.06);
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
padding-top: 1.5rem;
|
padding-top: 1.5rem;
|
||||||
--arrow-left: 2rem;
|
--arrow-left: 1.5rem;
|
||||||
--arrow-right: 2rem;
|
--arrow-right: 1.5rem;
|
||||||
--arrow-fill: rgba(var(--text-color), 1);
|
--arrow-fill: rgba(var(--text-color), 1);
|
||||||
--arrow-background: transparent;
|
--arrow-background: transparent;
|
||||||
--arrow-box-shadow: none;
|
--arrow-box-shadow: none;
|
||||||
@ -483,18 +517,33 @@ sm-carousel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.investor-card {
|
.investor-card {
|
||||||
-webkit-box-align: center;
|
-webkit-box-align: start;
|
||||||
-ms-flex-align: center;
|
-ms-flex-align: start;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
grid-template-columns: auto 1fr;
|
grid-template-columns: auto 1fr;
|
||||||
|
grid-template-rows: auto 1fr;
|
||||||
|
}
|
||||||
|
.investor-card--small {
|
||||||
grid-template-areas: "img ." "para para";
|
grid-template-areas: "img ." "para para";
|
||||||
}
|
}
|
||||||
|
.investor-card--small .investor__image {
|
||||||
|
width: 4rem;
|
||||||
|
height: 4rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
.investor-card--big {
|
||||||
|
grid-template-areas: "img ." "img para";
|
||||||
|
}
|
||||||
|
|
||||||
.investor__image {
|
.investor__image {
|
||||||
grid-area: img;
|
grid-area: img;
|
||||||
width: 4rem;
|
width: 8rem;
|
||||||
height: 4rem;
|
border-radius: 0.5rem;
|
||||||
border-radius: 50%;
|
}
|
||||||
|
|
||||||
|
.investor__bio {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.investor__contribution-container {
|
.investor__contribution-container {
|
||||||
@ -526,6 +575,10 @@ table {
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ico_page__carousel {
|
||||||
|
width: min(32rem, 100%);
|
||||||
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 640px) {
|
@media only screen and (max-width: 640px) {
|
||||||
.hide-on-mobile {
|
.hide-on-mobile {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
2
css/main.min.css
vendored
@ -32,9 +32,9 @@ body[data-theme='dark']{
|
|||||||
.outlet-preview{
|
.outlet-preview{
|
||||||
background: rgba(var(--text-color), 0.02);
|
background: rgba(var(--text-color), 0.02);
|
||||||
box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 5px -1px, rgba(0, 0, 0, 0.4) 0px 1px 3px -1px;
|
box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 5px -1px, rgba(0, 0, 0, 0.4) 0px 1px 3px -1px;
|
||||||
}
|
sm-carousel{
|
||||||
sm-carousel{
|
border-top: dashed 0.5rem rgba(var(--foreground-color), 0.7);
|
||||||
border-top: dashed 0.5rem rgba(var(--foreground-color), 0.7);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* .font-mono{
|
/* .font-mono{
|
||||||
@ -138,18 +138,33 @@ ul{
|
|||||||
.gap-3{
|
.gap-3{
|
||||||
gap: 3rem;
|
gap: 3rem;
|
||||||
}
|
}
|
||||||
|
.pos-relative{
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.align-start{
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
.align-center{
|
.align-center{
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
.text-center{
|
.text-center{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.justify-start{
|
||||||
|
justify-content: start;
|
||||||
|
}
|
||||||
.justify-center{
|
.justify-center{
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.justify-right{
|
.justify-right{
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
.align-self-center{
|
||||||
|
align-self: center;
|
||||||
|
}
|
||||||
|
.justify-self-center{
|
||||||
|
justify-self: center;
|
||||||
|
}
|
||||||
.direction-column{
|
.direction-column{
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
@ -334,6 +349,11 @@ ul{
|
|||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tag{
|
||||||
|
background: var(--accent-color);
|
||||||
|
padding: 0.4rem 0.6rem;
|
||||||
|
}
|
||||||
|
|
||||||
.common-padding{
|
.common-padding{
|
||||||
padding: 0 1rem;
|
padding: 0 1rem;
|
||||||
}
|
}
|
||||||
@ -351,9 +371,14 @@ ul{
|
|||||||
.outlet-preview{
|
.outlet-preview{
|
||||||
padding-top: 2rem;
|
padding-top: 2rem;
|
||||||
background: rgba(var(--foreground-color), 1);
|
background: rgba(var(--foreground-color), 1);
|
||||||
// border: solid 0.8rem rgba(var(--text-color), 1);
|
// border: solid 0.2rem rgba(var(--text-color), 0.2);
|
||||||
|
border-radius: 0.3rem;
|
||||||
transition: box-shadow 0.3s;
|
transition: box-shadow 0.3s;
|
||||||
|
// box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.2);
|
||||||
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
|
||||||
|
sm-carousel{
|
||||||
|
border-top: dashed 0.5rem rgba(var(--foreground-color), 1);
|
||||||
|
}
|
||||||
/* &:nth-of-type(1){
|
/* &:nth-of-type(1){
|
||||||
background: url(../assets/bg/floor-1-bg.svg) no-repeat top center, linear-gradient(rgba(var(--foreground-color), 1), rgba(var(--foreground-color), 1));
|
background: url(../assets/bg/floor-1-bg.svg) no-repeat top center, linear-gradient(rgba(var(--foreground-color), 1), rgba(var(--foreground-color), 1));
|
||||||
background-size: contain;
|
background-size: contain;
|
||||||
@ -376,13 +401,13 @@ ul{
|
|||||||
}
|
}
|
||||||
|
|
||||||
sm-carousel{
|
sm-carousel{
|
||||||
border-top: dashed 0.5rem rgba(var(--foreground-color), 1);
|
position: relative;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: rgba(var(--text-color), 0.06);
|
background: rgba(var(--text-color), 0.06);
|
||||||
padding-bottom: 4rem;
|
padding-bottom: 4rem;
|
||||||
padding-top: 1.5rem;
|
padding-top: 1.5rem;
|
||||||
--arrow-left: 2rem;
|
--arrow-left: 1.5rem;
|
||||||
--arrow-right: 2rem;
|
--arrow-right: 1.5rem;
|
||||||
--arrow-fill: rgba(var(--text-color), 1);
|
--arrow-fill: rgba(var(--text-color), 1);
|
||||||
--arrow-background: transparent;
|
--arrow-background: transparent;
|
||||||
--arrow-box-shadow: none;
|
--arrow-box-shadow: none;
|
||||||
@ -397,15 +422,29 @@ sm-carousel{
|
|||||||
}
|
}
|
||||||
|
|
||||||
.investor-card{
|
.investor-card{
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
grid-template-columns: auto 1fr;
|
grid-template-columns: auto 1fr;
|
||||||
grid-template-areas: 'img .' 'para para';
|
grid-template-rows: auto 1fr;
|
||||||
|
&--small{
|
||||||
|
grid-template-areas: 'img .' 'para para';
|
||||||
|
.investor__image{
|
||||||
|
width: 4rem;
|
||||||
|
height: 4rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&--big{
|
||||||
|
grid-template-areas: 'img .' 'img para';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.investor__image{
|
.investor__image{
|
||||||
grid-area: img;
|
grid-area: img;
|
||||||
width: 4rem;
|
width: 8rem;
|
||||||
height: 4rem;
|
border-radius: 0.5rem;
|
||||||
border-radius: 50%;
|
}
|
||||||
|
.investor__bio{
|
||||||
|
font-size: 0.9rem;
|
||||||
|
margin-top: 0.5rem;
|
||||||
}
|
}
|
||||||
.investor__contribution-container{
|
.investor__contribution-container{
|
||||||
grid-area: para;
|
grid-area: para;
|
||||||
@ -434,6 +473,10 @@ table{
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ico_page__carousel{
|
||||||
|
width: min(32rem ,100%);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media only screen and (max-width: 640px) {
|
@media only screen and (max-width: 640px) {
|
||||||
.hide-on-mobile{
|
.hide-on-mobile{
|
||||||
|
|||||||
152
index.html
@ -39,15 +39,15 @@
|
|||||||
<template id="bit_bond_row">
|
<template id="bit_bond_row">
|
||||||
<div class="bit-bond-series__row grid flow-column gap-1-5 common-padding">
|
<div class="bit-bond-series__row grid flow-column gap-1-5 common-padding">
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h5 class="label font-slab color-0-8 weight-500">Series</h5>
|
<h5 class="label color-0-8 weight-500">Series</h5>
|
||||||
<h3 class="value original-value"></h3>
|
<h3 class="value original-value"></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h5 class="label font-slab color-0-8 weight-500">Current value</h5>
|
<h5 class="label color-0-8 weight-500">Current value</h5>
|
||||||
<h3 class="value current-value"></h3>
|
<h3 class="value current-value"></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h5 class="label font-slab color-0-8 weight-500">Time Elapsed</h5>
|
<h5 class="label color-0-8 weight-500">Time Elapsed</h5>
|
||||||
<h3 class="value time-elapsed"></h3>
|
<h3 class="value time-elapsed"></h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -56,20 +56,20 @@
|
|||||||
<template id="bob_fund_row">
|
<template id="bob_fund_row">
|
||||||
<div class="bob-fund__row grid gap-1-5 common-padding">
|
<div class="bob-fund__row grid gap-1-5 common-padding">
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h5 class="label font-slab color-0-8 weight-500">Investor</h5>
|
<h5 class="label color-0-8 weight-500">Investor</h5>
|
||||||
<h3 class="value investor-name"></h3>
|
<h3 class="value investor__name"></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid flow-column">
|
<div class="grid flow-column">
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h5 class="label font-slab color-0-8 weight-500">Invested</h5>
|
<h5 class="label color-0-8 weight-500">Invested</h5>
|
||||||
<h3 class="value original-value"></h3>
|
<h3 class="value original-value"></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h4 class="label font-slab color-0-8 weight-500">Current value</h4>
|
<h4 class="label color-0-8 weight-500">Current value</h4>
|
||||||
<h3 class="value current-value"></h3>
|
<h3 class="value current-value"></h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h4 class="label font-slab color-0-8 weight-500">Time Elapsed</h4>
|
<h4 class="label color-0-8 weight-500">Time Elapsed</h4>
|
||||||
<h3 class="value time-elapsed"></h3>
|
<h3 class="value time-elapsed"></h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -80,12 +80,12 @@
|
|||||||
<div class="investor-card grid gap-1-5 common-padding">
|
<div class="investor-card grid gap-1-5 common-padding">
|
||||||
<img class="investor__image" src="" alt="" loading="lazy">
|
<img class="investor__image" src="" alt="" loading="lazy">
|
||||||
<div class="flex direction-column">
|
<div class="flex direction-column">
|
||||||
<h4 class="label font-slab color-0-8 weight-500">Investor</h4>
|
<h3 class="investor__name value capitalize"></h3>
|
||||||
<h3 class="investor-name value capitalize"></h3>
|
<p class="investor__bio color-0-8"></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column investor__contribution-container">
|
<div class="flex direction-column investor__contribution-container">
|
||||||
<h4 class="label font-slab color-0-8 weight-500">Contribution</h4>
|
<h4 class="label color-0-8 weight-500">Contribution</h4>
|
||||||
<p class="investor-contribution font-mono weight-700"></p>
|
<p class="investor__contribution font-mono weight-700"></p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -156,7 +156,7 @@
|
|||||||
<h4 class="font-slab h4 weight-900">Floor 1</h4>
|
<h4 class="font-slab h4 weight-900">Floor 1</h4>
|
||||||
</aside>
|
</aside>
|
||||||
<main id="floor_1__outlets" class="grid">
|
<main id="floor_1__outlets" class="grid">
|
||||||
<div class="flex direction-column card outlet-preview">
|
<div id="bit_bond_outlet" class="flex direction-column card outlet-preview carousel-container">
|
||||||
<div class="flex direction-column common-padding margin-bottom-1-5r text-center">
|
<div class="flex direction-column common-padding margin-bottom-1-5r text-center">
|
||||||
<h3 class="font-slab h3 outlet__title margin-bottom-1r">bitcoin bonds</h3>
|
<h3 class="font-slab h3 outlet__title margin-bottom-1r">bitcoin bonds</h3>
|
||||||
<p class="outlet__description margin-bottom-1-5r">
|
<p class="outlet__description margin-bottom-1-5r">
|
||||||
@ -169,7 +169,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<sm-carousel id="bit_bond_series__container" indicator autoplay></sm-carousel>
|
<sm-carousel id="bit_bond_series__container" indicator autoplay></sm-carousel>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column card outlet-preview">
|
<div id="bob_fund_outlet" class="flex direction-column card outlet-preview carousel-container">
|
||||||
<div class="flex direction-column margin-bottom-1-5r text-center common-padding">
|
<div class="flex direction-column margin-bottom-1-5r text-center common-padding">
|
||||||
<h3 class="font-slab h3 outlet__title margin-bottom-1r">Bob's Fund</h3>
|
<h3 class="font-slab h3 outlet__title margin-bottom-1r">Bob's Fund</h3>
|
||||||
<p class="outlet__description margin-bottom-1-5r">
|
<p class="outlet__description margin-bottom-1-5r">
|
||||||
@ -180,9 +180,9 @@
|
|||||||
<svg class="icon button__icon--right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 12l-6 6V6z"/></svg>
|
<svg class="icon button__icon--right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 12l-6 6V6z"/></svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<sm-carousel id="bob_fund_investors__container" indicator autoplay></sm-carousel>
|
<sm-carousel id="bob_fund_investors__container" indicator></sm-carousel>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex direction-column card outlet-preview">
|
<div id="ico_outlet" class="flex direction-column card outlet-preview carousel-container">
|
||||||
<div class="flex direction-column margin-bottom-1-5r text-center common-padding">
|
<div class="flex direction-column margin-bottom-1-5r text-center common-padding">
|
||||||
<h3 class="font-slab h3 outlet__title margin-bottom-1r">ICO</h3>
|
<h3 class="font-slab h3 outlet__title margin-bottom-1r">ICO</h3>
|
||||||
<p class="outlet__description margin-bottom-1-5r">
|
<p class="outlet__description margin-bottom-1-5r">
|
||||||
@ -193,7 +193,7 @@
|
|||||||
<svg class="icon button__icon--right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 12l-6 6V6z"/></svg>
|
<svg class="icon button__icon--right" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path fill="none" d="M0 0h24v24H0z"/><path d="M16 12l-6 6V6z"/></svg>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<sm-carousel id="ico_investors__container" indicator autoplay></sm-carousel>
|
<sm-carousel id="ico_investors__container" indicator></sm-carousel>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
</section>
|
</section>
|
||||||
@ -205,15 +205,14 @@
|
|||||||
|
|
||||||
<article id="bitbonds" class="page flex direction-column align-center hide-completely">
|
<article id="bitbonds" class="page flex direction-column align-center hide-completely">
|
||||||
<section class="text-center margin-bottom-3r">
|
<section class="text-center margin-bottom-3r">
|
||||||
<h1 class="h1 weight-900 font-slab">BitCoin</h1>
|
<h2 class="h2 weight-900 margin-bottom-1r">BitCoin Bonds</h2>
|
||||||
<h2 class="h2 weight-900 font-slab margin-bottom-1r">Bonds</h2>
|
|
||||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum cumque aut illum soluta. Inventore nihil quisquam harum quo mollitia sunt!</p>
|
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum cumque aut illum soluta. Inventore nihil quisquam harum quo mollitia sunt!</p>
|
||||||
</section>
|
</section>
|
||||||
<sm-tab-header target="bit_bonds__rooms" variant="tab" class="margin-bottom-1-5r">
|
<sm-tab-header target="bit_bonds__rooms" variant="tab" class="margin-bottom-1-5r">
|
||||||
<sm-tab>Returns</sm-tab>
|
<sm-tab>Returns</sm-tab>
|
||||||
<sm-tab>More</sm-tab>
|
<sm-tab>More</sm-tab>
|
||||||
</sm-tab-header>
|
</sm-tab-header>
|
||||||
<sm-tab-panels id="bit_bonds__rooms">
|
<sm-tab-panels id="bit_bonds__rooms" class="grid">
|
||||||
<sm-panel class="grid w-100" style="overflow-x: auto;">
|
<sm-panel class="grid w-100" style="overflow-x: auto;">
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
@ -256,7 +255,7 @@
|
|||||||
|
|
||||||
<article id="bob'sfund" class="page flex direction-column align-center hide-completely">
|
<article id="bob'sfund" class="page flex direction-column align-center hide-completely">
|
||||||
<section class="text-center margin-bottom-3r">
|
<section class="text-center margin-bottom-3r">
|
||||||
<h1 class="h1 weight-900 font-slab margin-bottom-1r">Bob's Fund</h1>
|
<h2 class="h2 weight-900 margin-bottom-1r">Bob's Fund</h2>
|
||||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum cumque aut illum soluta. Inventore nihil quisquam harum quo mollitia sunt!</p>
|
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum cumque aut illum soluta. Inventore nihil quisquam harum quo mollitia sunt!</p>
|
||||||
</section>
|
</section>
|
||||||
<sm-tab-header target="bob_fund_rooms" variant="tab">
|
<sm-tab-header target="bob_fund_rooms" variant="tab">
|
||||||
@ -274,12 +273,12 @@
|
|||||||
</sm-tab-panels>
|
</sm-tab-panels>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
<article id="ico" class="page flex direction-column align-center hide-completely">
|
<article id="ico" class="page flex direction-column hide-completely">
|
||||||
<section class="text-center margin-bottom-3r">
|
<section class="grid justify-center text-center margin-bottom-3r">
|
||||||
<h1 class="h1 weight-900 font-slab margin-bottom-1r">ICO</h1>
|
<h2 class="h2 weight-900 margin-bottom-1r">ICO</h2>
|
||||||
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum cumque aut illum soluta. Inventore nihil quisquam harum quo mollitia sunt!</p>
|
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Harum cumque aut illum soluta. Inventore nihil quisquam harum quo mollitia sunt!</p>
|
||||||
</section>
|
</section>
|
||||||
<sm-tab-header target="ico_rooms" variant="tab">
|
<sm-tab-header target="ico_rooms" variant="tab" class="align-self-center margin-bottom-1-5r">
|
||||||
<sm-tab>
|
<sm-tab>
|
||||||
Investors
|
Investors
|
||||||
</sm-tab>
|
</sm-tab>
|
||||||
@ -290,8 +289,10 @@
|
|||||||
more
|
more
|
||||||
</sm-tab>
|
</sm-tab>
|
||||||
</sm-tab-header>
|
</sm-tab-header>
|
||||||
<sm-tab-panels id="ico_rooms">
|
<sm-tab-panels id="ico_rooms" class="flex w-100">
|
||||||
<sm-panel></sm-panel>
|
<sm-panel class="flex justify-center carousel-container">
|
||||||
|
<sm-carousel id="ico_page__carousel" indicator autoplay></sm-carousel>
|
||||||
|
</sm-panel>
|
||||||
<sm-panel></sm-panel>
|
<sm-panel></sm-panel>
|
||||||
<sm-panel></sm-panel>
|
<sm-panel></sm-panel>
|
||||||
</sm-tab-panels>
|
</sm-tab-panels>
|
||||||
@ -720,19 +721,28 @@
|
|||||||
bobFundRow(obj){
|
bobFundRow(obj){
|
||||||
const {investorName, invested, currentValue, timeElapsed} = obj
|
const {investorName, invested, currentValue, timeElapsed} = obj
|
||||||
const row = document.getElementById('bob_fund_row').content.cloneNode(true)
|
const row = document.getElementById('bob_fund_row').content.cloneNode(true)
|
||||||
row.querySelector('.investor-name').textContent = investorName
|
row.querySelector('.investor__name').textContent = investorName
|
||||||
row.querySelector('.original-value').textContent = invested
|
row.querySelector('.original-value').textContent = invested
|
||||||
row.querySelector('.current-value').textContent = currentValue
|
row.querySelector('.current-value').textContent = currentValue
|
||||||
row.querySelector('.time-elapsed').textContent = timeElapsed
|
row.querySelector('.time-elapsed').textContent = timeElapsed
|
||||||
return row
|
return row
|
||||||
},
|
},
|
||||||
icoInvestorRow(obj){
|
icoInvestorRow(obj, options){
|
||||||
const {extension, investorName, contribution} = obj
|
const {extension, investorName, bio, contribution} = obj
|
||||||
|
const {thumbnail} = options
|
||||||
const row = document.getElementById('ico_investor_row').content.cloneNode(true)
|
const row = document.getElementById('ico_investor_row').content.cloneNode(true)
|
||||||
row.querySelector('.investor__image').src = `assets/investors-thumbnail/${investorName}.${extension}`
|
const card = row.querySelector('.investor-card')
|
||||||
row.querySelector('.investor__image').setAttribute('alt', `${investorName} profile picture`)
|
const folder = thumbnail ? 'investors-thumbnail' : 'investors'
|
||||||
row.querySelector('.investor-name').textContent = investorName
|
const investorImage = row.querySelector('.investor__image')
|
||||||
row.querySelector('.investor-contribution').textContent = contribution
|
if(thumbnail)
|
||||||
|
card.classList.add('investor-card--small')
|
||||||
|
else
|
||||||
|
card.classList.add('investor-card--big')
|
||||||
|
investorImage.src = `assets/${folder}/${investorName}.${extension}`
|
||||||
|
investorImage.setAttribute('alt', `${investorName} profile picture`)
|
||||||
|
row.querySelector('.investor__name').textContent = investorName
|
||||||
|
row.querySelector('.investor__bio').textContent = bio
|
||||||
|
row.querySelector('.investor__contribution').textContent = contribution
|
||||||
return row
|
return row
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -845,6 +855,16 @@
|
|||||||
opacity: 1
|
opacity: 1
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
const slideInUp = [
|
||||||
|
{
|
||||||
|
transform: 'translateY(1rem)',
|
||||||
|
opacity: 0
|
||||||
|
},
|
||||||
|
{
|
||||||
|
transform: 'translateY(0)',
|
||||||
|
opacity: 1
|
||||||
|
},
|
||||||
|
]
|
||||||
const slideOutUp = [
|
const slideOutUp = [
|
||||||
{
|
{
|
||||||
transform: 'translateY(0)',
|
transform: 'translateY(0)',
|
||||||
@ -932,76 +952,91 @@
|
|||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Abhijeet Das Gupta',
|
investorName: 'Abhijeet Das Gupta',
|
||||||
|
bio: 'Product and Technology Solutions Architect at 366Pi Technologies',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Amit Jagetia',
|
investorName: 'Amit Jagetia',
|
||||||
|
bio: 'IT Professional in FinTech Industry',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Amitesh Anand',
|
investorName: 'Amitesh Anand',
|
||||||
|
bio: 'Co-founder and CEO, 366Pi Technologies and Director of Technology, Fennex Ltd.',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Atul Agarwal',
|
investorName: 'Atul Agarwal',
|
||||||
|
bio: 'Entrepreneur, Real Estate Developer, Blockchain Entrepreneur, Iconoclast',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Barun Kumar',
|
investorName: 'Barun Kumar',
|
||||||
|
bio: 'Cybersecurity Professional, Founder of Mantran Consulting, Singapore',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Janardan Tiwary',
|
investorName: 'Janardan Tiwary',
|
||||||
|
bio: 'Retd. General Manager Coal India, Ranchi, Mining Engineer from IIT Dhanbad',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Kanwal Koul',
|
investorName: 'Kanwal Koul',
|
||||||
|
bio: 'Working Professional in the power sector',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Mansoor Ahmed',
|
investorName: 'Mansoor Ahmed',
|
||||||
|
bio: 'Cybersecurity Expert, Founder, and Director Winged World',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Meghna Patel',
|
investorName: 'Meghna Patel',
|
||||||
|
bio: 'Marketing Professional turned Blockchain Enthusiast',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Nikhil Kulkarni',
|
investorName: 'Nikhil Kulkarni',
|
||||||
|
bio: 'CTO and Co-Founder of tripDarwin.com',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Pankaj Miglani',
|
investorName: 'Pankaj Miglani',
|
||||||
|
bio: 'Professional Services Consultant at AWS Cybersecurity',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Rajeev Kumar Gupta',
|
investorName: 'Rajeev Kumar Gupta',
|
||||||
|
bio: 'Curator cum Organizer, TEDx Kanke, and Former DGM-Corporate & Regulatory Affairs at JWS Steel ',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Sudhir Taneja',
|
investorName: 'Sudhir Taneja',
|
||||||
|
bio: 'Sales and Marketing Professional, Associate Vice President, HDFC Life',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Varucchi Dubey',
|
investorName: 'Varucchi Dubey',
|
||||||
|
bio: 'Founder and Managing Director, DNV Security Solutions Pvt Ltd.',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
extension: 'jpg',
|
extension: 'jpg',
|
||||||
investorName: 'Venkat Narayanan',
|
investorName: 'Venkat Narayanan',
|
||||||
|
bio: 'Business Excellence Professional, Sr. Manager at Tata Consultancy Services',
|
||||||
contribution: 'Helping us in social media with increasing reach of Twitter',
|
contribution: 'Helping us in social media with increasing reach of Twitter',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@ -1023,16 +1058,38 @@
|
|||||||
getRef('bob_fund_investors__container').append(frag)
|
getRef('bob_fund_investors__container').append(frag)
|
||||||
}
|
}
|
||||||
function renderAllIcoInvestors(){
|
function renderAllIcoInvestors(){
|
||||||
const frag = document.createDocumentFragment()
|
const frag1 = document.createDocumentFragment()
|
||||||
|
const frag2 = document.createDocumentFragment()
|
||||||
getRef('ico_investors__container').innerHTML = ''
|
getRef('ico_investors__container').innerHTML = ''
|
||||||
|
getRef('ico_page__carousel').innerHTML = ''
|
||||||
icoInvestors.forEach(investor => {
|
icoInvestors.forEach(investor => {
|
||||||
frag.append(render.icoInvestorRow(investor))
|
frag1.append(render.icoInvestorRow(investor, {thumbnail: true}))
|
||||||
|
frag2.append(render.icoInvestorRow(investor, {thumbnail: false}))
|
||||||
})
|
})
|
||||||
getRef('ico_investors__container').append(frag)
|
getRef('ico_investors__container').append(frag1)
|
||||||
|
getRef('ico_page__carousel').append(frag2)
|
||||||
}
|
}
|
||||||
renderAllSeries()
|
renderAllSeries()
|
||||||
renderAllFundInvestors()
|
renderAllFundInvestors()
|
||||||
renderAllIcoInvestors()
|
renderAllIcoInvestors()
|
||||||
|
|
||||||
|
const outletObserver = new IntersectionObserver( entries => {
|
||||||
|
entries.forEach(entry => {
|
||||||
|
if(window.innerWidth < 640){
|
||||||
|
if(entry.isIntersecting){
|
||||||
|
entry.target.querySelector('sm-carousel').setAttribute('autoplay', '')
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
entry.target.querySelector('sm-carousel').stopAutoPlay()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
{
|
||||||
|
threshold: 0.9
|
||||||
|
})
|
||||||
|
|
||||||
|
document.querySelectorAll('.carousel-container').forEach(outlet => outletObserver.observe(outlet))
|
||||||
|
|
||||||
document.addEventListener('click', e => {
|
document.addEventListener('click', e => {
|
||||||
if(e.target.closest('.page-link')){
|
if(e.target.closest('.page-link')){
|
||||||
@ -1049,6 +1106,21 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
let activeOutletIndex = 0
|
||||||
|
const allOutletCarousels = document.querySelectorAll('.outlet-preview sm-carousel')
|
||||||
|
function changeOutletFocus(){
|
||||||
|
console.log(allOutletCarousels[activeOutletIndex])
|
||||||
|
allOutletCarousels[activeOutletIndex].stopAutoPlay()
|
||||||
|
activeOutletIndex = activeOutletIndex + 1 < allOutletCarousels.length ? activeOutletIndex + 1 : 0
|
||||||
|
allOutletCarousels[activeOutletIndex].setAttribute('autoplay', '')
|
||||||
|
|
||||||
|
if(window.innerWidth > 640){
|
||||||
|
setTimeout(() => {
|
||||||
|
changeOutletFocus()
|
||||||
|
}, 4000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let currentPage = ''
|
let currentPage = ''
|
||||||
|
|
||||||
function showPage(pageId){
|
function showPage(pageId){
|
||||||
@ -1058,12 +1130,14 @@
|
|||||||
fill: 'forwards'
|
fill: 'forwards'
|
||||||
}
|
}
|
||||||
if(currentPage){
|
if(currentPage){
|
||||||
let pageEnterAnimation = flyInZoom
|
/* let pageEnterAnimation = flyInZoom
|
||||||
let pageExitAnimation = flyOutZoom
|
let pageExitAnimation = flyOutZoom
|
||||||
if(pageId === 'home_page'){
|
if(pageId === 'home_page'){
|
||||||
pageEnterAnimation = flyInShrink
|
pageEnterAnimation = flyInShrink
|
||||||
pageExitAnimation = flyOutShrink
|
pageExitAnimation = flyOutShrink
|
||||||
}
|
} */
|
||||||
|
let pageEnterAnimation = slideInUp
|
||||||
|
let pageExitAnimation = slideOutDown
|
||||||
document.body.setAttribute('style', 'pointer-events: none; overflow-x: hidden')
|
document.body.setAttribute('style', 'pointer-events: none; overflow-x: hidden')
|
||||||
getRef(currentPage).animate(pageExitAnimation, {...options, easing: easeInOvershoot})
|
getRef(currentPage).animate(pageExitAnimation, {...options, easing: easeInOvershoot})
|
||||||
.onfinish = () => {
|
.onfinish = () => {
|
||||||
|
|||||||