|
| 1 | +<!-- <section class="product"> |
| 2 | + <div class="containere"> |
| 3 | + <div class="slider-wrap"> |
| 4 | + <div class="slider-main"> |
| 5 | + <div class="item"> |
| 6 | + <div class="text">1</div> |
| 7 | + </div> |
| 8 | + </div> |
| 9 | + </div> |
| 10 | + </div> |
| 11 | +</section> --> |
| 12 | +<!-- <div class="card-container"> |
| 13 | + <button (click)="onNavigate('next')">Next Card</button> |
| 14 | + <button (click)="onNavigate('prev')" *ngIf="currentIndex > 0">Previous Card</button> |
| 15 | +</div> --> |
| 16 | + |
| 17 | + |
| 18 | +<!-- <div class="flex gap-2 max-sm:flex-col"> |
| 19 | + <div class="max-w-sm m-auto w-full lg:max-w-full lg:flex"> |
| 20 | + <div |
| 21 | + class="h-48 lg:h-auto lg:w-48 flex-none bg-cover rounded-t lg:rounded-t-none lg:rounded-l text-center overflow-hidden" |
| 22 | + style="background-image: url('../../../assets/event-java.jpeg')" title="Woman holding a mug"> |
| 23 | + </div> |
| 24 | + <div |
| 25 | + class="border-r border-b border-l border-gray-300 lg:border-l-0 lg:border-t lg:border-gray-400 bg-white dark:bg-gray-900 rounded-b lg:rounded-b-none lg:rounded-r p-4 flex flex-col justify-between leading-normal"> |
| 26 | + <div class="mb-8"> |
| 27 | + <p class="text-sm text-gray-500 flex items-center"> |
| 28 | + <svg class="fill-current text-gray-400 w-3 h-3 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> |
| 29 | + <path |
| 30 | + d="M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z" /> |
| 31 | + </svg> |
| 32 | +
|
| 33 | + </p> |
| 34 | + <div class="text-gray-400 font-bold text-xl mb-2">Can coffee make you a better developer?</div> |
| 35 | + <p class="text-gray-500 text-base">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, |
| 36 | + nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.</p> |
| 37 | + </div> |
| 38 | + <div class="flex items-center"> |
| 39 | + <img class="w-10 h-10 rounded-full mr-4" src="../../../assets/doke-noticia.png" |
| 40 | + alt="Avatar of Jonathan Reinink"> |
| 41 | + <div class="text-sm"> |
| 42 | + <p class="text-gray-500 leading-none">Jonathan Reinink</p> |
| 43 | + <p class="text-gray-600">Aug 18</p> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + </div> |
| 48 | + <!-- fim -> |
| 49 | + <div class="max-w-sm m-auto w-full lg:max-w-full lg:flex"> |
| 50 | + <div |
| 51 | + class="h-48 lg:h-auto lg:w-48 flex-none bg-cover rounded-t lg:rounded-t-none lg:rounded-l text-center overflow-hidden" |
| 52 | + style="background-image: url('../../../assets/event-java.jpeg')" title="Woman holding a mug"> |
| 53 | + </div> |
| 54 | + <div |
| 55 | + class="border-r border-b border-l border-gray-300 lg:border-l-0 lg:border-t lg:border-gray-400 bg-white dark:bg-gray-900 rounded-b lg:rounded-b-none lg:rounded-r p-4 flex flex-col justify-between leading-normal"> |
| 56 | + <div class="mb-8"> |
| 57 | + <p class="text-sm text-gray-500 flex items-center"> |
| 58 | + <svg class="fill-current text-gray-400 w-3 h-3 mr-2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> |
| 59 | + <path |
| 60 | + d="M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z" /> |
| 61 | + </svg> |
| 62 | + Members only |
| 63 | + </p> |
| 64 | + <div class="text-gray-400 font-bold text-xl mb-2">Can coffee make you a better developer?</div> |
| 65 | + <p class="text-gray-500 text-base">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, |
| 66 | + nulla! Maiores et perferendis eaque, exercitationem praesentium nihil.</p> |
| 67 | + </div> |
| 68 | + <div class="flex items-center"> |
| 69 | + <img class="w-10 h-10 rounded-full mr-4" src="../../../assets/doke-noticia.png" |
| 70 | + alt="Avatar of Jonathan Reinink"> |
| 71 | + <div class="text-sm"> |
| 72 | + <p class="text-gray-500 leading-none">Jonathan Reinink</p> |
| 73 | + <p class="text-gray-600">Aug 18</p> |
| 74 | + </div> |
| 75 | + </div> |
| 76 | + </div> |
| 77 | + </div> |
| 78 | +</div> --> |
| 79 | +<!-- <div class="carousel w-full"> |
| 80 | + <div id="slide1" class="carousel-item relative w-full"> |
| 81 | + <img src="https://daisyui.com/images/stock/photo-1625726411847-8cbb60cc71e6.jpg" class="w-full" /> |
| 82 | + <div class="absolute flex justify-between transform -translate-y-1/2 left-5 right-5 top-1/2"> |
| 83 | + <a href="#slide4" class="btn btn-circle">❮</a> |
| 84 | + <a href="#slide2" class="btn btn-circle">❯</a> |
| 85 | + </div> |
| 86 | + </div> --> |
| 87 | +<div class=""> |
| 88 | + |
| 89 | + <div class="mb-5 flex justify-end"> |
| 90 | + <div class="inline-flex"> |
| 91 | + <button class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-l" |
| 92 | + (click)="onNavigate('prev')" [disabled]="currentIndex === 0"> |
| 93 | + Prev |
| 94 | + </button> |
| 95 | + <button class="bg-gray-300 hover:bg-gray-400 text-gray-800 font-bold py-2 px-4 rounded-r" |
| 96 | + (click)="onNavigate('next')" [disabled]="currentIndex >= cards.length - 2"> |
| 97 | + Next |
| 98 | + </button> |
| 99 | + </div> |
| 100 | + <!-- <button class="btn btn-circle" (click)="onNavigate('prev')" [disabled]="currentIndex === 0">❮ </button> --> |
| 101 | + <!-- <button class="btn btn-circle" (click)="onNavigate('next')" [disabled]="currentIndex >= cards.length - 2">❯</button> --> |
| 102 | + </div> |
| 103 | + <div class="flex gap-4 max-sm:flex-col"> |
| 104 | + |
| 105 | + <ng-container *ngFor="let card of cards.slice(currentIndex, currentIndex + 2); let i = index" class=""> |
| 106 | + <div class="max-w-sm m-auto w-full lg:max-w-full lg:flex "> |
| 107 | + <div |
| 108 | + class="h-48 lg:h-auto lg:w-60 flex-none bg-cover rounded-t lg:rounded-t-none lg:rounded-l text-center overflow-hidden" |
| 109 | + [style.backgroundImage]="'url(' + card.imgPath + ')'" title="Imagem"> |
| 110 | + |
| 111 | + </div> |
| 112 | + <div |
| 113 | + class="border-r border-b border-l border-gray-300 lg:border-l-0 lg:border-t lg:border-gray-400 bg-white dark:bg-gray-900 rounded-b lg:rounded-b-none lg:rounded-r p-4 flex flex-col justify-between leading-normal"> |
| 114 | + <div class="mb-8"> |
| 115 | + <p class="text-sm text-gray-500 flex items-center"> |
| 116 | + <svg class="fill-current text-gray-400 w-3 h-3 mr-2" xmlns="http://www.w3.org/2000/svg" |
| 117 | + viewBox="0 0 20 20"> |
| 118 | + <path |
| 119 | + d="M4 8V6a6 6 0 1 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8c0-1.1.9-2 2-2h1zm5 6.73V17h2v-2.27a2 2 0 1 0-2 0zM7 6v2h6V6a3 3 0 0 0-6 0z" /> |
| 120 | + </svg> |
| 121 | + {{ card.typeMembro }} |
| 122 | + </p> |
| 123 | + <a target="_blank " href="{{card.link}}" style="display: block;"> |
| 124 | + <div class=" hover:text-gray-100 text-gray-400 font-bold text-xl mb-2">{{ card.Title }}</div> |
| 125 | + </a> |
| 126 | + <p class="text-gray-500 text-base">{{ card.desc }}</p> |
| 127 | + </div> |
| 128 | + <div class="flex items-center"> |
| 129 | + <img class="w-10 h-10 rounded-full mr-4" [src]="card.imgAutor" alt="Avatar"> |
| 130 | + <div class="text-sm"> |
| 131 | + <p class="text-gray-500 leading-none">{{ card.nomes }}</p> |
| 132 | + <p class="text-gray-600">{{ card.datas }}</p> |
| 133 | + </div> |
| 134 | + </div> |
| 135 | + </div> |
| 136 | + </div> |
| 137 | + </ng-container> |
| 138 | + </div> |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + <!-- <div class="container" #container> |
| 144 | + <div class="left" *ngIf="totalPages > 1" (click)="currentPage != 1 && changePage(-1)" |
| 145 | + [ngClass]="{'disabled':currentPage === 1}"></div> |
| 146 | + <div class="cards" [ngClass]="{'w-100': totalPages === 1}"> |
| 147 | + <div class="overflow" [ngStyle]="{'width': overflowWidth, 'left': pagePosition}"> |
| 148 | + <div class="card" *ngFor="let i of arr; let index = index" [ngStyle]="{'width': cardWidth}"> |
| 149 | + <span>{{i}}</span> |
| 150 | + </div> |
| 151 | + </div> |
| 152 | + </div> |
| 153 | + <div class="right" *ngIf="totalPages > 1" (click)="currentPage != totalPages && changePage(+1)" |
| 154 | + [ngClass]="{'disabled':currentPage === totalPages}"></div> |
| 155 | +</div> --> |
| 156 | +</div> |
0 commit comments