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

Commit a3a91c1

Browse files
feat: demo in about
1 parent 0ede5b4 commit a3a91c1

File tree

6 files changed

+48
-12
lines changed

6 files changed

+48
-12
lines changed

studio/src/app/components/feed/app-demo/app-demo.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
:host {
2+
width: 100%;
3+
4+
div.container {
5+
display: var(--demo-display);
6+
width: 100%;
7+
}
8+
}
9+
110
ion-segment {
211
margin-bottom: 16px;
312
}

studio/src/app/components/feed/app-demo/app-demo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class AppDemo {
2222
}
2323

2424
render() {
25-
return <div>
25+
return <div class="container">
2626
<ion-segment onIonChange={(e: CustomEvent) => this.switchType(e)}>
2727
<ion-segment-button value="mobile" checked={this.type === DemoType.MOBILE}>
2828
<ion-label>Mobile</ion-label>

studio/src/app/components/feed/app-popular/app-popular.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ app-popular {
22
ion-card[class*="sc-ion-card"] {
33
--background: white;
44
color: black;
5+
padding: 16px;
56
}
67

7-
div.demo {
8-
position: relative;
8+
ion-card.demo {
9+
padding: 16px;
10+
--background: white;
11+
min-height: 340px;
912
}
1013
}
1114

studio/src/app/components/feed/app-popular/app-popular.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ export class AppPopular {
1818

1919
<p padding-top>What does that mean 🤔?</p>
2020

21-
<p padding-top padding-bottom>It means that every presentations you write and publish with DeckDeckGo are also <strong>apps</strong> 🤪</p>
21+
<p padding-top>It means that every presentations you write and publish with DeckDeckGo are <strong>apps</strong> too 🤪</p>
22+
23+
<p padding-top padding-bottom>It is also an online community for sharing presentations, slides and talks about your interests and ideas.</p>
2224
</ion-card-content>
2325
</ion-card>,
24-
<div class="demo">
26+
<ion-card class="demo">
2527
<app-demo></app-demo>
26-
</div>
28+
</ion-card>
2729
];
2830
}
2931

studio/src/app/pages/core/about/app-about/app-about.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ app-about {
22
main {
33
background: white;
44

5+
ion-grid {
6+
7+
ion-col.demo {
8+
display: flex;
9+
justify-content: center;
10+
11+
app-demo {
12+
--demo-display: inline-block;
13+
}
14+
}
15+
}
16+
517
div.team {
618
display: flex;
719
justify-content: center;

studio/src/app/pages/core/about/app-about/app-about.tsx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,25 @@ export class AppAbout {
1414
<main padding>
1515
<h1>About DeckDeckGo</h1>
1616

17-
<h3 padding-top>Edit anywhere, display everywhere</h3>
17+
<ion-grid>
18+
<ion-row>
19+
<ion-col size="12" size-md="6">
20+
<h3 padding-top>Edit anywhere, display everywhere</h3>
1821

19-
<p padding-top>DeckDeckGo aims to be the open source editor for PWA presentations.</p>
22+
<p padding-top>DeckDeckGo aims to be the open source editor for PWA presentations.</p>
2023

21-
<p>What does that mean 🤔? It means that every presentations you write and publish with DeckDeckGo are also <strong>apps</strong> for desktop and mobile 🤪</p>
24+
<p>What does that mean 🤔? It means that every presentations you write and publish with DeckDeckGo are <strong>apps</strong> too 🤪</p>
2225

23-
<p>Furthermore, DeckDeckGo aims to be an online community for sharing presentations, slides and talks about your interests and ideas too.</p>
26+
<p>It is also an online community for sharing presentations, slides and talks about your interests and ideas.</p>
27+
28+
<p>DeckDeckGo was created with passion in Zürich🇨🇭in 2019</p>
29+
</ion-col>
30+
31+
<ion-col class="demo">
32+
<app-demo></app-demo>
33+
</ion-col>
34+
</ion-row>
35+
</ion-grid>
2436

2537
<h1 class="ion-text-center ion-padding-top">Team</h1>
2638

@@ -70,8 +82,6 @@ export class AppAbout {
7082
</div>
7183
</div>
7284

73-
<p padding-top>DeckDeckGo was created with passion in Zürich🇨🇭in 2019</p>
74-
7585
</main>
7686

7787
</ion-content>

0 commit comments

Comments
 (0)