-
Notifications
You must be signed in to change notification settings - Fork 74
/
home.component.ts
216 lines (198 loc) · 7.66 KB
/
home.component.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HeaderComponent } from '../shared/components/header.component';
import { FooterComponent } from '../shared/components/footer.component';
import { IconComponent } from '../shared/components/icon.component';
import { TypewriterComponent } from './typewriter.component';
import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
@Component({
selector: 'app-home',
standalone: true,
imports: [CommonModule, HeaderComponent, FooterComponent, TypewriterComponent, IconComponent],
template: `
<div class="full-viewport">
<app-header logo="images/moaw-logo-dark.png" logoUrl="" type="landing" [links]="links"></app-header>
<div class="content bg-light">
<div id="${mainScrollableId}" class="scrollable">
<section class="container no-sidebar">
<div class="hero split-layout">
<div class="hero-text">
<h1>
Hands-on tutorials to <em>learn</em> and <em>teach</em> <app-typewriter
[words]="keywords"
></app-typewriter>
</h1>
<p>
Grab-and-go resources to help you learn new skills, but also create, host and share your own workshop.
</p>
<p>
<a href="catalog/" class="button button-fill">Browse Workshops</a>
</p>
</div>
<div class="show-gt-md">
<img src="images/people/learner.svg" alt="person learning on a laptop" title="" />
</div>
</div>
</section>
<section class="container no-sidebar">
<h1>What's <i>MOAW</i>?</h1>
<!-- <p class="video-embed">
<iframe width="560" height="315" src="https://www.youtube.com/embed/w-tLZjO6XMc" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</p> -->
<p>MOAW means <i>Mother Of All Workshops</i>, and it's the core of different resources.</p>
<section class="panel">
<div class="split-layout">
<div class="item">
<h2>Catalog <app-icon name="search" size="28"></app-icon></h2>
<p>
It's a collection of all workshops and practical learning content created by developers from Microsoft
and its community, aggregated in one place.
</p>
<p><a href="catalog/"><app-icon name="arrow-right"></app-icon>See all workshops</a></p>
</div>
<div class="item">
<h2>Platform <app-icon name="tools" size="28"></app-icon></h2>
<p>Use it to create and host workshops and associated sample code, slides, and resources.</p>
<p><a href="catalog/"><app-icon name="arrow-right"></app-icon>How to create and host your workshop</a></p>
</div>
<div class="item">
<h2>Community <app-icon name="code-of-conduct" size="28"></app-icon></h2>
<p>
This is a community-driven project, where everyone can use, adapt and share the content using the
permissive Creative Commons License.
</p>
<p><a href="${githubRepositoryUrl}/blob/main/CONTRIBUTING.md"><app-icon name="arrow-right"></app-icon>Contributing guide</a></p>
</div>
</div>
</section>
<section>
<h1>Want your workshop here?</h1>
<p>
You already have a workshop? ✨<b>Awesome!</b>✨
There are two options to add it to the catalog:
</p>
<div class="split-layout">
<div class="item">
<h2>Reference it <app-icon name="link-external" size="28"></app-icon></h2>
<p>
If you already have a workshop hosted somewhere else, you can reference it in the catalog. This is
the easiest way to get started, and the process takes only a few minutes.
</p>
<p><a class="button button-fill" href="${githubRepositoryUrl}/blob/main/CONTRIBUTING.md#reference-an-existing-workshop"><app-icon name="arrow-right"></app-icon>How to reference your workshop</a></p>
</div>
<div class="item">
<h2>Convert it <app-icon name="sync" size="28"></app-icon></h2>
<p>
If you want get the full benefits of our platform, such as <b>translations</b>, <b>extra pages</b>, <b>analytics</b> and more, you can convert it to our workshop format. If you're already using markdown, it's a breeze!
</p>
<p><a class="button button-fill" href="${githubRepositoryUrl}/blob/main/CONTRIBUTING.md#convert-an-existing-workshop"><app-icon name="arrow-right"></app-icon>How to convert your workshop</a></p>
</div>
</div>
</section>
</section>
<p> </p>
<app-footer type="big" credits="People illustrations by Storyset"></app-footer>
</div>
</div>
</div>
`,
styles: [
`
.hero {
font-size: var(--text-size-lg);
h1 {
font-size: var(--text-size-xxxxl);
}
p {
margin: var(--space-lg) 0;
}
.button {
font-weight: bold;
padding: var(--space-md) var(--space-lg);
}
}
.hero-text {
flex: 1.5;
}
.panel {
margin: var(--space-lg) 0;
background: var(--neutral-light);
padding: var(--space-lg);
border-radius: var(--border-radius);
overflow: hidden;
h2 {
border: none;
}
h2 > app-icon {
width: 48px;
height: 48px;
border-radius: 50%;
display: inline-flex;
justify-content: center;
align-items: center;
margin-top: -8px;
}
.item:nth-child(1) {
app-icon, a, a:hover {
color: var(--accent-2);
}
h2 > app-icon {
background: var(--accent-2);
color: var(--text-light);
}
}
.item:nth-child(2) {
app-icon, a, a:hover {
color: var(--accent-3);
}
h2 > app-icon {
background: var(--accent-3);
color: var(--text-light);
}
}
.item:nth-child(3) {
app-icon, a, a:hover {
color: var(--accent);
}
h2 > app-icon {
background: var(--accent);
color: var(--text-light);
}
}
}
app-icon {
line-height: 1.5em;
margin-right: var(--space-xxs);
}
h2 > app-icon {
float: left;
margin-right: var(--space-md);
color: var(--primary);
}
`
]
})
export class HomeComponent {
links = [
{ text: 'Workshops', url: 'catalog/', icon: 'rocket' },
{ text: 'Contribute', url: `${githubRepositoryUrl}/blob/main/CONTRIBUTING.md`, icon: 'git-pull-request' },
{ text: 'GitHub', url: githubRepositoryUrl, icon: 'mark-github' }
];
// TODO: Extract from tags
keywords = [
'JavaScript',
'C#',
'cloud computing',
'.NET',
'machine learning',
'Python',
'serverless',
'HTML',
'CSS',
'APIs',
'IoT',
'databases',
'containers',
'quantum computing'
];
}