Skip to content

Commit

Permalink
fix: multiple h1 on home page (fixes #109)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed May 15, 2024
1 parent 98cadb0 commit 6a99163
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions packages/website/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
</div>
</section>
<section class="container no-sidebar">
<h1>What's <i>MOAW</i>?</h1>
<h2>What's <i>MOAW</i>?</h2>
<!-- <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>
<h3>Catalog <app-icon name="search" size="28"></app-icon></h3>
<p>
It's a collection of all workshops and practical learning content created by developers from
Microsoft and its community, aggregated in one place.
Expand All @@ -54,7 +54,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
</p>
</div>
<div class="item">
<h2>Platform <app-icon name="tools" size="28"></app-icon></h2>
<h3>Platform <app-icon name="tools" size="28"></app-icon></h3>
<p>Use it to create and host workshops and associated sample code, slides, and resources.</p>
<p>
<a href="https://microsoft.github.io/moaw/workshop/create-workshop/"
Expand All @@ -63,7 +63,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
</p>
</div>
<div class="item">
<h2>Community <app-icon name="code-of-conduct" size="28"></app-icon></h2>
<h3>Community <app-icon name="code-of-conduct" size="28"></app-icon></h3>
<p>
This is a community-driven project, where everyone can use, adapt and share the content using the
permissive Creative Commons License.
Expand All @@ -77,11 +77,11 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
</div>
</section>
<section>
<h1>Want your workshop here?</h1>
<h2>Want your workshop here?</h2>
<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>
<h3>Reference it <app-icon name="link-external" size="28"></app-icon></h3>
<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.
Expand All @@ -95,7 +95,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
</p>
</div>
<div class="item">
<h2>Convert it <app-icon name="sync" size="28"></app-icon></h2>
<h3>Convert it <app-icon name="sync" size="28"></app-icon></h3>
<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
Expand Down Expand Up @@ -148,18 +148,26 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
flex: 1.5;
}
h2 {
font-size: var(--text-size-xxxl);
margin: var(--space-lg) 0;
border: none;
padding: 0;
}
.panel {
margin: var(--space-lg) 0;
background: var(--neutral-light);
padding: var(--space-lg);
border-radius: var(--border-radius);
overflow: hidden;
h2 {
border: none;
h3 {
font-size: var(--text-size-xxl);
margin-top: var(--space-lg);
}
h2 > app-icon {
h3 > app-icon {
width: 48px;
height: 48px;
border-radius: 50%;
Expand All @@ -176,7 +184,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
color: var(--accent-2);
}
h2 > app-icon {
h3 > app-icon {
background: var(--accent-2);
color: var(--text-light);
}
Expand All @@ -189,7 +197,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
color: var(--accent-3);
}
h2 > app-icon {
h3 > app-icon {
background: var(--accent-3);
color: var(--text-light);
}
Expand All @@ -202,7 +210,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
color: var(--accent);
}
h2 > app-icon {
h3 > app-icon {
background: var(--accent);
color: var(--text-light);
}
Expand All @@ -214,7 +222,7 @@ import { githubRepositoryUrl, mainScrollableId } from '../shared/constants';
margin-right: var(--space-xxs);
}
h2 > app-icon {
h3 > app-icon {
float: left;
margin-right: var(--space-md);
color: var(--primary);
Expand Down

0 comments on commit 6a99163

Please sign in to comment.