Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add social icons to release report #1532

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions templates/admin/library_report_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
rel="stylesheet">
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" />
<!-- TODO bring this local if we like it -->
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
<script src="{% static 'js/boost-gecko/main.062e4862.js' %}" defer></script>
Expand Down
19 changes: 15 additions & 4 deletions templates/admin/release_report_detail.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,31 @@
{% extends "admin/library_report_base.html" %}
{% load humanize avatar_tags %}
{% load static %}
{% block css %}
{{ block.super }}
<style>
{% include "includes/_css_variables.css" %}
.link-icons a:hover {
color: var(--primary-color);
}
</style>
{% endblock css %}
{% block content %}
{% with bg_color='' %}
<div>
<div class="pdf-page grid grid-cols-2 gap-x-4 items-center justify-items-center {{ bg_color }}">
<div class="flex flex-col h-full">
<div class="mb-auto flex flex-col gap-y-2">
<h1 class="flex">
<div class="flex flex-col h-full gap-y-6">
<div class="flex flex-col gap-y-2">
<h1 class="flex mb-0">
<img
class="mt-[3px]"
style="width:3.3rem; margin-right:.5rem;" src="{% static 'img/Boost_Symbol_Transparent.svg' %}"
>
Boost
</h1>
<div class="flex gap-x-12 link-icons my-4">
{% include "includes/_social_icon_links.html" %}
</div>
<div>{{ commit_count|intcomma }} commit{{ commit_count|pluralize }} up through {{ version.display_name }}</div>
<div>{{ lines_added|intcomma }} line{{ lines_added|pluralize }} added, {{ lines_removed|intcomma }} line{{ lines_removed|pluralize }} removed</div>
<div>{{ version_commit_count|intcomma }} new commit{{ version_commit_count|pluralize }} in all library repositories</div>
Expand All @@ -27,7 +39,6 @@ <h1 class="flex">
{% if removed_library_count %}
<div>{{ removed_library_count }} librar{{ removed_library_count|pluralize:"y,ies" }} removed</div>
{% endif %}
<div></div>
</div>
{% if downloads %}
<table class="p-0 m-0 w-full text-sm text-left border-0 border-separate table-auto border-spacing-0 text-slate">
Expand Down
46 changes: 46 additions & 0 deletions templates/includes/_css_variables.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
:root {
--site-light-bg-color: rgb(229, 231, 235);
--site-dark-bg-color: rgb(5, 26, 38);
--site-light-card-color: #fff;
--site-dark-card-color: rgb(23, 42, 52);
--site-light-border-color: #d1d1d1;
--site-dark-border-color: #07405f;
--site-light-text-color: rgb(49, 74, 87);
--site-dark-text-color: #ccc;
--site-dark-heading-text-color: #fff;
--site-light-heading-text-color: rgb(49, 74, 87);
--site-primary-orange: rgb(255, 159, 0);
--site-light-secondary-blue: rgb(2, 132, 199);
--site-dark-secondary-blue: rgb(125, 211, 252);
--site-light-teritary-green: rgb(14, 174, 96);
--site-dark-teritary-green: rgb(90, 213, 153);
--site-light-shadow-color: rgba(0,0,0,0.3);
--site-dark-shadow-color: transparent;
/* specific use colors */
/* header height var for docs positioning */
--header-height: 2.5rem;
}
html {
--bg-color: var(--site-light-bg-color);
--card-color: var(--site-light-card-color);
--border-color: var(--site-light-border-color);
--text-color: var(--site-light-text-color);
--header-color: var(--site-light-heading-text-color);
--primary-color: var(--site-primary-orange);
--secondary-color: var(--site-light-secondary-blue);
--teritary-color: var(--site-light-teritary-green);
--shadow-color: var(--site-light-shadow-color);
/* specific use colors */
}
html.dark {
--bg-color: var(--site-dark-bg-color);
--card-color: var(--site-dark-card-color);
--border-color: var(--site-dark-border-color);
--text-color: var(--site-dark-text-color);
--header-color: var(--site-dark-heading-text-color);
--primary-color: var(--site-primary-orange);
--secondary-color: var(--site-dark-secondary-blue);
--teritary-color: var(--site-dark-teritary-green);
--shadow-color: var(--site-dark-shadow-color);
/* specific use colors */
}
6 changes: 1 addition & 5 deletions templates/includes/_footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,7 @@
<a href="{% url 'terms-of-use' %}">Terms of Use</a>
<a href="/doc/user-guide/reporting-issues.html">Report Bug</a>
<div class="link-icons">
<a href="https://x.com/boost_libraries" target="_blank" title="X"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://bsky.app/profile/boostlibs.bsky.social" target="_blank" title="Bluesky"><i class="fa-brands fa-bluesky"></i></a>
<a href="https://mastodon.social/@boostlibs" target="_blank" title="Mastodon"><i class="fa-brands fa-mastodon"></i></a>
<a href="https://www.reddit.com/user/boostlibs/" target="_blank" title="Reddit"><i class="fa-brands fa-reddit"></i></a>
<a href="https://github.com/boostorg" target="_blank" title="Github"><i class="fa-brands fa-github"></i></a>
{% include "includes/_social_icon_links.html" %}
</div>
</div>
<div><span class="small-text">Website supported by grants from <a href="https://cppalliance.org/" target="_blank" class="text-sky-600 dark:text-sky-300 hover:text-orange dark:hover:text-orange">The C++ Alliance</a>. Proposed for <a href="https://boost.org/" target="_blank" class="text-sky-600 dark:text-sky-300 hover:text-orange dark:hover:text-orange">boost.org</a>.</span></div>
Expand Down
47 changes: 1 addition & 46 deletions templates/includes/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,52 +2,7 @@
{% load account socialaccount %}
<style>
@import url({% static 'css/fonts.css' %});
:root {
--site-light-bg-color: rgb(229, 231, 235);
--site-dark-bg-color: rgb(5, 26, 38);
--site-light-card-color: #fff;
--site-dark-card-color: rgb(23, 42, 52);
--site-light-border-color: #d1d1d1;
--site-dark-border-color: #07405f;
--site-light-text-color: rgb(49, 74, 87);
--site-dark-text-color: #ccc;
--site-dark-heading-text-color: #fff;
--site-light-heading-text-color: rgb(49, 74, 87);
--site-primary-orange: rgb(255, 159, 0);
--site-light-secondary-blue: rgb(2, 132, 199);
--site-dark-secondary-blue: rgb(125, 211, 252);
--site-light-teritary-green: rgb(14, 174, 96);
--site-dark-teritary-green: rgb(90, 213, 153);
--site-light-shadow-color: rgba(0,0,0,0.3);
--site-dark-shadow-color: transparent;
/* specific use colors */
/* header height var for docs positioning */
--header-height: 2.5rem;
}
html {
--bg-color: var(--site-light-bg-color);
--card-color: var(--site-light-card-color);
--border-color: var(--site-light-border-color);
--text-color: var(--site-light-text-color);
--header-color: var(--site-light-heading-text-color);
--primary-color: var(--site-primary-orange);
--secondary-color: var(--site-light-secondary-blue);
--teritary-color: var(--site-light-teritary-green);
--shadow-color: var(--site-light-shadow-color);
/* specific use colors */
}
html.dark {
--bg-color: var(--site-dark-bg-color);
--card-color: var(--site-dark-card-color);
--border-color: var(--site-dark-border-color);
--text-color: var(--site-dark-text-color);
--header-color: var(--site-dark-heading-text-color);
--primary-color: var(--site-primary-orange);
--secondary-color: var(--site-dark-secondary-blue);
--teritary-color: var(--site-dark-teritary-green);
--shadow-color: var(--site-dark-shadow-color);
/* specific use colors */
}
{% include "includes/_css_variables.css" %}
.header-menu-bar {
padding: 0 1rem;
height: 41px;
Expand Down
5 changes: 5 additions & 0 deletions templates/includes/_social_icon_links.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<a href="https://x.com/boost_libraries" target="_blank" title="X"><i class="fa-brands fa-x-twitter"></i></a>
<a href="https://bsky.app/profile/boostlibs.bsky.social" target="_blank" title="Bluesky"><i class="fa-brands fa-bluesky"></i></a>
<a href="https://mastodon.social/@boostlibs" target="_blank" title="Mastodon"><i class="fa-brands fa-mastodon"></i></a>
<a href="https://www.reddit.com/user/boostlibs/" target="_blank" title="Reddit"><i class="fa-brands fa-reddit"></i></a>
<a href="https://github.com/boostorg" target="_blank" title="Github"><i class="fa-brands fa-github"></i></a>
Loading