Skip to content
Closed
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
2 changes: 2 additions & 0 deletions static-site/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ url = "https://www.linkedin.com/company/99059952"

[extra.translations.en]
home = "Home"
sponsors = "Sponsors"
events = "Events"
donate = "Donate"
commercial_disclosure = "Commercial Disclosure"
code_of_conduct = "Code of Conduct"

[extra.translations.jp]
home = "ホーム"
sponsors = "スポンサー"
events = "イベント"
donate = "寄付"
commercial_disclosure = "特定商取引法に基づく表記"
Expand Down
12 changes: 12 additions & 0 deletions static-site/content/sponsors.jp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
+++
title = "スポンサー"
template = "sponsors.html"

[[extra.sponsor]]
name = "RustJobs.dev"
url = "https://rustjobs.dev"
logo_html = '''<span style="font-size: 1.5rem; letter-spacing: -0.025em; line-height: 2.5rem; font-weight: 800; background: linear-gradient(to right, #fb923c, #dc2626); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;">RustJobs</span>'''
description = "RustJobs.devは、Rustエンジニアリング人材のための採用プラットフォームです。東京の求人も含め、多数の求人情報を掲載しています(私たちの協力により、今後さらに増えることを期待しています!)"
+++

東京Rustを支えてくださる寛大なスポンサーの皆様に感謝いたします!皆様のサポートにより、イベントの開催、軽食の提供、そしてコミュニティの構築を続けることができます。
12 changes: 12 additions & 0 deletions static-site/content/sponsors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
+++
title = "Our Sponsors"
template = "sponsors.html"

[[extra.sponsor]]
name = "RustJobs.dev"
url = "https://rustjobs.dev"
logo_html = '''<span style="font-size: 1.5rem; letter-spacing: -0.025em; line-height: 2.5rem; font-weight: 800; background: linear-gradient(to right, #fb923c, #dc2626); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;">RustJobs</span>'''
description = "RustJobs.dev is the go-to hiring platform for Rust Engineering Talent. They have tons of job listings, including a few in Tokyo (hopefully with our help more soon!)"
+++

Thank you to our generous sponsors who help make Tokyo Rust possible! Their support enables us to host events, provide refreshments, and continue building our community.
11 changes: 11 additions & 0 deletions static-site/mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[tools]
zola = "latest"

[tasks.init]
description = "Initialize Zola and dependencies"
run = "npm i"

[tasks.dev]
description = "Run Zola in serve/dev mode"
depends = ["init"]
run = "zola serve"
1 change: 1 addition & 0 deletions static-site/templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% import "macros.tera.html" as macros %}
<footer class="d-flex flex-wrap justify-content-between align-items-center px-3 py-1 my-4 border-top">
<div class="col-12 col-md-4 d-flex justify-content-center justify-content-md-start align-items-center">
{{ macros::rust_logo(size=3) }}
Expand Down
4 changes: 3 additions & 1 deletion static-site/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{% extends "base.html" %} {% block content %}
{% extends "base.html" %}
{% import "macros.tera.html" as macros %}
{% block content %}
<div class="bg-black">
<div class=" py-5 container column-gap-3">
<h1 class="text-primary fw-bold p-5 m-0 text-center text-md-start"> {{ section.title }} </h1>
Expand Down
22 changes: 21 additions & 1 deletion static-site/templates/macros.tera.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,24 @@ <h5 class="text-dark">{{ title }}</h5>
<img height="24px" alt="{{ name }} icon" src="{{ icon }}" />
</a>
</li>
{% endmacro social_link %}
{% endmacro social_link %}

{% macro sponsor_card(name, url, logo_html, description) %}
<div class="row mb-5 pb-4 align-items-center">
<!-- Logo Column -->
<div class="col-md-4 text-center mb-3 mb-md-0">
<a href="{{ url }}" target="_blank" rel="noopener noreferrer" class="d-inline-block" style="max-width: 100%;">
<div style="max-width: 250px; max-height: 100px; overflow: hidden; display: flex; align-items: center; justify-content: center; margin: 0 auto;">
{{ logo_html | safe }}
</div>
</a>
</div>
<!-- Content Column -->
<div class="col-md-8">
<h3 class="mb-3">
<a href="{{ url }}" target="_blank" rel="noopener noreferrer" class="text-decoration-none text-dark">{{ name }}</a>
</h3>
<p class="mb-0">{{ description }}</p>
</div>
</div>
{% endmacro sponsor_card %}
5 changes: 5 additions & 0 deletions static-site/templates/navbar.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% import "macros.tera.html" as macros %}
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
{{ macros::rust_logo(size=5) }}
Expand All @@ -13,6 +14,10 @@
{{ lang }}
{%- endif -%}">{{config.extra.translations[lang].home}}</a>
</li>
<li class="nav-item">
<a class="nav-link"
href="{{ macros::get_url(path='@/sponsors.md') }}">{{config.extra.translations[lang].sponsors}}</a>
</li>
<li class="nav-item">
<a class="nav-link"
href="{{ config.extra.donate_link }}">{{config.extra.translations[lang].donate}}</a>
Expand Down
21 changes: 21 additions & 0 deletions static-site/templates/sponsors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{% extends "base.html" %}
{% import "macros.tera.html" as macros %}

{% block content %}
<div class="container my-5">
<h1>{{ page.title }}</h1>

{{ page.content | safe }}

<hr class="my-4">

<div class="my-5">
{% for sponsor in page.extra.sponsor %}
{{ macros::sponsor_card(name=sponsor.name, url=sponsor.url, logo_html=sponsor.logo_html, description=sponsor.description) }}
{% if not loop.last %}
<hr class="my-5">
{% endif %}
{% endfor %}
</div>
</div>
{% endblock content %}