WebsiteBench / tasks /leetcode /solution /site /implementation /clone /templates /family_studyplan.html
Download tasks/leetcode/solution/site/implementation/clone/templates/family_studyplan.html from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 6.81 kB
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/leetcode/solution/site/implementation/clone/templates/family_studyplan.html
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/leetcode/solution/site/implementation/clone/templates/family_studyplan.html
-
curl -L -o family_studyplan.html https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/leetcode/solution/site/implementation/clone/templates/family_studyplan.html
6.81 kB
| {% extends "family_base.html" %} | |
| {% import "_family_ui.html" as fam %} | |
| {# Study-plan detail. | |
| studyplan-top-interview-150-desktop: library rail, graph-paper hero with the | |
| plan art on the left of an eyebrow / title / Start stack, then a 660px | |
| column of bordered section cards beside a 280px Summary/Award/Related | |
| column. The mobile capture drops the rail, the art and the aside, centres | |
| the hero and keeps the same bordered section cards with the difficulty | |
| right-aligned in every row. #} | |
| {% block main %} | |
| <div class="lc-shell"> | |
| {{ fam.rail(member, 'studyplan') }} | |
| <div> | |
| <header class="lc-plan__hero"> | |
| <div class="lc-plan__herobar"> | |
| <a class="lc-plan__back" href="/studyplan/" aria-label="All study plans"> | |
| <svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="M10 3 5 8l5 5" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg> | |
| </a> | |
| <a class="lc-plan__share" href="{{ plan.share_href }}" aria-label="Open this plan in the problem set"> | |
| <svg viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" focusable="false"><path d="M8 10V2m0 0L5.4 4.6M8 2l2.6 2.6" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 8.5V13a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V8.5" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"/></svg> | |
| </a> | |
| </div> | |
| <div class="lc-plan__identity"> | |
| <svg class="lc-plan__art" viewBox="0 0 200 150" width="180" height="135" role="img" aria-label="{{ plan.title }} plan badge"> | |
| <path d="M14 12h150a10 10 0 0 1 10 10v70a10 10 0 0 1-10 10H74l-30 26v-26H14A10 10 0 0 1 4 92V22A10 10 0 0 1 14 12Z" | |
| fill="none" stroke="url(#planStroke)" stroke-width="9" stroke-linejoin="round"/> | |
| <text x="89" y="72" text-anchor="middle" font-size="44" font-weight="700" fill="url(#planStroke)">{{ plan.art_word }}</text> | |
| <defs> | |
| <linearGradient id="planStroke" x1="0" y1="0" x2="1" y2="1"> | |
| <stop offset="0%" stop-color="rgb(28, 205, 190)"/> | |
| <stop offset="100%" stop-color="rgb(45, 122, 234)"/> | |
| </linearGradient> | |
| </defs> | |
| </svg> | |
| <div> | |
| <p class="lc-plan__eyebrow"> | |
| <svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true" focusable="false"><circle cx="8" cy="8" r="6" fill="none" stroke="currentColor" stroke-width="1.3"/><path d="m5.5 10.5 2-4.5 4.5-2-2 4.5Z" fill="currentColor"/></svg> | |
| {{ plan.subtitle }} | |
| </p> | |
| <h1 class="lc-plan__title">{{ plan.title }}</h1> | |
| <a class="lc-plan__start" href="{{ plan.start_href }}">{{ fam.icon_play() }}Start</a> | |
| </div> | |
| </div> | |
| </header> | |
| <div class="lc-plan__main"> | |
| <p class="lc-plan__tagbar">{{ plan.entry_note }}</p> | |
| <div class="lc-plan__groups"> | |
| {% for group in plan.groups %} | |
| <section class="lc-plan__group"> | |
| <h2 class="lc-plan__groupname">{{ group.name }}</h2> | |
| <ul class="lc-plan__rows"> | |
| {% for problem in group.problems %} | |
| <li> | |
| {% if problem.href %} | |
| <a class="lc-plan__row" href="{{ problem.href }}"> | |
| <span class="lc-plan__mark{% if problem.solved %} lc-plan__mark--solved{% endif %}" aria-hidden="true"></span> | |
| <span class="lc-plan__name">{{ problem.title }}</span> | |
| <span class="lc-plan__solution">{{ fam.icon_doc() }}<span>Solution</span></span> | |
| <span class="lc-plan__diff lc-plan__diff--{{ problem.difficulty|lower|default('none', true) }}">{{ problem.difficulty|default('—', true) }}</span> | |
| </a> | |
| {% else %} | |
| <div class="lc-plan__row"> | |
| <span class="lc-plan__mark" aria-hidden="true"></span> | |
| <span class="lc-plan__name">{{ problem.title }}</span> | |
| <span class="lc-plan__solution"><span class="lc-badge lc-badge--plain">Outside the 1,000-problem sample</span></span> | |
| <span class="lc-plan__diff lc-plan__diff--{{ problem.difficulty|lower|default('none', true) }}">{{ problem.difficulty|default('—', true) }}</span> | |
| </div> | |
| {% endif %} | |
| </li> | |
| {% endfor %} | |
| </ul> | |
| </section> | |
| {% endfor %} | |
| {% if plan.sample_rows %} | |
| <section class="lc-plan__group"> | |
| <h2 class="lc-plan__groupname">{{ plan.sample_title }}</h2> | |
| <ul class="lc-plan__rows"> | |
| {% for row in plan.sample_rows %} | |
| <li> | |
| <a class="lc-plan__row" href="{{ row.href }}"> | |
| <span class="lc-plan__mark" aria-hidden="true"></span> | |
| <span class="lc-plan__name">{{ row.title }}</span> | |
| <span class="lc-plan__solution">{{ fam.icon_doc() }}<span>Solution</span></span> | |
| <span class="lc-plan__diff lc-plan__diff--{{ row.difficulty|lower }}">{{ row.difficulty_label }}</span> | |
| </a> | |
| </li> | |
| {% endfor %} | |
| </ul> | |
| </section> | |
| {% endif %} | |
| </div> | |
| <aside class="lc-plan__aside" aria-label="Plan summary"> | |
| <section> | |
| <h2 class="lc-plan__asidetitle">Summary</h2> | |
| <ul class="lc-plan__summary"> | |
| {% for line in plan.summary %}<li>{{ line }}</li>{% endfor %} | |
| </ul> | |
| </section> | |
| <section> | |
| <h2 class="lc-plan__asidetitle">Award</h2> | |
| <div class="lc-plan__award"> | |
| <span class="lc-plan__tile" style="background: rgb(26, 26, 26);" aria-hidden="true">{{ plan.art_word }}</span> | |
| <div> | |
| <p class="lc-plan__awardname">{{ plan.title }}</p> | |
| <p class="lc-plan__awardnote">{{ plan.award_note }}</p> | |
| </div> | |
| </div> | |
| </section> | |
| <section> | |
| <h2 class="lc-plan__asidetitle">Related</h2> | |
| <ul class="lc-plan__related"> | |
| {% for item in plan.related %} | |
| <li> | |
| <a class="lc-plan__relatedlink" href="{{ item.href }}"> | |
| <span class="lc-plan__tile" style="background: {{ item.tint }};" aria-hidden="true">{{ item.mark }}</span> | |
| <span> | |
| <span class="lc-plan__relatedname">{{ item.name }}</span> | |
| <span class="lc-plan__relatednote">{{ item.note }}</span> | |
| </span> | |
| </a> | |
| </li> | |
| {% endfor %} | |
| </ul> | |
| </section> | |
| </aside> | |
| </div> | |
| <div class="lc-body"> | |
| {{ fam.boundary(boundary) }} | |
| {{ fam.provenance(provenance) }} | |
| </div> | |
| </div> | |
| </div> | |
| {% endblock %} | |