forked from Fernanda-Kipper/eventostec-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feature/search-bar-header
- Loading branch information
Showing
32 changed files
with
949 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"events": [ | ||
{ | ||
"id": "6d80", | ||
"title": "EVENTO TESTE", | ||
"type": "Presencial", | ||
"description": "Estamos empolgados em ajudar você a divulgar seus eventos! Para cadastrar um evento, preencha as informações abaixo. Isso garantirá que seu evento seja exibido corretamente em nosso site.", | ||
"date": "09-12-2024", | ||
"city": "Siriri", | ||
"state": "SE", | ||
"url": "https://devfest.com.br/", | ||
"bannerUrl": "https://t3.ftcdn.net/jpg/03/86/44/66/240_F_386446626_SD0ksiMkmtDIlfuIgXStXQHPZeMjkLm2.jpg" | ||
}, | ||
{ | ||
"id": "8dd4", | ||
"title": "EVENTO TESTE REMOTO", | ||
"type": "Remoto", | ||
"description": "Estamos empolgados em ajudar você a divulgar seus eventos! Para cadastrar um evento, preencha as informações abaixo. Isso garantirá que seu evento seja exibido corretamente em nosso site.", | ||
"date": "2026-11-01", | ||
"city": null, | ||
"state": null, | ||
"url": "https://angular.dev/", | ||
"bannerUrl": "https://blogger.googleusercontent.com/img/a/AVvXsEj-LG-1NzdCAk8DkFqFl4HemoD5HX7EnCYPnmzm7419ahflq3axCE8JoxwARbUXh2OG8I5ibG5Q2_XQEauq86byWCs6vlANin_ZtG4xR6Wk4oeIa76cP5PxkOlZBisaHLuD3l-erluagNdC-ASB3yxjhjjEQAfgQzFCE3tn5liDDGe0B0po3o5ZXsT4=s16000" | ||
}, | ||
{ | ||
"id": "f1f9", | ||
"title": "DEV TALK", | ||
"type": "Presencial", | ||
"description": "Foto do Evento: Faça upload de uma imagem representativa do seu evento. Imagens ajudam a atrair a atenção e dar uma melhor ideia sobre o que se trata o evento. (Formatos aceitos: JPG, PNG, GIF; Tamanho máximo: 5MB)", | ||
"date": "2025-06-01", | ||
"city": "Adamantina", | ||
"state": "SP", | ||
"url": "https://angular.dev/", | ||
"bannerUrl": "https://www.proway.com.br/foto/png/blog/750/workshop-gratuito-game-developer.jpg" | ||
}, | ||
{ | ||
"id": "35bc", | ||
"title": "Pinguim coding", | ||
"type": "Presencial", | ||
"description": "O pinguim é uma ave da família Spheniscidae, altamente modificadas para a uma vida aquática, sendo suas asas adaptadas para promover impulso através da água. Wikipédia", | ||
"date": "2025-03-09", | ||
"city": "Boa Vista do Sul", | ||
"state": "RS", | ||
"url": "https://pt.wikipedia.org/wiki/Pinguim", | ||
"bannerUrl": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExZDd3ZTFsc3F3OXB0dmNra3o4ZWV4OHRyZjRtbWxhcXB0czFkODF1eSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/2IudUHdI075HL02Pkk/giphy.webp" | ||
}, | ||
{ | ||
"id": "6f86", | ||
"title": "Coding", | ||
"type": "Presencial", | ||
"description": "It is a channel of tradicional animation 2D; I make some gifs Follow me on Instagram.", | ||
"date": "2026-02-01", | ||
"city": "Acrelândia", | ||
"state": "AC", | ||
"url": "https://giphy.com/gifs/computador-gu-tecnology-bGgsc5mWoryfgKBx1u", | ||
"bannerUrl": "https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExNjc5NG02b2tsZXFmenlrZmZ2bDEycHVwc2U4eDVpZWtzdTRzeTU4ayZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/bGgsc5mWoryfgKBx1u/giphy.webp" | ||
}, | ||
{ | ||
"id": "5fb2", | ||
"title": "Apple Worldwide Developer Conference", | ||
"type": "Presencial", | ||
"description": "Apple Worldwide Developer Conference (WWDC) 2024: Announcements, News, and More", | ||
"date": "2024-12-04", | ||
"city": "Ingazeira", | ||
"state": "PE", | ||
"url": "https://www.lifewire.com/wwdc-5101136", | ||
"bannerUrl": "https://www.lifewire.com/thmb/2rVmOhR6pI3wWARumksQE0k5L8A=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/wwdc-2024-5f5e99a8b8184355ad54fed19abfa671.png" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import { Routes } from '@angular/router'; | ||
import { HomeComponent } from './pages/home/home.component'; | ||
import { RegisterEventComponent } from './pages/register-event/register-event.component'; | ||
|
||
export const routes: Routes = [ | ||
{ path: '', redirectTo: 'eventos', pathMatch: 'full' }, | ||
{ | ||
path: '', | ||
component: HomeComponent, | ||
path: 'eventos', | ||
loadComponent: () => | ||
import('./pages/home/home.component').then((c) => c.HomeComponent), | ||
}, | ||
{ | ||
path: 'registra-evento', | ||
component: RegisterEventComponent, | ||
path: 'criar-evento', | ||
loadComponent: () => | ||
import('./pages/create-event/create-event.component').then( | ||
(c) => c.CreateEventComponent, | ||
), | ||
}, | ||
{ path: '**', redirectTo: 'eventos' }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,56 @@ | ||
<li> | ||
<div class="overflow-hidden rounded-lg bg-white shadow"> | ||
<div class="overflow-hidden rounded-lg bg-white shadow w-96 h-96 relative"> | ||
<div> | ||
<img class="rounded-md" src="{{ banner }}" alt="Event Banner" /> | ||
<a [href]="url"> | ||
<img | ||
class="rounded-md h-60 w-full border border-solid border-gray-200" | ||
src="{{ bannerUrl }}" | ||
alt="banner do evento" | ||
/> | ||
</a> | ||
</div> | ||
<div class="px-4 py-4 sm:px-6"> | ||
<dl class="relative flex flex-wrap gap-x-3"> | ||
<div class="px-4 sm:px-6"> | ||
<dl class="relative flex flex-wrap gap-x-2"> | ||
<dt class="sr-only">Data do Evento</dt> | ||
<dd class="mt-2 text-sm font-bold text-kipperdev-purple-primary"> | ||
{{ date | date: 'dd/MM/yyyy' }} | ||
</dd> | ||
<dt class="sr-only">Local do Evento</dt> | ||
@if (state && city) { | ||
<ng-container> | ||
<dd | ||
class="mt-2 flex items-center gap-x-3 text-sm font-normal text-gray-500" | ||
> | ||
{{ state }}, {{ city }} | ||
</dd> | ||
</ng-container> | ||
} | ||
@if (type === 'Remoto') { | ||
<ng-container> | ||
<dd | ||
class="mt-2 flex items-center gap-x-3 text-sm font-semibold text-gray-500" | ||
> | ||
{{ type }} | ||
</dd> | ||
</ng-container> | ||
} | ||
<dt class="sr-only">Nome do Evento</dt> | ||
<dd | ||
class="w-full flex-none text-lg font-semibold tracking-tight cursor-pointer text-gray-900" | ||
class="mt-2 w-full flex-none text-lg font-semibold tracking-tight cursor-pointer text-kipperdev-purple-dark" | ||
> | ||
<a [href]="url"> | ||
{{ title }} | ||
<span class="absolute inset-0" aria-hidden="true"></span> | ||
</a> | ||
<p>{{ title }}</p> | ||
<span class="absolute inset-0" aria-hidden="true"></span> | ||
</dd> | ||
<dt class="sr-only">Descrição</dt> | ||
<dd class="mt-2 w-full flex-none text-base leading-7 text-gray-600"> | ||
{{ description }} | ||
</dd> | ||
|
||
<dt class="sr-only">Data do Evento</dt> | ||
<dd class="mt-4 text-base font-semibold leading-7 text-gray-900"> | ||
{{ date }} | ||
</dd> | ||
<dt class="sr-only">Local do Evento</dt> | ||
<dd | ||
class="mt-4 flex items-center gap-x-3 text-base leading-7 text-gray-500" | ||
class="mt-2 w-full flex-none text-sm text-gray-600 max-h-10 overflow-hidden" | ||
> | ||
{{ place }} | ||
{{ description }} | ||
</dd> | ||
</dl> | ||
</div> | ||
<div | ||
class="absolute inset-x-0 bottom-7 h-5 bg-gradient-to-t from-white via-white to-transparent pointer-events-none" | ||
></div> | ||
</div> | ||
</li> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { Component, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-event', | ||
standalone: true, | ||
imports: [], | ||
imports: [CommonModule], | ||
templateUrl: './event.component.html', | ||
styleUrl: './event.component.scss', | ||
}) | ||
export class EventComponent { | ||
@Input() title: string = 'Não conseguimos carregar'; | ||
@Input() description: string = 'descrição virá em breve! hehe'; | ||
@Input() date: string = '19/10/2024'; | ||
@Input() place: string = 'Online'; | ||
@Input() banner: string = 'https://images.sympla.com.br/630305a3009a1-lg.png'; | ||
@Input() url: string = 'https://hacktown.com.br/'; | ||
@Input() title: string = ''; | ||
@Input() type: string = ''; | ||
@Input() description: string = ''; | ||
@Input() date: string = ''; | ||
@Input() city: string = ''; | ||
@Input() state: string = ''; | ||
@Input() bannerUrl: string = ''; | ||
@Input() url: string = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const environment = { | ||
API: 'http://localhost:3000/', | ||
}; |
Oops, something went wrong.