parent
be8f6fee51
commit
dc25dc6da9
@ -1,8 +1,8 @@ |
||||
import { HttpErrorResponse } from '@angular/common/http'; |
||||
import { Component } from '@angular/core'; |
||||
import { ResetDataService } from '../service/reset_data.service'; |
||||
import { ResetDataService } from '../../service/reset_data.service'; |
||||
import { Router, RouterModule } from '@angular/router'; |
||||
import { AppRoutingModule } from '../app-routing.module'; |
||||
import { AppRoutingModule } from '../../app-routing.module'; |
||||
import { MatDialog, MatDialogModule } from '@angular/material/dialog'; |
||||
|
||||
@Component({ |
@ -1,48 +0,0 @@ |
||||
<div class="p-10 grid grid-cols-1 sm:grid-cols-1 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-3 gap-5"> |
||||
<!--Card 1--> |
||||
<div class="rounded-lg overflow-hidden shadow-lg bg-white"> |
||||
<img class="w-full" src="/mountain.jpg" alt="Mountain"> |
||||
<div class="px-6 py-4"> |
||||
<div class="font-bold text-xl mb-2">Mountain</div> |
||||
<p class="text-gray-700 text-base"> |
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, Nonea! Maiores et perferendis eaque, exercitationem praesentium nihil. |
||||
</p> |
||||
</div> |
||||
<div class="px-6 pt-4 pb-2"> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#photography</span> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#travel</span> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#winter</span> |
||||
</div> |
||||
</div> |
||||
<!--Card 2--> |
||||
<div class="rounded-lg overflow-hidden shadow-lg bg-white"> |
||||
<img class="w-full" src="/river.jpg" alt="River"> |
||||
<div class="px-6 py-4"> |
||||
<div class="font-bold text-xl mb-2">River</div> |
||||
<p class="text-gray-700 text-base"> |
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, Nonea! Maiores et perferendis eaque, exercitationem praesentium nihil. |
||||
</p> |
||||
</div> |
||||
<div class="px-6 pt-4 pb-2"> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#photography</span> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#travel</span> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#summer</span> |
||||
</div> |
||||
</div> |
||||
|
||||
<!--Card 3--> |
||||
<div class="rounded-lg overflow-hidden shadow-lg bg-white"> |
||||
<img class="w-full" src="/forest.jpg" alt="Forest"> |
||||
<div class="px-6 py-4"> |
||||
<div class="font-bold text-xl mb-2">Forest</div> |
||||
<p class="text-gray-700 text-base"> |
||||
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatibus quia, Nonea! Maiores et perferendis eaque, exercitationem praesentium nihil. |
||||
</p> |
||||
</div> |
||||
<div class="px-6 pt-4 pb-2"> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#photography</span> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#travel</span> |
||||
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">#fall</span> |
||||
</div> |
||||
</div> |
||||
</div> |
@ -1,35 +0,0 @@ |
||||
import { Component, OnInit } from '@angular/core'; |
||||
|
||||
@Component({ |
||||
selector: 'app-schemas-tab', |
||||
templateUrl: './schemas-tab.component.html', |
||||
styleUrls: ['./schemas-tab.component.scss'] |
||||
}) |
||||
export class SchemasTabComponent implements OnInit{ |
||||
title!: string; |
||||
description!: string; |
||||
createdDate!: Date; |
||||
snaps!: number; |
||||
imageUrl!: string; |
||||
buttonText!: string |
||||
|
||||
ngOnInit(){ |
||||
this.title = 'FirstTest'; |
||||
this.description = 'FirstDescription'; |
||||
this.createdDate = new Date(); |
||||
this.snaps = 10; |
||||
this.imageUrl = '/assets/images/apsidetop.png'; |
||||
this.buttonText = 'Add Like'; |
||||
} |
||||
|
||||
onLike(){ |
||||
if(this.buttonText === 'Add Like'){ |
||||
this.snaps++; |
||||
this.buttonText = 'Unlike'; |
||||
} else { |
||||
this.snaps--; |
||||
this.buttonText = "Add Like"; |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue