diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 6524617..aadf545 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -164,6 +164,14 @@ const routes: Routes = [ data: LoadingResolverService, }, }, + { + path: 'a/:id', + component: NoteComponent, + canActivate: [AuthGuard], + resolve: { + data: LoadingResolverService, + }, + }, { path: 'followers/:id', component: FollowersComponent, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 00abb58..d7d4eda 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -121,6 +121,7 @@ import { PasswordDialog } from './shared/password-dialog/password-dialog'; import { UsernamePipe } from './shared/username'; import { ScrollingModule } from '@angular/cdk/scrolling'; import { EditorComponent } from './editor/editor'; +import { MatButtonToggleModule } from '@angular/material/button-toggle'; @NgModule({ declarations: [ @@ -195,7 +196,7 @@ import { EditorComponent } from './editor/editor'; ConnectKeyComponent, PasswordDialog, UsernamePipe, - EditorComponent + EditorComponent, ], imports: [ AboutModule, @@ -239,6 +240,7 @@ import { EditorComponent } from './editor/editor'; MatProgressBarModule, MatDialogModule, MatDatepickerModule, + MatButtonToggleModule, ScrollingModule, PhotoGalleryModule, NgxMatDatetimePickerModule, diff --git a/src/app/editor/editor.css b/src/app/editor/editor.css index b027372..b5154b2 100644 --- a/src/app/editor/editor.css +++ b/src/app/editor/editor.css @@ -20,19 +20,6 @@ h1 { color: #9c27b0; } -.maximize-button { - cursor: pointer; - margin-right: auto; - color: #d87fe7; -} - -.maximize-button:hover { - color: #9c27b0; -} - -.note-input { -} - .margin-right { margin-right: 5px; } @@ -42,3 +29,8 @@ h1 { position: fixed; z-index: 3; } + +.note-type { + text-align: right; + margin-bottom: 1em; +} diff --git a/src/app/editor/editor.html b/src/app/editor/editor.html index 210ecba..4782dc0 100644 --- a/src/app/editor/editor.html +++ b/src/app/editor/editor.html @@ -1,17 +1,67 @@
-

Write your thoughts

-
-
- +
+ + Text + Blog + +
+ +
+ + Title + + + + + URL (slug) + + + + + Long form text that supports markdown formatting + + + + + Summary (optional) + + + + + Banner image (optional) + + + + + Tags (optional, comma separated) + + + + + sentiment_satisfied + + + +
+
+     + +
+ + +
+
What's on your mind? @@ -32,8 +82,8 @@ -->
-     - +     +