Skip to content

Commit

Permalink
added contact-us page
Browse files Browse the repository at this point in the history
  • Loading branch information
ArshiaAdhya committed Feb 19, 2024
1 parent e70d125 commit 9910d68
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 18 deletions.
32 changes: 15 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ReceivePageComponent } from './receive-page/receive-page.component';
import { DonatePageComponent } from './donate-page/donate-page.component';
import { ProfilePageDonorsComponent } from './profile-page-donors/profile-page-donors.component';
import { ProfilePageNgosComponent } from './profile-page-ngos/profile-page-ngos.component';
import { ContactUsComponent } from './contact-us/contact-us.component';


export const routes: Routes = [
Expand Down Expand Up @@ -38,4 +39,9 @@ export const routes: Routes = [
title: 'NGO\'s Profile',
component: ProfilePageNgosComponent,
},
{
path: 'contact_us',
title: 'Contact Us',
component: ContactUsComponent,
},
];
Empty file.
55 changes: 55 additions & 0 deletions src/app/contact-us/contact-us.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { Component } from '@angular/core';
import { NavBarComponent } from '../nav-bar/nav-bar.component';
import { FooterComponent } from '../footer/footer.component';

@Component({
selector: 'app-contact-us',
standalone: true,
imports: [
NavBarComponent,
FooterComponent,
],
template: `
<app-nav-bar> </app-nav-bar>
<div class="flex flex-col items-center w-full">
<div class = "flex flex-col items-center">
<p class="font-bold text-3xl p-4">Contact us</p>
<p class="text-center p-8">We would love to hear from you. Contact us with any questions, comments or enquiries. Your support and feedback are important to us</p>
</div>
<div class="md:flex md:flex-row justify-between sm:flex sm:flex-col sm:items-center sm:w-full">
<div class="w-1/2 flex flex-col justify-around">
<img src="/assets/Contact-us.jpg">
<div class="text-center py-6 font-light text-xl">
Timings:<br>
Monday, Tuesday: 08:30 AM - 05:30 PM<br>
Wednesday, Thursday, Friday: 09:15 AM - 06:15 PM<br>
Saturday, Sunday: 09:30 AM - 06:30 PM<br>
</div>
</div>
<!-- class="flex flex-column items-center" -->
<div class="w-1/2" style="display: flex; flex-direction: column; align-items: end;">
<p class ="text-left w-full p-4 font-thin text-2xl"><legend>Generosity Headquarters</legend></p>
<p class="text-left w-full p-8 font-thin text-xl"><label for="First Name" >First Name</label><br></p>
<p class="w-full px-8"><input name="First Name" type="text" class="w-full bg-transparent focus:outline-none border-x-0 border-t-0 border-b-blue-800 border-b-2"><br></p>
<p class="text-left w-full p-8 font-thin text-xl"><label for="Last Name" >Last Name</label><br></p>
<p class="w-full px-8"><input name="Last Name" type="text" class="w-full bg-transparent focus:outline-none border-x-0 border-t-0 border-b-blue-800 border-b-2"><br></p>
<p class="text-left w-full p-8 font-thin text-xl"><label for="email" >Email</label><br></p>
<p class="w-full px-8"><input name="email" type="email" class="w-full bg-transparent focus:outline-none border-x-0 border-t-0 border-b-blue-800 border-b-2"><br></p>
<p class="text-left w-full p-8 font-thin text-xl"><label for="phone" >Phone</label><br></p>
<p class="w-full px-8"><input name="phone" type="number" class="w-full bg-transparent focus:outline-none border-x-0 border-t-0 border-b-blue-800 border-b-2"><br></p>
<p class="text-left w-full p-8 font-thin text-xl"><label for="subject" >Subject</label><br></p>
<p class="w-full px-8"><input name="subject" type="text" class="w-full bg-transparent focus:outline-none border-x-0 border-t-0 border-b-blue-800 border-b-2"><br></p>
<p class="text-left w-full p-8 font-thin text-xl"><label for="Message" >Message</label><br></p>
<p class="w-full p-8"><input name="Message" type="text" class="w-full bg-transparent focus:outline-none border-x-0 border-t-0 border-b-blue-800 border-b-2"><br></p>
</div>
</div>
</div>
<app-footer> </app-footer>
`,
styleUrl: './contact-us.component.css'
})
export class ContactUsComponent {

}
Binary file added src/assets/Contact-us.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script src="https://cdn.tailwindcss.com"></script>
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body class="justify-center items-center">
<body class="justify-center items-center bg-stone-100">
<app-root></app-root>
</body>
</html>
9 changes: 9 additions & 0 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@font-face {
font-family: 'Bree-Serif';
src: url('https://fonts.googleapis.com/css?family=BreeSerif');
}

*{
font-family: "Bree-serif";
}

0 comments on commit 9910d68

Please sign in to comment.