refactor: update community page to `@primer/css (#4438)
This commit is contained in:
Родитель
cfc4217f22
Коммит
398dc27844
|
@ -488,7 +488,7 @@ describe('electronjs.org', () => {
|
|||
.get('/community')
|
||||
.set('Cookie', ['language=vi-VN'])
|
||||
const $ = cheerio.load(res.text)
|
||||
$('.subtron .container-narrow h1')
|
||||
$('.subtron .container-lg h1')
|
||||
.text()
|
||||
.should.eq(i18n.website['vi-VN'].community.title)
|
||||
})
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
<main class="PRIMER-REMOVE-ME">
|
||||
<div class='subtron'>
|
||||
<div class='container-narrow'>
|
||||
<h1>{{localized.community.title}}</h1>
|
||||
<div class='container-lg p-responsive'>
|
||||
<h1 class="f0-light">{{localized.community.title}}</h1>
|
||||
<p class="lead mb-3">{{{localized.community.description}}}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<section class='page-section'>
|
||||
<div class='py-7 py-md-8 py-lg-9'>
|
||||
|
||||
<div class="container-narrow">
|
||||
<div class="container-lg p-responsive">
|
||||
<p class="lead mb-4">🐎 {{{localized.community.channels.get_started}}}</p>
|
||||
<p class="lead mb-4">📣 {{{localized.community.channels.updates}}}</p>
|
||||
<p class="lead mb-4">🙋 {{{localized.community.channels.help}}}</p>
|
||||
|
@ -20,12 +21,12 @@
|
|||
<p class="lead mb-4">❓ {{{localized.community.channels.other}}}</p>
|
||||
</div>
|
||||
|
||||
<div class="container-narrow my-5">
|
||||
<h2 id="language-communities">{{localized.community.language_communities.title}}</h2>
|
||||
<div class="container-lg p-responsive my-5">
|
||||
<h2 id="language-communities" class="f1-light">{{localized.community.language_communities.title}}</h2>
|
||||
|
||||
<p>{{{localized.community.language_communities.description}}}</p>
|
||||
|
||||
<ul>
|
||||
<ul class="markdown-body">
|
||||
<li><a href="https://telegram.me/electron_ru" rel="nofollow">electron-ru</a> <em>(Russian)</em></li>
|
||||
<li><a href="https://electron-br.slack.com" rel="nofollow">electron-br</a> <em>(Brazilian Portuguese)</em></li>
|
||||
<li><a href="https://electron-kr.github.io/electron-kr" rel="nofollow">electron-kr</a> <em>(Korean)</em></li>
|
||||
|
@ -36,8 +37,8 @@
|
|||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="container-narrow">
|
||||
<h2 id="tools">{{localized.community.tools}}</h2>
|
||||
<div class="container-lg p-responsive">
|
||||
<h2 id="tools" class="f1-light">{{localized.community.tools}}</h2>
|
||||
<table class="table table-ruled table-full-width table-with-spacious-first-column mb-7">
|
||||
{{#each items}}
|
||||
{{#if this.isTool}}
|
||||
|
@ -55,7 +56,7 @@
|
|||
{{/each}}
|
||||
</table>
|
||||
|
||||
<h2 id="boilerplates">{{localized.community.boilerplates}}</h2>
|
||||
<h2 id="boilerplates" class="f1-light">{{localized.community.boilerplates}}</h2>
|
||||
<table class="table table-ruled table-full-width table-with-spacious-first-column mb-7">
|
||||
{{#each items}}
|
||||
{{#if this.isBoilerplate}}
|
||||
|
@ -71,7 +72,7 @@
|
|||
{{/each}}
|
||||
</table>
|
||||
|
||||
<h2 id="components">{{localized.community.components}}</h2>
|
||||
<h2 id="components" class="f1-light">{{localized.community.components}}</h2>
|
||||
<table class="table table-ruled table-full-width table-with-spacious-first-column mb-7">
|
||||
{{#each items}}
|
||||
{{#if this.isComponent}}
|
||||
|
@ -87,7 +88,7 @@
|
|||
{{/each}}
|
||||
</table>
|
||||
|
||||
<h2 id="videos">{{localized.community.videos}}</h2>
|
||||
<h2 id="videos" class="f1-light">{{localized.community.videos}}</h2>
|
||||
<table class="table table-ruled table-full-width table-with-spacious-first-column mb-7">
|
||||
{{#each items}}
|
||||
{{#if this.isVideo}}
|
||||
|
@ -101,10 +102,10 @@
|
|||
</table>
|
||||
|
||||
<p class="mt-3 mt-md-6">
|
||||
{{{localized.community.awesome_notice}}}
|
||||
{{{localized.community.awesome_notice}}}
|
||||
</p>
|
||||
|
||||
<h2 id="meetups" class="mt-7">{{localized.community.meetups}}</h2>
|
||||
<h2 id="meetups" class="mt-7 f1-light">{{localized.community.meetups}}</h2>
|
||||
<table class="table table-ruled table-full-width table-with-spacious-first-column mb-7">
|
||||
{{#each meetups}}
|
||||
<tr>
|
||||
|
@ -122,4 +123,5 @@
|
|||
{{{localized.community.meetup_notice}}}
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
|
Загрузка…
Ссылка в новой задаче