Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
5430391
Progress on home page—some components still need adjustment.
DrJfrost Mar 12, 2026
e8bdae2
Homepage designs partially done—missing component variants.
DrJfrost Mar 13, 2026
82b595b
fix color button heros and center navbar
DrJfrost Mar 13, 2026
0bec320
Improving homepage styles.
DrJfrost Mar 13, 2026
0c060c4
dark mode image integration
DrJfrost Mar 13, 2026
70b4ac6
format file
DrJfrost Mar 13, 2026
bd37c64
merge heros into homepage
DrJfrost Mar 16, 2026
40b0dfc
Fixing the homepage button positioning design
DrJfrost Mar 16, 2026
07330a4
stlye hero padding top
DrJfrost Mar 16, 2026
2babb39
responsive styles v3
DrJfrost Mar 16, 2026
2907b3e
post cards last changes view
DrJfrost Mar 16, 2026
a157fc6
fix space format
DrJfrost Mar 16, 2026
7e2061f
merge hero-components into homepage-componente
DrJfrost Mar 18, 2026
39de457
update url heros in homepage
DrJfrost Mar 18, 2026
a8920b6
merge hero-component into homepage
DrJfrost Mar 20, 2026
fbeefd0
add info hero
DrJfrost Mar 20, 2026
caedb5e
Merge branch 'develop' into homepage-componente
herzog0 Apr 2, 2026
b3a778c
refactor: make a shared template for post_card and event_card
julhoang Apr 2, 2026
0489d89
refactor: untangle several undesirablle styling dependencies related …
julhoang Apr 2, 2026
3401a57
feat: improve heading and aria for testimonial card
julhoang Apr 2, 2026
cb45367
fix: minor style issues
julhoang Apr 2, 2026
72f9e94
Merge remote-tracking branch 'origin/develop' into homepage-componente
herzog0 Apr 8, 2026
22db4bc
refactor: make a shared template for post_card and event_card
julhoang Apr 2, 2026
e5317c5
refactor: untangle several undesirablle styling dependencies related …
julhoang Apr 2, 2026
2be0cdf
feat: improve heading and aria for testimonial card
julhoang Apr 2, 2026
70fe57c
fix: minor style issues
julhoang Apr 2, 2026
ecf4848
Merge branch 'jh/refactor-post-card' into homepage-componente
herzog0 Apr 8, 2026
5adeb5a
Merge branch 'jh/refactor-post-card' into homepage-componente
herzog0 Apr 8, 2026
fff7b85
fix: improve hero cards section
herzog0 Apr 8, 2026
47fdc58
feat: add join cards
herzog0 Apr 8, 2026
1356906
feat: add start here link to join cards
herzog0 Apr 8, 2026
671fa5a
fix: hide scrollbar in testimonial cards
herzog0 Apr 9, 2026
3780bd1
feat: refactor homepage v3
herzog0 Apr 9, 2026
c29eb9e
feat: homepage desktop finished
herzog0 Apr 9, 2026
a01ac4f
fix: style fixes
herzog0 Apr 9, 2026
42c9eda
fix: card sizing in mobile
herzog0 Apr 9, 2026
2ccf163
feat: add install card
herzog0 Apr 9, 2026
02b0d61
Merge branch 'develop' into homepage-componente
herzog0 Apr 9, 2026
b957f41
fix: ui fixes
herzog0 Apr 10, 2026
db2ad58
fix: hero styles
herzog0 Apr 10, 2026
96d33a7
fix: ui fixes
herzog0 Apr 10, 2026
603ed4c
fix: allow hero components to overflow and expand in the examples page
herzog0 Apr 10, 2026
b92e3e9
fix: change homepage hero
herzog0 Apr 10, 2026
17a9da4
Merge branch 'develop' into homepage-componente
herzog0 Apr 13, 2026
461af04
fix: tablet breakpoint
herzog0 Apr 13, 2026
208f135
fix: stats card height in tablet mode
herzog0 Apr 13, 2026
8494efd
fix: add bottom border in reduced children version of events
herzog0 Apr 13, 2026
b39b29f
fix: x padding on homepage container
herzog0 Apr 13, 2026
7209143
fix: layout spacing
herzog0 Apr 14, 2026
ba3df09
fix: revert global container max-width removal
herzog0 Apr 14, 2026
46aebdc
fix: remove border shadow
herzog0 Apr 14, 2026
6e928dd
chore: remove comments
herzog0 Apr 14, 2026
f586184
fix: license card responsiveness
herzog0 Apr 14, 2026
c9e1e21
fix: tablet bottom layout
herzog0 Apr 14, 2026
087c71f
fix: license card height
herzog0 Apr 14, 2026
8023c49
fix: amount of items in cards per view
herzog0 Apr 14, 2026
68ced32
Merge remote-tracking branch 'origin/develop' into homepage-componente
herzog0 Apr 15, 2026
079afcd
fix: move v3 homepage content
herzog0 Apr 15, 2026
195408e
fix: improve responsiveness utility classes
herzog0 Apr 15, 2026
5681eed
fix: layout and padding
herzog0 Apr 15, 2026
0b0b991
fix: grid layout for tablet view
herzog0 Apr 16, 2026
5dfec0e
chore: change strategy to css utility classes for list resizing
herzog0 Apr 16, 2026
b13feed
fix: stats button padding
herzog0 Apr 16, 2026
9513172
fix: remove unnecessary import
herzog0 Apr 16, 2026
25c41c4
fix: remove min height
herzog0 Apr 16, 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
107 changes: 106 additions & 1 deletion ak/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,26 @@
from django.views.generic import TemplateView

from core.calendar import extract_calendar_events, events_by_month, get_calendar
from core.mixins import V3Mixin
from libraries.constants import LATEST_RELEASE_URL_PATH_STR
from libraries.mixins import ContributorMixin
from news.models import Entry
from testimonials.models import Testimonial
from core.mock_data import SharedResources


logger = structlog.get_logger()


class HomepageView(ContributorMixin, TemplateView):
class HomepageView(V3Mixin, ContributorMixin, TemplateView):
"""
Define all the pieces that will be displayed on the home page
"""

template_name = "homepage.html"

v3_template_name = "v3/homepage.html"

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["entries"] = Entry.objects.published().order_by("-publish_at")[:3]
Expand Down Expand Up @@ -67,6 +71,107 @@ def get_events(self):

return dict(sorted_events)

def get_v3_context_data(self, **kwargs):
ctx = super().get_context_data(**kwargs)
ctx["install_card_pkg_managers"] = SharedResources.install_card_pkg_managers
ctx["install_card_system_install"] = SharedResources.install_card_system_install

demo_cards = [
{
"title": "Performant",
"description": "Optimized for production at any scale, Boost outperforms many standard benchmarks.",
"icon_name": "bullseye-arrow",
},
{
"title": "Peer-reviewed",
"description": "Well tested by members of the C++ standards committee.",
"icon_name": "get-help",
},
{
"title": "Portable",
"description": "Works across all platforms, compilers, and C++ standards.",
"icon_name": "link",
},
{
"title": "Innovative",
"description": "Over 40 Boost libraries have become part of the C++ standard over the past 25 years.",
"icon_name": "bullseye-arrow",
},
{
"title": "Community-powered",
"description": "Contributing to Boost builds credibility, sharpens skills, and advances careers.",
"icon_name": "human",
},
{
"title": "Known worldwide",
"description": "Used in countless projects, you've probably encountered Boost without realizing it.",
"icon_name": "link",
},
{
"title": "Free",
"description": "Open source now and always, thanks to the Boost Software License.",
"icon_name": "check",
},
{
"title": "Production-ready",
"description": "Battle-tested in critical systems across industries around the globe.",
"icon_name": "bullseye-arrow",
},
]

ctx["library_cards"] = demo_cards
ctx["why_boost_cards"] = demo_cards[:8]
ctx["calendar_card"] = {
"title": "Boost is released three times a year",
"text": "Each release has updates to existing libraries, and any new libraries that have passed the rigorous acceptance process.",
"primary_button_url": "www.example.com",
"primary_button_label": "View the Release Calendar",
"secondary_button_url": "www.example.com",
"secondary_button_label": "Secondary Button",
"image": f"{settings.STATIC_URL}/img/v3/demo_page/Calendar.png",
}
ctx["info_card"] = {
"title": "How we got here",
"text": "Since 1998, Boost has been where C++ innovation happens. What started with three developers has grown into the foundation of modern C++ development.",
"primary_button_url": "www.example.com",
"primary_button_label": "Explore Our History",
}
ctx["posts_from_the_boost_community"] = {
"heading": "Posts from the Boost Community",
"primary_cta_label": "View all posts",
"primary_cta_url": "#",
"variant": "card",
"theme": "teal",
"items": SharedResources.demo_posts[:5],
}
ctx["join_developers_building_the_future_of_cpp"] = {
"items": SharedResources.demo_join_community_links[:5]
}
ctx["boost_community_data"] = {
"heading": "The Boost community",
"view_all_url": "#",
"view_all_label": "Explore the community",
"posts": SharedResources.demo_posts,
}
ctx["popular_terms"] = SharedResources.popular_terms
ctx["demo_events_with_links"] = SharedResources.demo_events_with_links[:4]
ctx["code_demo_hello"] = SharedResources.code_demo_hello
ctx["stats_in_numbers"] = {
"example_library_commits_bars": SharedResources.example_library_commits_bars
}
ctx["testimonial_data"] = {"testimonials": SharedResources.testimonials}

ctx["library_intro"] = SharedResources.library_intro

ctx["build_anything_with_boost"] = SharedResources.build_anything_with_boost

ctx["hero_legacy_image_url_light"] = SharedResources.hero_legacy_image_url_light
ctx["hero_legacy_image_url_dark"] = SharedResources.hero_legacy_image_url_dark
ctx["hero_image_url"] = SharedResources.hero_image_url
ctx["hero_image_url_light"] = SharedResources.hero_image_url_light
ctx["hero_image_url_dark"] = SharedResources.hero_image_url_dark
return ctx


class ForbiddenView(View):
"""
Expand Down
Loading
Loading