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: add announcement banner for registration #44

Merged
merged 2 commits into from
Jun 24, 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
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*.md
overrides
13 changes: 13 additions & 0 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,16 @@ h1 {
border-bottom: 2px solid #b70000;
background-color: #15151e;
}

.md-banner {
background-color: #15151e;
}

.banner-button {
background-color: #b70000 !important;
}

.banner-button:hover {
background-color: #15151e !important;
border: 2px solid #b70000 !important;
}
2 changes: 2 additions & 0 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ use_directory_urls: false

theme:
name: material
custom_dir: overrides
features:
- navigation.tabs
- navigation.tabs.sticky
- toc.integrate
- announce.dismiss
palette:
scheme: slate
primary: custom
Expand Down
5 changes: 5 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{% extends "base.html" %}

{% block announce %}
誰でも参加登録できます! <a href="https://docs.google.com/forms/d/e/1FAIpQLSc0xFCrNS_J5Bl2g2RIZ694B5p9vOhlav9hrwgumtBrQuQ0RQ/viewform" class="md-button md-button--primary banner-button" target="_blank">自動運転AIチャレンジに参加登録はこちら!</a>
{% endblock %}
Loading