Skip to content

Commit 6252eef

Browse files
committed
refactor: reorder main site sections
1 parent f99d899 commit 6252eef

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

assets/js/site.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
noEvents: 'No events have been added yet.', noMembers: 'No members have been added yet.', noPosts: 'No posts have been published yet.'
2626
}
2727
};
28-
const SECTIONS = ['comunidade', 'membros', 'eventos', 'projetos', 'blog', 'conduta', 'conheca-tambem'];
28+
const SECTIONS = ['comunidade', 'eventos', 'conduta', 'membros', 'projetos', 'blog', 'conheca-tambem'];
2929
let lang = 'pt';
3030
let state = {};
3131

@@ -136,8 +136,8 @@
136136
const nav = byId('navegacao');
137137
clear(nav);
138138
[
139-
['comunidade', text('community')], ['membros', text('members')], ['eventos', text('events')],
140-
['projetos', text('projects')], ['blog', text('blog')], ['conduta', text('conduct')], ['conheca-tambem', text('partners')]
139+
['comunidade', text('community')], ['eventos', text('events')], ['conduta', text('conduct')],
140+
['membros', text('members')], ['projetos', text('projects')], ['blog', text('blog')], ['conheca-tambem', text('partners')]
141141
].filter(([id]) => (id !== 'blog' || state.posts.length)
142142
&& (id !== 'membros' || state.members.length)
143143
&& (id !== 'projetos' || state.projects.length))

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ <h1 id="hero-title">Python-MG</h1>
5555
<div class="card-grid" id="community-cards"></div>
5656
</section>
5757

58-
<section class="section" id="membros" aria-labelledby="members-title">
59-
<div class="section-heading"><h2 id="members-title"></h2><span></span></div>
60-
<p class="data-source">data/members.json</p>
61-
<div class="member-grid" id="members-list"></div>
62-
</section>
63-
6458
<section class="section" id="eventos" aria-labelledby="events-title">
6559
<div class="section-heading"><h2 id="events-title"></h2><span></span></div>
6660
<p class="section-intro" data-i18n="eventsIntro">A agenda é mantida em data/events.json.</p>
@@ -86,6 +80,12 @@ <h3 class="subheading subdued" data-i18n="past">Eventos anteriores</h3>
8680
<div class="conduct-content"><ol class="conduct-list" id="conduct-list"></ol><a class="section-external-link" href="https://github.com/pythonmg/codigo-de-conduta" target="_blank" rel="noreferrer"><i class="bi bi-github" aria-hidden="true"></i><span data-i18n="fullConduct">Ver Código de Conduta completo ↗</span></a></div>
8781
</section>
8882

83+
<section class="section" id="membros" aria-labelledby="members-title">
84+
<div class="section-heading"><h2 id="members-title"></h2><span></span></div>
85+
<p class="data-source">data/members.json</p>
86+
<div class="member-grid" id="members-list"></div>
87+
</section>
88+
8989
<section class="section" id="conheca-tambem" aria-labelledby="partners-title">
9090
<div class="section-heading"><h2 id="partners-title"></h2><span></span></div>
9191
<p class="section-intro" id="partners-intro"></p>

0 commit comments

Comments
 (0)