Skip to content

Commit 1213e27

Browse files
committed
✨ Trip sharing
1 parent 356d9b8 commit 1213e27

File tree

9 files changed

+1258
-5
lines changed

9 files changed

+1258
-5
lines changed

src/src/app/app.routes.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { DashboardComponent } from "./components/dashboard/dashboard.component";
66
import { AuthGuard } from "./services/auth.guard";
77
import { TripComponent } from "./components/trip/trip.component";
88
import { TripsComponent } from "./components/trips/trips.component";
9+
import { SharedTripComponent } from "./components/shared-trip/shared-trip.component";
910

1011
export const routes: Routes = [
1112
{
@@ -15,6 +16,19 @@ export const routes: Routes = [
1516
title: "TRIP - Authentication",
1617
},
1718

19+
{
20+
path: "s",
21+
children: [
22+
{
23+
path: "t/:token",
24+
component: SharedTripComponent,
25+
title: "TRIP - Shared Trip",
26+
},
27+
28+
{ path: "**", redirectTo: "/home", pathMatch: "full" },
29+
],
30+
},
31+
1832
{
1933
path: "",
2034
canActivate: [AuthGuard],

src/src/app/components/shared-trip/shared-trip.component.html

Lines changed: 454 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@media print {
2+
.print-striped-rows tr:nth-child(even) {
3+
background-color: #f9f9f9 !important;
4+
}
5+
6+
.print-striped-rows tr:nth-child(even) td:first-child.truncate {
7+
//HACK: The "day" column is truncated
8+
background-color: white !important;
9+
}
10+
}
11+
12+
.fullscreen-map {
13+
position: fixed !important;
14+
top: 0 !important;
15+
left: 0 !important;
16+
width: 100vw !important;
17+
height: 100vh !important;
18+
border-radius: 0 !important;
19+
box-shadow: none !important;
20+
}

0 commit comments

Comments
 (0)