Browse Source

🔧 Add new banner sponsor badge for FastAPI courses bundle (#3288)

pull/3291/head
Sebastián Ramírez 4 years ago
committed by GitHub
parent
commit
d5b09cd958
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      docs/en/docs/css/custom.css
  2. BIN
      docs/en/docs/img/sponsors/fastapi-bundle-banner.png
  3. 10
      docs/en/overrides/main.html

5
docs/en/docs/css/custom.css

@ -89,6 +89,11 @@ a.announce-link:hover {
z-index: 10;
}
.announce-wrapper .sponsor-image {
display: block;
border-radius: 20px;
}
.announce-wrapper>div {
min-height: 40px;
display: flex;

BIN
docs/en/docs/img/sponsors/fastapi-bundle-banner.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

10
docs/en/overrides/main.html

@ -16,9 +16,15 @@
</div>
<div id="announce-right" style="position: relative;">
<div class="item">
<a title="The launchpad for all your (team's) ideas" style="display: block; position: relative;" href="https://www.deta.sh/?ref=fastapi">
<a title="The launchpad for all your (team's) ideas" style="display: block; position: relative;" href="https://www.deta.sh/?ref=fastapi" target="_blank">
<span class="sponsor-badge">sponsor</span>
<img style="display: block;" src="/img/sponsors/deta-banner.svg" />
<img class="sponsor-image" src="/img/sponsors/deta-banner.svg" />
</a>
</div>
<div class="item">
<a title="Get three courses at 50% off their current prices! Plus, we'll be donating 50% of all profits from sales of this bundle to the FastAPI team." style="display: block; position: relative;" href="https://testdriven.io/talkpython/" target="_blank">
<span class="sponsor-badge">sponsor</span>
<img class="sponsor-image" src="/img/sponsors/fastapi-bundle-banner.png" />
</a>
</div>
</div>

Loading…
Cancel
Save