Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit 30bc432

Browse files
Merge pull request #820 from deckgo/enterprise
Enterprise
2 parents 87c1a56 + 625aef3 commit 30bc432

File tree

29 files changed

+987
-137
lines changed

29 files changed

+987
-137
lines changed

studio/src/app/app-root.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,14 @@ export class AppRoot {
126126
return [
127127
<ion-app class={this.loading ? 'loading' : undefined}>
128128
<ion-router useHash={false}>
129-
<ion-route url="/" component="app-home" />
129+
<ion-route url="/" component="app-welcome" />
130+
131+
<ion-route url="/home" component="app-home" />
130132

131133
<ion-route url="/discover" component="app-discover" />
132134

135+
<ion-route url="/enterprise" component="app-enterprise" />
136+
133137
<ion-route url="/editor" component="app-editor" />
134138
<ion-route url="/editor/:deckId" component="app-editor" />
135139

studio/src/app/components/core/app-menu/app-menu.tsx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export class AppMenu {
4343

4444
{this.renderHome()}
4545
{this.renderDiscover()}
46+
{this.renderEnterprise()}
4647
{this.renderDashboard()}
4748
{this.renderSettings()}
4849
{this.renderSignInOut()}
@@ -53,7 +54,7 @@ export class AppMenu {
5354
private renderUser() {
5455
if (authStore.state.loggedIn) {
5556
return (
56-
<ion-item class="user">
57+
<ion-item class="user ion-margin-bottom">
5758
<app-user-info avatarColSize={3}></app-user-info>
5859
</ion-item>
5960
);
@@ -95,18 +96,14 @@ export class AppMenu {
9596

9697
private renderHome() {
9798
return (
98-
<ion-item button class="home" href="/" routerDirection="forward">
99-
<ion-icon lazy={true} name="home-outline" slot="start"></ion-icon>
100-
<ion-label>Home</ion-label>
99+
<ion-item button class="home" href="/home" routerDirection="forward">
100+
<app-logo slot="start"></app-logo>
101+
<ion-label>DeckDeckGo</ion-label>
101102
</ion-item>
102103
);
103104
}
104105

105106
private renderDiscover() {
106-
if (authStore.state.loggedIn) {
107-
return undefined;
108-
}
109-
110107
return (
111108
<ion-item button class="home" href="/discover" routerDirection="forward">
112109
<ion-icon lazy={true} name="search-outline" slot="start"></ion-icon>
@@ -115,6 +112,15 @@ export class AppMenu {
115112
);
116113
}
117114

115+
private renderEnterprise() {
116+
return (
117+
<ion-item button class="home" href="/enterprise" routerDirection="forward">
118+
<ion-icon lazy={true} name="business-outline" slot="start"></ion-icon>
119+
<ion-label>Enterprise</ion-label>
120+
</ion-item>
121+
);
122+
}
123+
118124
private renderSettings() {
119125
return (
120126
<ion-item button class="home" href="/settings" routerDirection="forward">

studio/src/app/components/core/app-navigation-actions/app-navigation-actions.tsx

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ export class AppNavigationActions {
3939
render() {
4040
return (
4141
<div>
42-
{this.renderFeed()}
4342
{this.renderSignIn()}
4443
{this.renderPresentationButton()}
4544
{this.renderPublishButton()}
@@ -48,18 +47,6 @@ export class AppNavigationActions {
4847
);
4948
}
5049

51-
private renderFeed() {
52-
if (authStore.state.loggedIn || !this.signIn) {
53-
return undefined;
54-
} else if (this.presentation || this.publish) {
55-
return (
56-
<ion-router-link href="/discover" routerDirection="forward" class="wide-device ion-padding-start ion-padding-end">
57-
<ion-label>Discover</ion-label>
58-
</ion-router-link>
59-
);
60-
}
61-
}
62-
6350
private renderSignIn() {
6451
if (authStore.state.loggedIn || !this.signIn) {
6552
return undefined;

studio/src/app/components/core/app-navigation/app-navigation.scss

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ app-navigation {
3232
user-select: none;
3333
}
3434

35+
ion-router-link.nav:not(:last-of-type) {
36+
margin-right: 24px;
37+
}
38+
3539
&.deck-name-visible {
3640
ion-label.deck-name {
3741
visibility: initial;
3842
opacity: 1;
3943
}
4044

41-
ion-router-link.home div.logo ion-label {
45+
ion-router-link.nav ion-label {
4246
display: none;
4347
}
4448
}
@@ -111,11 +115,11 @@ body.dark {
111115
}
112116
}
113117

114-
@media screen and (max-width: 720px) {
118+
@media screen and (max-width: 768px) {
115119
ion-nav {
116120
div.title:not(.offline) {
117121
ion-label.deck-name,
118-
ion-router-link.home ion-label {
122+
ion-router-link.nav ion-label {
119123
display: none;
120124
}
121125
}

studio/src/app/components/core/app-navigation/app-navigation.tsx

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,43 @@ export class AppNavigation {
4040

4141
return (
4242
<div class={titleClass}>
43-
<ion-router-link onClick={() => this.closeMenu()} href="/" routerDirection="forward" class="home">
43+
<ion-router-link onClick={() => this.closeMenu()} href="/home" routerDirection="forward" class="nav">
4444
{this.renderLogo()}
4545
</ion-router-link>
4646

47+
{this.renderFeed()}
48+
49+
{this.renderEnterprise()}
50+
4751
<ion-label class="deck-name">{store.state.name}</ion-label>
4852
</div>
4953
);
5054
}
5155

56+
private renderFeed() {
57+
if (this.presentation || this.publish) {
58+
return (
59+
<ion-router-link href="/discover" routerDirection="forward" class="nav discover">
60+
<ion-label>Discover</ion-label>
61+
</ion-router-link>
62+
);
63+
} else {
64+
return undefined;
65+
}
66+
}
67+
68+
private renderEnterprise() {
69+
if (this.presentation || this.publish) {
70+
return (
71+
<ion-router-link href="/enterprise" routerDirection="forward" class="nav">
72+
<ion-label>Enterprise</ion-label>
73+
</ion-router-link>
74+
);
75+
} else {
76+
return undefined;
77+
}
78+
}
79+
5280
private renderTitleOffline() {
5381
if (offlineStore.state.offline === undefined) {
5482
return undefined;

studio/src/app/components/core/app-footer/app-footer.scss renamed to studio/src/app/components/core/footer/app-footer/app-footer.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
}
2121

2222
app-footer {
23+
display: block;
24+
2325
div.footer-container {
2426
font-size: var(--font-size-small);
2527

studio/src/app/components/landing/app-landing-footer/app-landing-footer.scss renamed to studio/src/app/components/core/footer/app-section-footer/app-section-footer.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
app-landing-footer {
2-
main {
1+
app-section-footer {
2+
footer {
33
display: flex;
44
flex-direction: column;
55
justify-content: center;
66
align-items: center;
77

8+
section {
9+
padding: 0;
10+
}
11+
812
section.links {
913
margin-top: 48px;
1014
max-width: 768px;
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
import {Component, h, Prop} from '@stencil/core';
2+
3+
@Component({
4+
tag: 'app-section-footer',
5+
styleUrl: 'app-section-footer.scss',
6+
shadow: false,
7+
})
8+
export class AppSectionFooter {
9+
@Prop()
10+
action: boolean = true;
11+
12+
render() {
13+
return (
14+
<footer>
15+
<img src={`/assets/img/landing/wave-remote.svg`} role="presentation" loading="lazy" class="wave-section" />
16+
17+
{this.renderAction()}
18+
19+
<section class="ion-padding links">
20+
<app-footer display="landing"></app-footer>
21+
</section>
22+
</footer>
23+
);
24+
}
25+
26+
private renderAction() {
27+
if (!this.action) {
28+
return undefined;
29+
}
30+
31+
return (
32+
<section class="ion-padding ion-text-center">
33+
<h3>Start now.</h3>
34+
35+
<ion-button class="ion-margin-top" shape="round" href="/editor" routerDirection="root" mode="md" color="primary">
36+
<ion-label>Write a presentation</ion-label>
37+
</ion-button>
38+
</section>
39+
);
40+
}
41+
}

studio/src/app/components/editor/actions/app-actions-editor/app-actions-editor.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ app-actions-editor {
6363
}
6464
}
6565

66-
@media screen and (max-width: 720px) {
66+
@media screen and (max-width: 768px) {
6767
ion-tab-button,
6868
app-action-share,
6969
app-action-busy,
@@ -74,7 +74,7 @@ app-actions-editor {
7474
}
7575
}
7676

77-
@media screen and (min-width: 720px) {
77+
@media screen and (min-width: 768px) {
7878
ion-tab-button,
7979
app-action-share,
8080
app-action-busy,

0 commit comments

Comments
 (0)