Skip to content

Commit

Permalink
Merge pull request #1 from AMANVISHWAKARMA27/master
Browse files Browse the repository at this point in the history
Added category in cards
  • Loading branch information
AMANVISHWAKARMA27 authored Feb 18, 2024
2 parents 15f5343 + 398f13b commit be55bf1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/about-us/about-us.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ import { CommonModule } from '@angular/common';
styleUrl: './about-us.component.css'
})
export class AboutUsComponent {

}
35 changes: 34 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ import { Component } from '@angular/core';
import { OnInit } from '@angular/core';
import { initFlowbite } from 'flowbite';
import { RouterOutlet } from '@angular/router';
// import {
// Auth,
// createUserWithEmailAndPassword,
// signInWithEmailAndPassword
// } from '@angular/fire/auth'
import { response } from 'express';

@Component({
selector: 'app-root',
Expand All @@ -14,10 +20,37 @@ import { RouterOutlet } from '@angular/router';
`,
styleUrl: './app.component.css'
})
export class AppComponent implements OnInit{
export class AppComponent implements OnInit {
title = 'Generosity';
// constructor(public auth: Auth) {

// }

ngOnInit(): void {
initFlowbite();
}

// handleSignUp(value: any) {
// createUserWithEmailAndPassword(this.auth, value.email, value.password)
// .then((response: any) => {
// console.log(response.user);
// alert(`User with email ${value.email} registered successfully.`);
// })
// .catch((err) => {
// alert(err.message);
// })
// }

// handleOnSubmit(value: any) {
// signInWithEmailAndPassword(this.auth, value.email, value.password)
// .then((response: any) => {
// console.log(response.user);
// alert(`User with email ${value.email} logged in successfully.`)
// })
// .catch((err) => {
// alert(err.message);
// console.log("USer could not register.");

// })
// }
}
3 changes: 3 additions & 0 deletions src/app/item-card/item-card.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import { Component } from '@angular/core';
<img class="rounded-t-lg" src="https://www.shutterstock.com/image-vector/ui-image-placeholder-wireframes-apps-260nw-1037719204.jpg" alt="" />
</a>
<div class="p-5">
<a class= "text-orange-300 border-orange-300 border rounded text-[12px] p-1 ml-[260px] ">
Category
</a>
<a href="#">
<h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">Item Name</h5>
</a>
Expand Down
3 changes: 0 additions & 3 deletions src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { CommonModule } from '@angular/common';
import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';




@Component({
selector: 'app-login',
standalone: true,
Expand Down

0 comments on commit be55bf1

Please sign in to comment.