Skip to content
Snippets Groups Projects
Commit 9d81d292 authored by B Harsha Vardhan's avatar B Harsha Vardhan
Browse files

Added Rohini's UIs

parent 162b3d51
Branches master
No related tags found
No related merge requests found
Showing
with 560 additions and 64 deletions
......@@ -10,7 +10,7 @@
<form class="example-form">
<mat-form-field class="example-full-width">
<input matInput>
<mat-placeholder class="placeholder">Event Name</mat-placeholder>
<mat-placeholder class="placeholder">Workshop Name</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput>
......@@ -35,7 +35,10 @@
<mat-form-field class="example-full-width">
<input matInput type="number">
<mat-placeholder class="placeholder">Capacity</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput>
<mat-placeholder class="placeholder">Location</mat-placeholder>
</mat-form-field>
</form>
</div>
......@@ -45,32 +48,25 @@
<form class="example-form">
<mat-form-field class="example-full-width">
<input matInput>
<mat-placeholder class="placeholder">Name</mat-placeholder>
<mat-placeholder class="placeholder">Conference Name</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput>
<mat-placeholder class="placeholder">Reg. No.</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput type="password">
<mat-placeholder class="placeholder">Password</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput type="password">
<mat-placeholder class="placeholder">Confirm Password</mat-placeholder>
<mat-placeholder class="placeholder">Description</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput>
<mat-placeholder class="placeholder">Program</mat-placeholder>
<input matInput type="number">
<mat-placeholder class="placeholder">Entry fee</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput type="email">
<mat-placeholder class="placeholder">Email</mat-placeholder>
<input matInput type="number">
<mat-placeholder class="placeholder">Capacity</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput type="number">
<mat-placeholder class="placeholder">Phone no.</mat-placeholder>
<input matInput type="date">
<mat-placeholder class="placeholder">Date</mat-placeholder>
</mat-form-field>
</form>
</div>
</mat-tab>
......
.registerPage {
background-image: url("../../assets/images/register_bgimg.jpg");
background-image: url("../../assets/images/eventAddBG.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
......@@ -17,7 +17,7 @@
.title {
margin-bottom: 1.5rem;
margin-top: 30%;
margin-top: 20%;
display: flex;
flex-direction: row;
justify-content: flex-start;
......@@ -46,7 +46,6 @@
max-width: 500px;
width: 100%;
padding: 2rem;
}
.example-full-width {
......@@ -125,16 +124,22 @@
color: white;
border-radius: 1rem;
border: 5px solid white;
height: 42rem;
}
::ng-deep .mat-tab-label-active .mat-tab-label-content {
color: white !important;
}
::ng-deep.mat-tab-group.mat-primary .mat-ink-bar, ::ng-deep.mat-tab-nav-bar.mat-primary .mat-ink-bar{
background-color: white !important;
::ng-deep .mat-tab-label .mat-tab-label-content{
color: white !important;
}
::ng-deep.mat-tab-group.mat-primary .mat-ink-bar,
::ng-deep.mat-tab-nav-bar.mat-primary .mat-ink-bar {
background-color: white !important;
}
<app-home-page></app-home-page>
<app-add-event></app-add-event>
<app-register></app-register>
<app-login></app-login>
<app-listing></app-listing>
<app-add-event></app-add-event>
<app-moderator-portal></app-moderator-portal>
<app-details></app-details>
<app-history></app-history>
\ No newline at end of file
......@@ -10,9 +10,12 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { MatInputModule, MatFormFieldModule,MatRadioModule,MatTabsModule } from '@angular/material';
import { ListingComponent } from './listing/listing.component';
import { AddEventComponent } from './add-event/add-event.component';
import {DragDropModule} from '@angular/cdk/drag-drop';
import { FormsModule } from '@angular/forms';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { ModeratorPortalComponent } from './moderator-portal/moderator-portal.component';
import { DetailsComponent } from './details/details.component';
import { HistoryComponent } from './history/history.component';
@NgModule({
declarations: [
......@@ -21,7 +24,10 @@ import { FormsModule } from '@angular/forms';
HomePageComponent,
LoginComponent,
ListingComponent,
AddEventComponent
AddEventComponent,
ModeratorPortalComponent,
DetailsComponent,
HistoryComponent
],
imports: [
BrowserModule,
......@@ -35,6 +41,8 @@ import { FormsModule } from '@angular/forms';
MatTabsModule,
MatDatepickerModule,
MatNativeDateModule,
DragDropModule,
ReactiveFormsModule,
],
providers: [],
bootstrap: [AppComponent]
......
......@@ -11,5 +11,6 @@ export interface eventDetails{
description?:string;
isRegistrationAllowed:boolean;
createdBy?:number;
isWorkshop:boolean;
}
\ No newline at end of file
<div class="registerPage">
<div class="content">
<div class="title">
<div class=vertical></div>
<div>Event Details</div>
</div>
<div class="inputs">
<div class="eventName">
Event Name goes here
</div>
<div class="imgLogo">
<img mat-card-image src="../../assets/images/logo.jpg" style="max-width: 10rem" alt="Logo of event">
</div>
<div class="description">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
<div>
Date : 24th July, 2018
</div>
<div>
Time : 9 AM - 12 PM
</div>
<div>
Venue : Amriteshwari Hall
</div>
</div>
<div class="register">
<button class="controlButton">REGISTER</button>
</div>
</div>
</div>
\ No newline at end of file
.registerPage{
background-image: url("../../assets/images/viewDetailsBG.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position:center;
width: 100%;
height: 60rem;
display: flex;
flex-direction: row;
justify-content: space-around;
}
.content{
display: flex;
flex-direction: column;
}
.title{
margin-bottom: 1.5rem;
margin-top: 30%;
display: flex;
flex-direction: row;
justify-content: flex-start;
font-family: 'Raleway', sans-serif;
-webkit-text-stroke: 0.5px white;
letter-spacing: 0.1rem;
color:white;
font-weight: 500;
font-size: 2.5rem;
}
.horizontal{
display: flex;
color: white;
flex-direction: row;
justify-content: flex-start;
}
.inputs{
color: white;
width: 30rem;
min-width: 150px;
max-width: 500px;
width: 100%;
padding: 2rem;
border-radius:1rem;
border: 5px solid white;
background: rgba(19, 17, 17, 0.555);
}
.example-full-width {
width: 100%;
}
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
}
.example-full-width {
width: 100%;
}
::ng-deep .mat-focused .mat-form-field-label {
color: white !important;
}
::ng-deep.mat-form-field-underline {
background-color: white !important;
}
::ng-deep.mat-form-field-ripple {
background-color: white !important;;
}
.controlButton{
padding: 0rem;
width: 12rem;
font-family: 'Raleway', sans-serif;
background-color: rgb(178, 83, 216);
color: white;
padding: 0.5rem 1rem;
border-radius: 1rem;
border: none;
}
.register{
display: flex;
flex-direction: row;
justify-content: space-around;
margin-top: 2rem;
}
.placeholder{
color: white;
}
.vertical{
height: auto;
width: 0.2rem;
background-color: white;
margin-right: 1rem;
}
.eventName{
font-size: 2rem;
}
.description{
margin-top:1rem;
margin-bottom: 1rem;
}
.imgLogo{
width: 100%;
margin-top: 1rem;
display: flex;
flex-direction: row;
justify-content: space-around;
}
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { DetailsComponent } from './details.component';
describe('DetailsComponent', () => {
let component: DetailsComponent;
let fixture: ComponentFixture<DetailsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DetailsComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(DetailsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
@Component({
selector: 'app-details',
templateUrl: './details.component.html',
styleUrls: ['./details.component.scss']
})
export class DetailsComponent implements OnInit {
constructor() { }
ngOnInit() {
}
}
<div class="history">
<div class="details">
<div class=vertical></div>
<div>{{userName}}'s history</div>
</div>
<div class="eventTotal">
<div>
<mat-tab-group>
<mat-tab label="Workshop">
<div *ngFor="let workshop of eventsAttended">
<div *ngIf="workshop.isWorkshop" class="event">
{{workshop.eventName}}
</div>
</div>
</mat-tab>
<mat-tab label="Conference">
<div *ngFor="let workshop of eventsAttended">
<div *ngIf="!workshop.isWorkshop" class="event">
{{workshop.eventName}}
</div>
</div>
</mat-tab>
</mat-tab-group>
</div>
</div>
</div>
\ No newline at end of file
.history {
background-image: url("../../assets/images/historyBG.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
width: 100%;
height: 60rem;
display: flex;
flex-direction: column;
}
.details {
margin-left: 1rem;
height: 3rem;
margin-bottom: 1.5rem;
margin-top: 5%;
display: flex;
flex-direction: row;
justify-content: flex-start;
font-family: "Raleway", sans-serif;
-webkit-text-stroke: 0.5px white;
letter-spacing: 0.1rem;
color: white;
width: 100%;
font-weight: 500;
font-size: 2.5rem;
}
.vertical {
height: auto;
width: 0.2rem;
background-color: white;
margin-right: 1rem;
}
::ng-deep .mat-tab-label-active .mat-tab-label-content {
color: white !important;
}
::ng-deep .mat-tab-label .mat-tab-label-content {
color: white !important;
}
::ng-deep.mat-tab-group.mat-primary .mat-ink-bar,
::ng-deep.mat-tab-nav-bar.mat-primary .mat-ink-bar {
background-color: white !important;
}
.event{
color: white;
padding: 1rem;
border: 0.125rem solid white;
border-radius: 0.5rem;
margin: 1rem;
width: 15rem;
background-color: rgba(0, 0, 0, 0.521);
}
.eventTotal{
display: flex;
flex-direction: row;
justify-content: space-around;
}
\ No newline at end of file
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { HistoryComponent } from './history.component';
describe('HistoryComponent', () => {
let component: HistoryComponent;
let fixture: ComponentFixture<HistoryComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HistoryComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(HistoryComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
import { Component, OnInit } from '@angular/core';
import { eventDetails } from '../contracts/eventDetails';
import { EventServiceService } from '../services/event-service.service';
@Component({
selector: 'app-history',
templateUrl: './history.component.html',
styleUrls: ['./history.component.scss']
})
export class HistoryComponent implements OnInit {
constructor(private eventService:EventServiceService) { }
userName="Rohini"
ngOnInit() {
this.eventsAttended=this.eventService.getPastEvents();
}
eventsAttended:eventDetails[]=[];
}
<div class="home">
<div class="totalContent">
<div class="content">
WCP - WORKSOP/CONFERENCE PORTAL
......@@ -7,16 +6,13 @@
<div class="caption">
engaging minds, empowering success!
</div>
<div class="seperator"></div>
<div class="centerAlign">
<div class="controls">
<button class="controlButton">LOGIN</button>
<div class=verticleLine></div>
<button class="controlButton">REGISTER</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -8,8 +8,8 @@ import { Component, OnInit } from '@angular/core';
export class HomePageComponent implements OnInit {
title="Hello"
constructor() { }
ngOnInit() {
}
}
<div class="eventsList">
<div class="heading">Active events:</div>
</div>
<div class="heading"><div>Active events</div></div>
<div class="eventsList list">
<div *ngFor="let event of events">
<mat-card class="event" [class.mat-elevation-z7]="true">
......
......@@ -19,35 +19,50 @@
}
.list{
background:
radial-gradient(
farthest-side at bottom left,
rgba(255, 0, 255, 0.5),
transparent
),
radial-gradient(
farthest-corner at bottom right,
rgba(255, 50, 50, 0.5),
transparent 400px
),
radial-gradient(
farthest-corner at top left,
rgba(255, 50, 50, 0.5),
transparent 400px
),
radial-gradient(
farthest-corner at top right,
rgba(196, 181, 46, 0.795),
transparent
);
background-image: rgb(206, 196, 53);
// background:
// radial-gradient(
// farthest-side at bottom left,
// rgba(255, 0, 255, 0.5),
// transparent
// ),
// radial-gradient(
// farthest-corner at bottom right,
// rgba(255, 50, 50, 0.5),
// transparent 400px
// ),
// radial-gradient(
// farthest-corner at top left,
// rgba(255, 50, 50, 0.5),
// transparent 400px
// ),
// radial-gradient(
// farthest-corner at top right,
// rgba(196, 181, 46, 0.795),
// transparent
// );
}
.heading {
padding: 1rem;
display:flex;
flex-direction: row;
justify-content: space-around;
// border: rgb(145, 143, 143) 0.15rem solid;
font-family: "Pacifico", cursive;
font-size: 2.5rem;
color: rgb(255, 255, 255);
background:
radial-gradient(
circle at top left,
rgba(5, 5, 5, 0.795),
transparent
),
radial-gradient(
circle at bottom right,
rgba(68, 67, 60, 0.795),
transparent
);
-webkit-text-stroke-width: 1px;
letter-spacing: 1px;
-webkit-text-stroke-color: black;
......
<p>login works!</p>
<div class="registerPage">
<div class="content">
<div class="title">
<div class=vertical></div>
<div>LOGIN</div>
</div>
<div class="inputs">
<form class="example-form">
<mat-form-field class="example-full-width">
<input matInput required>
<mat-placeholder class="placeholder">Login-ID</mat-placeholder>
</mat-form-field>
<mat-form-field class="example-full-width">
<input matInput type="password" required>
<mat-placeholder class="placeholder">Password</mat-placeholder>
</mat-form-field>
</form>
<div class="register">
<button class="controlButton">LOGIN</button>
</div>
</div>
</div>
</div>
\ No newline at end of file
.registerPage{
background-image: url("../../assets/images/loginBG.jpg");
background-repeat: no-repeat;
background-size: cover;
background-position:center;
width: 100%;
height: 60rem;
display: flex;
flex-direction: row;
justify-content: space-around;
}
.content{
display: flex;
flex-direction: column;
}
.title{
margin-bottom: 1.5rem;
margin-top: 30%;
display: flex;
flex-direction: row;
justify-content: flex-start;
font-family: 'Raleway', sans-serif;
-webkit-text-stroke: 0.5px white;
letter-spacing: 0.1rem;
color:white;
font-weight: 500;
font-size: 2.5rem;
}
.horizontal{
display: flex;
color: white;
flex-direction: row;
justify-content: flex-start;
}
.inputs{
color: white;
width: 30rem;
}
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
padding: 2rem;
border-radius:1rem;
border: 5px solid white;
background: rgba(19, 17, 17, 0.555);
}
.example-full-width {
width: 100%;
}
.example-form {
min-width: 150px;
max-width: 500px;
width: 100%;
}
.example-full-width {
width: 100%;
}
::ng-deep .mat-focused .mat-form-field-label {
color: white !important;
}
::ng-deep.mat-form-field-underline {
background-color: white !important;
}
::ng-deep.mat-form-field-ripple {
background-color: white !important;;
}
.controlButton{
padding: 0rem;
width: 12rem;
font-family: 'Raleway', sans-serif;
background-color: rgb(178, 83, 216);
color: white;
padding: 0.5rem 1rem;
border-radius: 1rem;
border: none;
}
.register{
display: flex;
flex-direction: row;
justify-content: space-around;
margin-top: 2rem;
}
.placeholder{
color: white;
}
.vertical{
height: auto;
width: 0.2rem;
background-color: white;
margin-right: 1rem;
}
import { Component, OnInit } from '@angular/core';
import { userInfo } from '../contracts/userInfo';
@Component({
selector: 'app-login',
......@@ -8,7 +9,8 @@ import { Component, OnInit } from '@angular/core';
export class LoginComponent implements OnInit {
constructor() { }
harsha:userInfo;
value="";
ngOnInit() {
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment