Skip to content

Commit 233572a

Browse files
committed
refactor: move partner section to page end
1 parent de22423 commit 233572a

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', 'conheca-tambem', 'membros', 'eventos', 'projetos', 'blog', 'conduta'];
28+
const SECTIONS = ['comunidade', 'membros', 'eventos', 'projetos', 'blog', 'conduta', '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')], ['conheca-tambem', text('partners')], ['membros', text('members')],
140-
['eventos', text('events')], ['projetos', text('projects')], ['blog', text('blog')], ['conduta', text('conduct')]
139+
['comunidade', text('community')], ['membros', text('members')], ['eventos', text('events')],
140+
['projetos', text('projects')], ['blog', text('blog')], ['conduta', text('conduct')], ['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="conheca-tambem" aria-labelledby="partners-title">
59-
<div class="section-heading"><h2 id="partners-title"></h2><span></span></div>
60-
<p class="section-intro" id="partners-intro"></p>
61-
<div class="card-grid partner-grid" id="partner-cards"></div>
62-
</section>
63-
6458
<section class="section" id="membros" aria-labelledby="members-title">
6559
<div class="section-heading"><h2 id="members-title"></h2><span></span></div>
6660
<p class="data-source">data/members.json</p>
@@ -91,6 +85,12 @@ <h3 class="subheading subdued" data-i18n="past">Eventos anteriores</h3>
9185
<div class="section-heading"><h2 id="conduct-title"></h2><span></span></div>
9286
<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>
9387
</section>
88+
89+
<section class="section" id="conheca-tambem" aria-labelledby="partners-title">
90+
<div class="section-heading"><h2 id="partners-title"></h2><span></span></div>
91+
<p class="section-intro" id="partners-intro"></p>
92+
<div class="card-grid partner-grid" id="partner-cards"></div>
93+
</section>
9494
</div>
9595
</main>
9696

0 commit comments

Comments
 (0)