Skip to content

Commit 2f0b0f6

Browse files
committed
PR feedback: update demo content, remove extra comments
1 parent 20c5bd7 commit 2f0b0f6

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

core/views.py

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -310,98 +310,91 @@ def get_v3_context_data(self, **kwargs):
310310
],
311311
"url": "https://www.example.com",
312312
"label": "Learn more about Boost",
313-
"image_src": f"{ settings.STATIC_URL}img/v3/learn-page/Learn_Octopus.png",
313+
"image_src": f"{ settings.STATIC_URL}img/v3/examples/Learn_Octopus.png",
314314
"mobile_image_src": f"{ settings.STATIC_URL }/img/v3/examples/Octopus_Mobile.png",
315315
},
316316
]
317317

318-
example_card = {
319-
"title": "Found a Bug?",
320-
"text": "We rely on developers like you to keep Boost solid. Here's how to report issues that help the whole comm",
321-
"primary_button_url": "www.example.com",
322-
"primary_button_label": "Primary Button",
323-
"secondary_button_url": "www.example.com",
324-
"secondary_button_label": "Secondary Button",
325-
"image": f"{ settings.STATIC_URL }/img/v3/demo_page/Calendar.png",
326-
}
327-
328318
demo_cards = [
329319
{
330320
"title": "Get help",
331321
"description": "Tap into quick answers, networking, and chat with 24,000+ members.",
332-
"icon_name": "info-box",
333322
"cta_label": "Start here",
334323
"cta_href": reverse("community"),
335324
},
336325
{
337326
"title": "Documentation",
338327
"description": "Browse library docs, examples, and release notes in one place.",
339-
"icon_name": "link",
340328
"cta_label": "View docs",
341329
"cta_href": reverse("docs"),
342330
},
343331
{
344332
"title": "Community",
345333
"description": "Mailing lists, GitHub, and community guidelines for contributors.",
346-
"icon_name": "human",
347334
"cta_label": "Join",
348335
"cta_href": reverse("community"),
349336
},
350337
{
351338
"title": "Releases",
352339
"description": "Latest releases, download links, and release notes.",
353-
"icon_name": "info-box",
354340
"cta_label": "Download",
355341
"cta_href": reverse("releases-most-recent"),
356342
},
357343
{
358344
"title": "Libraries",
359345
"description": "Explore the full catalog of Boost C++ libraries with docs and metadata.",
360-
"icon_name": "link",
361346
"cta_label": "Browse libraries",
362347
"cta_href": reverse("libraries"),
363348
},
364349
{
365350
"title": "News",
366351
"description": "Blog posts, announcements, and community news from the Boost project.",
367-
"icon_name": "device-tv",
368352
"cta_label": "Read news",
369353
"cta_href": reverse("news"),
370354
},
371355
{
372356
"title": "Getting started",
373357
"description": "Step-by-step guides to build and use Boost in your projects.",
374-
"icon_name": "bullseye-arrow",
375358
"cta_label": "Get started",
376359
"cta_href": reverse("getting-started"),
377360
},
378361
{
379362
"title": "Resources",
380363
"description": "Learning resources, books, and other materials for Boost users.",
381-
"icon_name": "get-help",
382364
"cta_label": "View resources",
383365
"cta_href": reverse("resources"),
384366
},
385367
{
386368
"title": "Calendar",
387369
"description": "Community events, meetings, and review schedule.",
388-
"icon_name": "info-box",
389370
"cta_label": "View calendar",
390371
"cta_href": reverse("calendar"),
391372
},
392373
{
393374
"title": "Donate",
394375
"description": "Support the Boost Software Foundation and open-source C++.",
395-
"icon_name": "human",
396376
"cta_label": "Donate",
397377
"cta_href": reverse("donate"),
398378
},
399379
]
400380

401381
ctx["library_cards"] = demo_cards
402382
ctx["why_boost_cards"] = demo_cards[:6]
403-
ctx["calendar_card"] = example_card
404-
ctx["info_card"] = example_card
383+
ctx["calendar_card"] = {
384+
"title": "Boost is released three times a year",
385+
"text": "Each release has updates to existing libraries, and any new libraries that have passed the rigorous acceptance process.",
386+
"primary_button_url": "www.example.com",
387+
"primary_button_label": "View the Release Calendar",
388+
"secondary_button_url": "www.example.com",
389+
"secondary_button_label": "Secondary Button",
390+
"image": f"{ settings.STATIC_URL }/img/v3/demo_page/Calendar.png",
391+
}
392+
ctx["info_card"] = {
393+
"title": "How we got here",
394+
"text": "Since 1998, Boost has been where C++ innovation happens. What started with three developers has grown into the foundation of modern C++ development.",
395+
"primary_button_url": "www.example.com",
396+
"primary_button_label": "Explore Our History",
397+
}
405398
ctx["post_cards_data"] = {
406399
"heading": "Posts from the Boost Community",
407400
"view_all_url": "#",

static/css/v3/learn-cards.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,19 @@
4545
.learn-card__title {
4646
color: var(--color-text-primary);
4747

48-
/* Display/Desktop/Medium/Large */
4948
font-family: var(--font-display);
5049
font-size: var(--font-size-large);
5150
font-weight: var(--font-weight-medium);
5251
line-height: var(--line-height-tight);
53-
/* 24px */
5452
letter-spacing: -0.24px;
5553
}
5654

5755
.learn-card__text {
5856
color: var(--color-text-secondary);
5957

60-
/* Sans/Desktop/Regular/Base */
6158
font-family: var(--font-sans);
6259
font-size: var(--font-size-base);
6360
font-weight: var(--font-weight-regular);
64-
/* 19.2px */
6561
letter-spacing: -0.16px;
6662
}
6763

@@ -80,15 +76,12 @@
8076
font-size: var(--font-size-small);
8177
font-weight: var(--font-weight-medium);
8278
line-height: 124%;
83-
/* 17.36px */
8479
letter-spacing: -0.14px;
8580
text-decoration-line: underline;
8681
text-decoration-style: solid;
8782
text-decoration-skip-ink: auto;
8883
text-decoration-thickness: 7.5%;
89-
/* 1.05px */
9084
text-underline-offset: 15.2%;
91-
/* 2.128px */
9285
text-underline-position: from-font;
9386
}
9487

-180 KB
Binary file not shown.

0 commit comments

Comments
 (0)