Skip to content

Commit

Permalink
index: remake the right-side boxes
Browse files Browse the repository at this point in the history
- border around the sponsors too
- rounded corners
- uniform font size
- shorter texts
- added small images
- moved the video into a side box
- added bg color to separate more from main content
  • Loading branch information
bagder committed Jul 2, 2024
1 parent 7881d51 commit 23ab22b
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 21 deletions.
61 changes: 40 additions & 21 deletions _index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@
#include "css.t"
<style type="text/css">
.sponsors {
max-width: 120px;
padding: 5px 5px 5px 5px;
border: 2px black solid;
border-radius: 10px;
margin-bottom: 20px;
text-align: center;
background: #e0e0e0;
}
.logo {
max-width: 100px;
margin: 0px 0px 20px 0px;
max-width: 80%;
margin: 20px 0px 0px 0px;
}
.sponsors a:hover, .logo:hover {
background: transparent;
}
.sidebar-box {
padding: 5px;
margin-bottom: 20px;
border: 1px black solid;
border: 2px black solid;
border-radius: 10px;
background: #e0e0e0;
}

td {
Expand Down Expand Up @@ -50,6 +56,11 @@
@media (prefers-color-scheme: dark) {
.sidebar-box {
border-color: #999;
background: #404040;
}
.sponsors {
border-color: #999;
background: #404040;
}
}
</style>
Expand All @@ -74,29 +85,44 @@
<br>for transferring data with URLs
<br>(since 1998)</p>

<div style="float: right; max-width: 10em; margin-left: 20px;">
<div class="sponsors">
<b>Top&nbsp;Sponsors</b><p>
<div style="float: right; max-width: 10em; margin-left: 40px;">
<div class="sponsors">
<b>Top&nbsp;Sponsors</b>
<a href="sponsors.html">
<img class="logo" src="pix/haxx.svg" alt="Haxx">
<img class="logo" src="pix/wolfssl.svg" alt="wolfSSL">
<img class="logo" src="pix/fastly.svg" alt="Fastly">
<img class="logo" src="pix/teamviewer.svg" alt="Teamviewer">
</a>

</div>

<div class="sidebar-box">
<img style="filter: grayscale(100%); float: right;" src="pix/user.svg" width="30%">
<a href="/support.html">
Commercial support available</a>
<div style="clear: both;"></div>
</div>

<div class="sidebar-box" style="font-size: 130%;">
Time to <a href="/donation.html">donate</a> to the curl project?
<div class="sidebar-box">
<a href="https://everything.curl.dev/">Everything curl</a> is a free ebook
about curl and libcurl
<p align="center">
<a href="https://everything.curl.dev/"><img src="pix/everything-curl.jpg"
alt="Everything curl" width="80%"></a>
</div>

<div class="sidebar-box" style="font-size: 130%;">
<a href="/support.html">Commercial support</a> available!
<div class="sidebar-box">
<img style="filter: grayscale(100%); float: right;" src="pix/cash.svg" width="40%">
<a href="/donation.html">
Sponsor curl financially</a>
<div style="clear: both;"></div>
</div>

<div class="sidebar-box">
<a href="/book.html">Everything curl</a> is a detailed and
totally free book that explains everything there is to know about
curl, libcurl and the associated project.
Video: <a href="https://youtu.be/V5vZWHP-RqU">mastering the curl command line tool</a>
<p align="center">
<a href="https://youtu.be/V5vZWHP-RqU"><img src="pix/mastering.jpg" width="80%"></a>
</div>
</div>

Expand Down Expand Up @@ -207,13 +233,6 @@
Check out the latest <a href="https://github.com/curl/curl" title="git clone
the curl code">source code from GitHub</a>.

SUBTITLE(How do you use curl?)
<p>
A more than three hours deep dive video tutoral in how to use and make the
best of curl on the command line.
<p>
<a href="https://youtu.be/V5vZWHP-RqU"><img style="border: 2px solid #808080;" src="pix/mastering.jpg" width="576" height="324"></a>

#include "_footer.html"
</body>
</html>
33 changes: 33 additions & 0 deletions pix/cash.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions pix/user.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 23ab22b

Please sign in to comment.