Skip to content

Commit

Permalink
AVRO-3554: Use new project logo on website (#2594)
Browse files Browse the repository at this point in the history
Includes these changes:
* Fix logo links in PHP readme (reference images from the ASF website)
* Update logo files. Note that the SVG logo with text is special: it uses CSS to scale to its
parents height or width, and used the current (text) color for the text.
* Add shortcode to reference logo. This allows referencing the logo asset in content.
* Update logo on website
* Remove (now) unused logo
* Fix site warnings. There is still a warning left, but that's in the docsy theme.
* Add blog post announcing the new logo
  • Loading branch information
opwvhk authored Dec 4, 2023
1 parent efd3b2a commit cf1c8e5
Show file tree
Hide file tree
Showing 13 changed files with 133 additions and 28 deletions.
Binary file added doc/assets/icons/logo-black-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions doc/assets/icons/logo-text.svg
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 doc/assets/icons/logo-white-text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/assets/icons/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion doc/assets/icons/logo.svg
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 doc/assets/scss/PTMono-Regular.ttf
Binary file not shown.
12 changes: 12 additions & 0 deletions doc/assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,21 @@
// specific language governing permissions and limitations
// under the License.

@font-face {
font-family: 'PT Mono';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(./PTMono-Regular.ttf) format('truetype');
}

// Disable all github editing links for now
.td-page-meta--view { display: none !important; }
.td-page-meta--edit { display: none !important; }
.td-page-meta--child { display: none !important; }
.td-page-meta--issue { display: none !important; }
.td-page-meta--project-issue { display: none !important; }

.navbar-brand {
font-family: "PT Mono", monospace;
}
4 changes: 2 additions & 2 deletions doc/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ anchor = "smart"

# Language configuration

[languages]
[languages.en]
[languages.params]
[languages.en.params]
title = "Apache Avro"
description = ""
languageName ="English"
Expand Down
50 changes: 50 additions & 0 deletions doc/content/en/blog/news/new-project-logo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: "New Project Logo"
linkTitle: "New Project Logo"
date: 2023-11-21
---

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->

The Apache Avro project has a new project logo!

The old logo was derived from the logo of a (now defunct) aircraft manufacturer
in Great Britain. This posed a risk, as the Apache foundation would not contest
legal action (even if extremely unlikely).

But thanks to Emma Kellam, we now have a new logo! She has made several logo
designs, and after some debate and several votes (it was a close call!), we can
announce the new logo:

[//]: # (the logo scales to 100% high or all available width, so limit it)
<p style="height: 10rem">
{{< project_logo >}}
</p>

The new logo is an homage to the previous logo, which is also triangular and
uses blue colours. The paper airplane embodies keywords like 'fast', 'small'
and 'efficient'. The blobby tail left behind by the airplane makes the icon
unique and embodies 'flow' and 'transformation'.

All in all a very nice logo for Apache Avro, which embodies the same keywords.

Thanks for all your hard work Emma, and welcome!
22 changes: 0 additions & 22 deletions doc/content/en/docs/++version++/logo.svg

This file was deleted.

4 changes: 2 additions & 2 deletions doc/layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<nav class="js-navbar-scroll navbar navbar-expand navbar-dark {{ if $cover}} td-navbar-cover {{ end }}flex-column flex-md-row td-navbar">
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
{{/* AVRO-3555: Don't inline the existing logo for now.
<span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo }}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}</span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span>
<span class="navbar-logo">{{ if .Site.Params.ui.navbar_logo }}{{ with resources.Get "icons/logo.svg" }}{{ ( . | minify).Content | safeHTML }}{{ end }}{{ end }}</span><span class="font-weight-bold">{{ .Site.Title }}</span>
*/}}
<span class="navbar-logo"><img src="/docs/++version++/logo.svg" width="100" height="30" style="margin: 0 10px"></span><span class="text-uppercase font-weight-bold">{{ .Site.Title }}</span>
<span class="navbar-logo"><img src="{{ with resources.Get "icons/logo.svg" }}{{ .RelPermalink }}{{ end }}" width="35" height="30" style="margin: 0 10px"></span><span class="font-weight-bold">{{ .Site.Title }}</span>
</a>

<div class="td-navbar-nav-scroll ml-md-auto" id="main_navbar">
Expand Down
22 changes: 22 additions & 0 deletions doc/layouts/shortcodes/project_logo.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{/*

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.

*/}}{{/*
This file should not have a trailing newline.
*/}}{{ with resources.Get "/icons/logo-text.svg" }}{{ (.|minify).Content | safeHTML }}{{ end }}
2 changes: 1 addition & 1 deletion lang/php/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
|[![AVRO](https://raw.githubusercontent.com/apache/avro/main/doc/src/resources/images/avro-logo.png)](https://github.com/apache/avro) | [![AVRO](https://raw.githubusercontent.com/apache/avro/main/doc/src/resources/images/apache_feather.gif)](https://github.com/apac<he/avro)|
| [<img src="https://www.apache.org/logos/res/avro/default.png" width="360" alt="Avro"/>](https://github.com/apache/avro) | [<img src="https://projects.apache.org/images/asf_logo.png" width="360" alt="Avro"/>](https://github.com/apache/avro) |
|:-----|-----:|

What the Avro PHP library is
Expand Down

0 comments on commit cf1c8e5

Please sign in to comment.