Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Update sponsor information and layout #310

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions themes/apachecon/i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ tracks:
translation:
other: 中文

organizer:
other: Organizer

sponsorship_community:
other: Strategic Community

sponsorship_power:
other: Power Bank Special Partner

sponsorship_coffee:
other: Coffee Special Partner

sponsorship_special:
other: Translation Special Partner

sponsorship_market:
other: Open Source Market Community

sponsorship_strategy:
other: Strategic

Expand Down
18 changes: 18 additions & 0 deletions themes/apachecon/i18n/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ track:
translation:
other: English

organizer:
other: 主办方

sponsorship_community:
other: 战略合作社区

sponsorship_coffee:
other: 咖啡特约合作伙伴

sponsorship_power:
other: 充电宝特约合作伙伴

sponsorship_special:
other: 翻译特约合作伙伴

sponsorship_market:
other: 开源市集合作社区

sponsorship_strategy:
other: 战略赞助

Expand Down
115 changes: 78 additions & 37 deletions themes/apachecon/layouts/partials/sponsor.html
Original file line number Diff line number Diff line change
@@ -1,42 +1,83 @@
<div class="sponsor">
<div class="container">
<div class="row justify-content-center">

{{ $array := slice "1" "2" "3" "4" }}
{{ range $index, $element := $array }}
<div class="col col-md-12 col-lg-8">
<div class="card border-0 mb-3">
<div class="card-body d-flex">
<div class="icon me-4">✅</div>
<div>
<h5>{{ i18n (printf "sponsor_title_%s" $element) }}</h5>
<p class="mb-0">{{ i18n (printf "sponsor_description_%s" $element) }}</p>
</div>
</div>
</div>
</div>
{{ end }}
</div>

<!-- disable the prospectus download-->
<!--div class="text-center mt-3 pt-3">
<a href="pdf/CoC_Asia_2024_Prospectus.pdf" role="button" class="btn btn-lg btn-warning" download>{{ i18n "sponsor-download" }}</a>
</div-->
</div>
</div>
<section class="sponsorship">
<dl>
<dt>{{ i18n "sponsorship_platinum" }}</dt>
<dd class="platinum">
<div class="img-wrap">
<img src="images/logo/logo-Aliyun.png" alt="AliCloud" />
</div>
<div class="img-wrap">
<img src="images/logo/logo-AntOpenSource.png" alt="AntOpenSource" />
</div>
<div class="img-wrap">
<img src="images/logo/logo-ByteDanceOpenSource.jpg" alt="ByteDanceOpenSource" />
</div>
</dd>
</dl>
<dl>
<dt>{{ i18n "sponsorship_gold" }}</dt>
<dd>
<div class="img-wrap">
<img src="images/logo/logo-SelectDB.png" alt="SelectDB" />
</div>
<div class="img-wrap">
<img src="images/logo/logo-Openbayes.png" alt="Openbayes" />
</div>
<div class="img-wrap">
<img src="images/logo/logo-Mi.jpg" alt="Mi" />
</div>
</dd>
</dl>
<dl>
<dt>{{ i18n "sponsorship_silver" }}</dt>
<dd>
<div class="img-wrap">
<img src="images/logo/BAIDU.png" alt="BaiDu" />
</div>
</dd>
</dl>
<dl>
<dt>{{ i18n "sponsorship_community" }}</dt>
<dd>
<div class="img-wrap">
<img src="images/logo/logo-sf.png" alt="SegmentFault" />
</div>
</dd>
</dl>
</section>
<style>
.sponsor {
background-color: #f8f9fa;
.sponsorship dl {
max-width: 860px;
margin: 0 auto;
}

.sponsorship dl dd {
min-height: unset !important;
}

.sponsorship dl dd img {
max-height: 38px !important;
max-width: 138px !important;
object-fit: contain;
width: auto;
height: auto;

}
.sponsor .icon {
line-height: 1.5;

.sponsorship dl dd {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
@media screen and (max-width: 775px) {
.sponsor .btn-lg {
--bs-btn-padding-x: 0.75rem;
--bs-btn-padding-y: 0.375rem;
--bs-btn-font-size: 1rem;
--bs-btn-border-radius: var(--bs-border-radius);
}

.sponsorship dl dd .img-wrap {
width: 162px;
height: 62px;
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0 8px;
border: 1px solid rgba(0, 0, 0, 0.12);
margin-bottom: 16px;
}
</style>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/apachecon/static/images/logo/logo-Mi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/apachecon/static/images/logo/logo-sf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading