Skip to content

Commit 50c5954

Browse files
committed
Add favicon & logos
1 parent 8c82e9f commit 50c5954

7 files changed

Lines changed: 129 additions & 2 deletions

File tree

app.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,5 +468,10 @@ def health():
468468

469469
# Mount the static frontend directory last to avoid intercepting API calls
470470
frontend_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "frontend"))
471+
assets_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "assets"))
472+
473+
if os.path.exists(assets_path):
474+
app.mount("/assets", StaticFiles(directory=assets_path), name="assets")
475+
471476
if os.path.exists(frontend_path):
472477
app.mount("/", StaticFiles(directory=frontend_path, html=True), name="frontend")

assets/branding/branding_guide.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# MediaWiki Code2Code Search Branding Guide
2+
3+
This document defines the visual identity and branding standards for the **MediaWiki Code2Code Search** project. It is intended for developers, maintainers, and contributors to ensure consistency across the application and its documentation.
4+
5+
---
6+
7+
## 1. Concept: The Code Vortex
8+
The visual identity is centered around the "Code Vortex" concept. It represents the deep indexing and retrieval of code within the MediaWiki ecosystem.
9+
- **Symbolism**: The circular motion suggests scanning and search, while the brackets signify the code environment.
10+
- **Core Colors**: A high-contrast pairing of deep tech blue and vibrant energy orange.
11+
12+
---
13+
14+
## 2. Color Palette
15+
To maintain brand integrity, use only these official colors.
16+
17+
| Color | Name | Hex | Usage |
18+
| :--- | :--- | :--- | :--- |
19+
| ![#4B61D1](https://via.placeholder.com/15/4B61D1/000000?text=+) | **Savoy Blue** | `#4B61D1` | Primary identity, headers, buttons |
20+
| ![#FF7722](https://via.placeholder.com/15/FF7722/000000?text=+) | **Indian Saffron** | `#FF7722` | Accents, highlights, call-to-actions |
21+
| ![#1E1E1E](https://via.placeholder.com/15/1E1E1E/000000?text=+) | **Deep Coal** | `#1E1E1E` | Primary background (Dark Mode) |
22+
23+
---
24+
25+
## 3. Logo Assets
26+
Available in `assets/branding/`. Use the SVG format for all web and documentation purposes to ensure crisp scaling.
27+
28+
### 3.1 Vertical Logo
29+
**File**: `logo-vertical.svg`
30+
**Purpose**: Primary logo for splash screens, centered layouts, and about pages.
31+
![Vertical Logo](logo-vertical.svg)
32+
33+
### 3.2 Horizontal Logo
34+
**File**: `logo-horizontal.svg`
35+
**Purpose**: Secondary logo for navigation bars, headers, and footer layouts where vertical space is limited.
36+
![Horizontal Logo](logo-horizontal.svg)
37+
38+
### 3.3 Minimalist Icon
39+
**File**: `logo-minimal.svg`
40+
**Purpose**: Square-format icon for avatars, social media previews, and mobile app icons.
41+
![Minimalist Icon](logo-minimal.svg)
42+
43+
---
44+
45+
## 4. System Icons & SEO
46+
We use a dual-icon strategy to balance modern aesthetics with search engine compatibility.
47+
48+
- **SVG Favicon (`logo-minimal.svg`)**: Linked in `index.html` for modern browser tabs. Provides high-resolution rendering.
49+
- **ICO Favicon (`favicon.ico`)**: Provided for legacy compatibility and optimal indexing by **Googlebot/Bingbot**.
50+
51+
---
52+
53+
## 5. Typography
54+
The project uses geometric and modern typefaces to reflect its technical nature.
55+
56+
| Component | Font Stack | Notes |
57+
| :--- | :--- | :--- |
58+
| **Headings** | `Sora`, sans-serif | Primary brand font (Modern, Bold) |
59+
| **Interface** | `Ubuntu`, `Segoe UI`, sans-serif | Clean legibility for UI elements |
60+
| **Code** | `Fira Code`, `monospace` | Monospaced for technical snippets |
61+
62+
---
63+
64+
## 6. Usage Guidelines
65+
- **Padding**: Ensure a minimum clear space of 10% around the logo.
66+
- **Backgrounds**: Logos are optimized for dark backgrounds (`#1E1E1E`). For light backgrounds, ensure sufficient contrast for the Indian Saffron accents.
67+
- **Scaling**: Do not scale logos below 32px width for the horizontal variant or 64px for the vertical variant.

assets/branding/favicon.ico

3.54 KB
Binary file not shown.
Lines changed: 27 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)