Skip to content

Commit a3dd2e5

Browse files
committed
Add logo and update documentation branding
- Move logo to docs/images/logo.png - Add logo to MkDocs theme header and as favicon - Update README with centered logo and badges - Apply custom green color theme (#305e3a) matching logo
1 parent dcac5c0 commit a3dd2e5

File tree

4 files changed

+28
-6
lines changed

4 files changed

+28
-6
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Django Countries
22

3-
[![PyPI version](https://badge.fury.io/py/django-countries.svg)](https://badge.fury.io/py/django-countries)
4-
[![Build status](https://github.com/SmileyChris/django-countries/actions/workflows/tests.yml/badge.svg)](https://github.com/SmileyChris/django-countries/actions/workflows/tests.yml)
3+
<p align="center">
4+
<img src="docs/images/logo.png" alt="Django Countries Logo" width="200">
5+
</p>
6+
7+
<p align="center">
8+
<a href="https://badge.fury.io/py/django-countries"><img src="https://badge.fury.io/py/django-countries.svg" alt="PyPI version"></a>
9+
<a href="https://github.com/SmileyChris/django-countries/actions/workflows/tests.yml"><img src="https://github.com/SmileyChris/django-countries/actions/workflows/tests.yml/badge.svg" alt="Build status"></a>
10+
</p>
511

612
A Django application that provides country choices for use with forms, flag icons static files, and a country field for models.
713

docs/images/logo.png

24.5 KB
Loading

docs/stylesheets/extra.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
:root {
2+
--md-primary-fg-color: #305e3a;
3+
--md-primary-fg-color--light: #4a8a56;
4+
--md-primary-fg-color--dark: #1f3d26;
5+
--md-primary-bg-color: #ffffff;
6+
--md-primary-bg-color--light: #f5f5f5;
7+
--md-accent-fg-color: #305e3a;
8+
--md-accent-fg-color--transparent: #305e3a1a;
9+
--md-accent-bg-color: #ffffff;
10+
--md-accent-bg-color--light: #f5f5f5;
11+
}

mkdocs.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ repo_name: SmileyChris/django-countries
55

66
theme:
77
name: material
8+
logo: images/logo.png
9+
favicon: images/logo.png
810
palette:
911
- scheme: default
10-
primary: indigo
11-
accent: indigo
12+
primary: custom
13+
accent: custom
1214
toggle:
1315
icon: material/brightness-7
1416
name: Switch to dark mode
1517
- scheme: slate
16-
primary: indigo
17-
accent: indigo
18+
primary: custom
19+
accent: custom
1820
toggle:
1921
icon: material/brightness-4
2022
name: Switch to light mode
@@ -28,6 +30,9 @@ theme:
2830
- search.highlight
2931
- content.code.copy
3032

33+
extra_css:
34+
- stylesheets/extra.css
35+
3136
nav:
3237
- Home:
3338
- Welcome: index.md

0 commit comments

Comments
 (0)