|
8 | 8 | <mat-icon>more_horiz</mat-icon>
|
9 | 9 | </button>
|
10 | 10 | </drag-scroll>
|
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + <div class="home-right"> |
| 15 | + <br /><br /> |
| 16 | + <div class="centered"> |
| 17 | + <button routerLink="/editor" mat-fab extended color="primary"> |
| 18 | + <mat-icon>note_add</mat-icon> |
| 19 | + {{ 'Home.WriteANote' | translate }} |
| 20 | + </button> |
| 21 | + </div> |
| 22 | + |
| 23 | + <br /><br /> |
| 24 | + |
| 25 | + <!-- <mat-card class="home-card"> |
| 26 | + <mat-card-header> |
| 27 | + <mat-card-title>Create Note</mat-card-title> |
| 28 | + </mat-card-header> |
| 29 | + <mat-card-content> |
| 30 | + <br /> |
| 31 | + <form [formGroup]="formGroup"> |
| 32 | + <div mat-dialog-content class="mat-dialog-content"> |
| 33 | +
|
| 34 | + <emoji-mart class="picker" *ngIf="isEmojiPickerVisible" emoji="point_up" [isNative]="true" [showPreview]="false" (emojiSelect)="addEmoji($event)" title="Choose your emoji"></emoji-mart> |
| 35 | + <mat-form-field class="input-full-width"> |
| 36 | + <mat-label>Note</mat-label> |
| 37 | + <textarea class="note-input" matInput type="text" [(ngModel)]="note" formControlName="note" rows="6"></textarea> |
| 38 | + </mat-form-field> |
| 39 | +
|
| 40 | + </div> |
| 41 | + <div mat-dialog-actions class="mat-dialog-actions" align="end"> |
| 42 | + <button mat-stroked-button (click)="onCancel()">Cancel</button> |
| 43 | + <button mat-flat-button (click)="postNote()" color="primary" cdkFocusInitial>Post</button> |
| 44 | + </div> |
| 45 | + </form> |
| 46 | + </mat-card-content> |
| 47 | + </mat-card> --> |
| 48 | + |
| 49 | + <mat-card class="events clickable" (click)="navigation.openEvent($event, event)" *ngFor="let event of latestItems; trackBy: trackByFn"> |
| 50 | + <div class="events-header"> |
| 51 | + <app-event-header [pubkey]="event.pubkey"><span class="event-date" matTooltipPosition="below">{{ event.created_at | ago }}</span> <app-directory-icon [pubkey]="event.pubkey"></app-directory-icon></app-event-header> |
| 52 | + <app-event-actions [event]="event"></app-event-actions> |
| 53 | + </div> |
| 54 | + <app-content [event]="event"></app-content> |
| 55 | + </mat-card> |
| 56 | + |
| 57 | + <p class="view-more-container"> |
| 58 | + <button mat-button routerLink="/feed">{{ 'Home.ViewFollowingNotes' | translate }}</button> |
| 59 | + </p> |
| 60 | + |
| 61 | + <!-- <mat-card class="home-card"> |
| 62 | + <mat-card-header> |
| 63 | + <img mat-card-avatar src="https://material.angular.io/assets/img/examples/shiba1.jpg" /> |
| 64 | + <mat-card-title>Shiba Inu</mat-card-title> |
| 65 | + <mat-card-subtitle>Dog Breed</mat-card-subtitle> |
| 66 | + </mat-card-header> |
| 67 | + <img mat-card-image class="home-card-image" src="https://material.angular.io/assets/img/examples/shiba2.jpg" /> |
| 68 | + <mat-card-content> |
| 69 | + <p>The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan. A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally bred for hunting.</p> |
| 70 | + </mat-card-content> |
| 71 | + <mat-card-actions> |
| 72 | + <button mat-button>Like</button> |
| 73 | + <button mat-button>Comments</button> |
| 74 | + </mat-card-actions> |
| 75 | + </mat-card> --> |
| 76 | + </div> |
11 | 77 | </div>
|
12 | 78 |
|
13 | 79 | <div class="home">
|
|
107 | 173 | </mat-card-content>
|
108 | 174 | </mat-card>
|
109 | 175 | </div>
|
110 |
| - <div class="home-right"> |
111 |
| - <br /><br /> |
112 |
| - <div class="centered"> |
113 |
| - <button routerLink="/editor" mat-fab extended color="primary"> |
114 |
| - <mat-icon>note_add</mat-icon> |
115 |
| - {{ 'Home.WriteANote' | translate }} |
116 |
| - </button> |
117 |
| - </div> |
118 |
| - |
119 |
| - <br /><br /> |
120 |
| - |
121 |
| - <!-- <mat-card class="home-card"> |
122 |
| - <mat-card-header> |
123 |
| - <mat-card-title>Create Note</mat-card-title> |
124 |
| - </mat-card-header> |
125 |
| - <mat-card-content> |
126 |
| - <br /> |
127 |
| - <form [formGroup]="formGroup"> |
128 |
| - <div mat-dialog-content class="mat-dialog-content"> |
129 |
| -
|
130 |
| - <emoji-mart class="picker" *ngIf="isEmojiPickerVisible" emoji="point_up" [isNative]="true" [showPreview]="false" (emojiSelect)="addEmoji($event)" title="Choose your emoji"></emoji-mart> |
131 |
| - <mat-form-field class="input-full-width"> |
132 |
| - <mat-label>Note</mat-label> |
133 |
| - <textarea class="note-input" matInput type="text" [(ngModel)]="note" formControlName="note" rows="6"></textarea> |
134 |
| - </mat-form-field> |
135 |
| -
|
136 |
| - </div> |
137 |
| - <div mat-dialog-actions class="mat-dialog-actions" align="end"> |
138 |
| - <button mat-stroked-button (click)="onCancel()">Cancel</button> |
139 |
| - <button mat-flat-button (click)="postNote()" color="primary" cdkFocusInitial>Post</button> |
140 |
| - </div> |
141 |
| - </form> |
142 |
| - </mat-card-content> |
143 |
| - </mat-card> --> |
144 |
| - |
145 |
| - <mat-card class="events clickable" (click)="navigation.openEvent($event, event)" *ngFor="let event of latestItems; trackBy: trackByFn"> |
146 |
| - <div class="events-header"> |
147 |
| - <app-event-header [pubkey]="event.pubkey"><span class="event-date" matTooltipPosition="below">{{ event.created_at | ago }}</span> <app-directory-icon [pubkey]="event.pubkey"></app-directory-icon></app-event-header> |
148 |
| - <app-event-actions [event]="event"></app-event-actions> |
149 |
| - </div> |
150 |
| - <app-content [event]="event"></app-content> |
151 |
| - </mat-card> |
152 |
| - |
153 |
| - <p class="view-more-container"> |
154 |
| - <button mat-button routerLink="/feed">{{ 'Home.ViewFollowingNotes' | translate }}</button> |
155 |
| - </p> |
156 | 176 |
|
157 |
| - <!-- <mat-card class="home-card"> |
158 |
| - <mat-card-header> |
159 |
| - <img mat-card-avatar src="https://material.angular.io/assets/img/examples/shiba1.jpg" /> |
160 |
| - <mat-card-title>Shiba Inu</mat-card-title> |
161 |
| - <mat-card-subtitle>Dog Breed</mat-card-subtitle> |
162 |
| - </mat-card-header> |
163 |
| - <img mat-card-image class="home-card-image" src="https://material.angular.io/assets/img/examples/shiba2.jpg" /> |
164 |
| - <mat-card-content> |
165 |
| - <p>The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan. A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally bred for hunting.</p> |
166 |
| - </mat-card-content> |
167 |
| - <mat-card-actions> |
168 |
| - <button mat-button>Like</button> |
169 |
| - <button mat-button>Comments</button> |
170 |
| - </mat-card-actions> |
171 |
| - </mat-card> --> |
172 |
| - </div> |
173 | 177 | </div>
|
174 | 178 |
|
175 | 179 | <!-- <div class="dashboard-header">
|
|
0 commit comments