Skip to content
Merged

V3 #2

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
dec3b8a
WIP
fromagge Feb 27, 2026
6ca02b2
Merge branch 'v3' into feat/carousel-card
fromagge Feb 27, 2026
aa5d85e
fix with v3
fromagge Feb 27, 2026
7db9bc8
feat: add cards carousel component with dynamic content and styling u…
fromagge Feb 27, 2026
bff0e38
fix: nit
fromagge Feb 27, 2026
0a66f50
fix: more nits
fromagge Feb 27, 2026
80e98c5
feat: implement infinite looping and autoplay functionality for carou…
fromagge Feb 27, 2026
a956030
Fixing dark themes in cards and code blocks
DrJfrost Feb 27, 2026
4217529
correcting styles, commands and CSS properties
DrJfrost Feb 27, 2026
9416a39
organizing button styles for event cards
DrJfrost Feb 28, 2026
c88eb15
adding data and styles to code block
DrJfrost Feb 28, 2026
41cfa7c
Adding logic for highlighting
DrJfrost Mar 1, 2026
e137026
Correction of category tags for tests and adaptation of code block st…
DrJfrost Mar 1, 2026
653ad43
assigning the main button to code blocks
DrJfrost Mar 1, 2026
5109035
improvement of event styles and content
DrJfrost Mar 2, 2026
ef7bb3e
finalizing card styles
DrJfrost Mar 2, 2026
b70e471
Merge branch 'v3' into julian-release-v3
DrJfrost Mar 2, 2026
91bc3c4
refactor: replace hardcoded class selectors with data attributes in c…
fromagge Mar 2, 2026
6f25975
Merge branch 'v3' into feat/carousel-card
fromagge Mar 2, 2026
a57e565
Merge branch 'v3' into feat/carousel-card
fromagge Mar 2, 2026
7315a87
fix lint
fromagge Mar 2, 2026
ad52eab
removing unnecessary naming styles and adding color copying errors an…
DrJfrost Mar 2, 2026
87ed2d0
icon size dimensions
DrJfrost Mar 2, 2026
0758bf4
delete maxWitdh content card
DrJfrost Mar 2, 2026
7f94f03
Correcting C++ styles and code block corrections.
DrJfrost Mar 2, 2026
d569b74
Merge pull request #2115 from boostorg/julian-release-v3
DrJfrost Mar 2, 2026
8e4d216
Merge branch 'v3' into feat/carousel-card
fromagge Mar 3, 2026
7119361
fix nit
fromagge Mar 3, 2026
4b830b6
Merge pull request #2113 from boostorg/feat/carousel-card
fromagge Mar 3, 2026
87c52d2
Story: Basic Card Component (#2107)
jlchilders11 Mar 3, 2026
25d04fb
Story: Implement Thread Archive Card (#2118)
jlchilders11 Mar 5, 2026
5374a04
Bug: Correct styling on thread card header
jlchilders11 Mar 5, 2026
e395a19
Merge pull request #2124 from boostorg/jc/fix-thread-card-header
DrJfrost Mar 5, 2026
c701fc4
Story: Add Testimonial Card Component (#2103)
jlchilders11 Mar 5, 2026
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
Binary file added celerybeat-schedule-shm
Binary file not shown.
Binary file added celerybeat-schedule-wal
Binary file not shown.
164 changes: 162 additions & 2 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,7 +1043,46 @@ class V3ComponentDemoView(TemplateView):
template_name = "base.html"

def get_context_data(self, **kwargs):
from libraries.models import LibraryVersion
from libraries.utils import build_library_intro_context

CODE_DEMO_BEAST = """int main()
{
net::io_context ioc;
tcp::resolver resolver(ioc);
beast::tcp_stream stream(ioc);

stream.connect(resolver.resolve("example.com", "80"));

http::request<http::empty_body> req{http::verb::get, "/", 11};
req.set(http::field::host, "example.com");

http::write(stream, req);

beast::flat_buffer buffer;
http::response<http::string_body> res;
http::read(stream, buffer, res);

std::cout << res << std::endl;
}"""

CODE_DEMO_HELLO = """#include <iostream>
int main()
{
std::cout << "Hello, Boost.";
}"""

CODE_DEMO_INSTALL = """brew install openssl

export OPENSSL_ROOT=$(brew --prefix openssl)

# Install bjam tool user config: https://www.bfgroup.xyz/b2/manual/release/index.html
cp ./libs/beast/tools/user-config.jam $HOME"""

context = super().get_context_data(**kwargs)
context["code_demo_beast"] = CODE_DEMO_BEAST
context["code_demo_hello"] = CODE_DEMO_HELLO
context["code_demo_install"] = CODE_DEMO_INSTALL
context["popular_terms"] = [
{"label": "Networking"},
{"label": "Math"},
Expand All @@ -1070,8 +1109,129 @@ def get_context_data(self, **kwargs):
{"value": "networking", "label": "Networking"},
]
)
from libraries.models import LibraryVersion
from libraries.utils import build_library_intro_context
context["basic_card_data"] = {
"title": "Found a Bug?",
"text": "We rely on developers like you to keep Boost solid. Here's how to report issues that help the whole comm",
"primary_button_url": "www.example.com",
"primary_button_label": "Primary Button",
"secondary_button_url": "www.example.com",
"secondary_button_label": "Secondary Button",
}

context["demo_cards_carousel_cards"] = [
{
"title": "Get help",
"description": "Tap into quick answers, networking, and chat with 24,000+ members.",
"icon_name": "info-box",
"cta_label": "Start here",
"cta_href": reverse("community"),
},
{
"title": "Documentation",
"description": "Browse library docs, examples, and release notes in one place.",
"icon_name": "link",
"cta_label": "View docs",
"cta_href": reverse("docs"),
},
{
"title": "Community",
"description": "Mailing lists, GitHub, and community guidelines for contributors.",
"icon_name": "human",
"cta_label": "Join",
"cta_href": reverse("community"),
},
{
"title": "Releases",
"description": "Latest releases, download links, and release notes.",
"icon_name": "info-box",
"cta_label": "Download",
"cta_href": reverse("releases-most-recent"),
},
{
"title": "Libraries",
"description": "Explore the full catalog of Boost C++ libraries with docs and metadata.",
"icon_name": "link",
"cta_label": "Browse libraries",
"cta_href": reverse("libraries"),
},
{
"title": "News",
"description": "Blog posts, announcements, and community news from the Boost project.",
"icon_name": "device-tv",
"cta_label": "Read news",
"cta_href": reverse("news"),
},
{
"title": "Getting started",
"description": "Step-by-step guides to build and use Boost in your projects.",
"icon_name": "bullseye-arrow",
"cta_label": "Get started",
"cta_href": reverse("getting-started"),
},
{
"title": "Resources",
"description": "Learning resources, books, and other materials for Boost users.",
"icon_name": "get-help",
"cta_label": "View resources",
"cta_href": reverse("resources"),
},
{
"title": "Calendar",
"description": "Community events, meetings, and review schedule.",
"icon_name": "info-box",
"cta_label": "View calendar",
"cta_href": reverse("calendar"),
},
{
"title": "Donate",
"description": "Support the Boost Software Foundation and open-source C++.",
"icon_name": "human",
"cta_label": "Donate",
"cta_href": reverse("donate"),
},
]

context["testimonial_data"] = {
"heading": "What Engineers are saying",
"testimonials": [
{
"quote": "I use Boost daily. I absolutely love it. It's wonderful. I could not do my job w/o it. Much of it is in the new C++11 standard too.",
"author": {
"name": "Name Surname",
"avatar_url": "/static/img/v3/demo_page/Avatar.png",
"role": "Contributor",
"role_badge": "/static/img/v3/demo_page/Badge.svg",
},
},
{
"quote": "I use Boost daily. I absolutely love it. It's wonderful. I could not do my job w/o it. Much of it is in the new C++11 standard too.",
"author": {
"name": "Name Surname",
"avatar_url": "/static/img/v3/demo_page/Avatar.png",
"role": "Contributor",
"role_badge": "/static/img/v3/demo_page/Badge.svg",
},
},
{
"quote": "I use Boost daily. I absolutely love it. It's wonderful. I could not do my job w/o it. Much of it is in the new C++11 standard too.",
"author": {
"name": "Name Surname",
"avatar_url": "/static/img/v3/demo_page/Avatar.png",
"role": "Contributor",
"role_badge": "/static/img/v3/demo_page/Badge.svg",
},
},
{
"quote": "I use Boost daily. I absolutely love it. It's wonderful. I could not do my job w/o it. Much of it is in the new C++11 standard too.",
"author": {
"name": "Name Surname",
"avatar_url": "/static/img/v3/demo_page/Avatar.png",
"role": "Contributor",
"role_badge": "/static/img/v3/demo_page/Badge.svg",
},
},
],
}

latest = Version.objects.most_recent()
if latest:
Expand Down
6 changes: 6 additions & 0 deletions static/css/v3/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
min-width: 128px;
}

.btn-row>.btn-flex {
flex: 1 0 0;
display: flex;
min-width: 128px;
}

.btn-primary {
background-color: var(--color-button-secondary, #fff);
border-color: var(--color-stroke-strong, #05081640);
Expand Down
63 changes: 63 additions & 0 deletions static/css/v3/card.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/*
Styles for the basic card, as well as some basic structural members for any children based off the basic card

card - basic shared styling and layout for cards
card__column - flex column for material in the card
card__center - Centers its children inside the flex parent
card__title - Styles the material bolded for title presentation
card__hr - a Horizontal rule for separating the card and being dark mode responsive

*/

.card {
/*Layout*/
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-large, 16px);
/*Style*/
width: 100%;
border-radius: var(--border-radius-xl);
border: 1px solid var(--color-stroke-weak, rgba(5, 8, 22, 0.10));
background: var(--color-surface-weak, #FFF);
}

.basic-card {
max-width: 458px;
}

.card .btn-row {
width: 100%;
}

.card__column {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: var(--space-large, 16px);
}

.card__header {
align-self: stretch;
display: flex;
padding: 0 var(--space-large, 1rem);
}

.card__title {
flex: 1 0 0;
color: var(--color-text-primary, #050816);
font-family: var(--font-display, "Mona Sans Display SemiCondensed");
font-size: var(--font-size-large, 24px);
font-style: normal;
font-weight: var(--font-weight-medium);
line-height: var(--line-height-tight);
letter-spacing: var(--letter-spacing-display-regular);
}

.card__hr {
width: 100%;
height: 1px;
background: var(--color-stroke-weak, rgba(5, 8, 22, 0.10));
border: none;
margin: 0;
}
2 changes: 1 addition & 1 deletion static/css/v3/carousel-buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
width: 44px;
height: 24px;
border-radius: 8px;
background: var(--color-button-primary, #EFEFF1);
background: var(--color-surface-strong, #EFEFF1);
}

.carousel-buttons .btn-carousel {
Expand Down
Loading