Skip to content

Commit

Permalink
Добавляет деньрожденное промо (#1207)
Browse files Browse the repository at this point in the history
  • Loading branch information
skorobaeus authored Oct 12, 2023
1 parent 2907d06 commit 6c58b3c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
42 changes: 42 additions & 0 deletions src/includes/blocks/promo-b-day.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{% macro promoBDay(color) %}
<div class="intro__pitch promo" style="border: 3px solid hsl({{ color }})">
<h2 class="intro__moto font-theme--code">🎂 Доке 2 года!</h2>
<p class="intro__description">Разгадывайте кроссворд по фронтенду и забирайте подарки.</p>
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 357 48" style="width: 75%; margin: auto;">
<g stroke="#C56FFF" clip-path="url(#a)">
<g style="mix-blend-mode:difference">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M168.159 27.2382c-19.718-1.8169-30.034-5.1327-47.118-15.144 15.4-19.91284 46.203-10.01266 47.118 15.144Z"/>
<path stroke-linecap="round" stroke-width="1.5" d="M167.755 21.4573c22.537 10.7508 17.237 25.483-7.344 21.0898-16.832-3.0084-26.073-5.9023-41.996-13.498-22.5377-10.7508-18.262-25.81217 6.319-21.41896"/>
<path stroke-linecap="round" stroke-width="1.5" d="M160.331 42.804c-13.271 7.0357-35.054.0347-41.741-13.4157"/>
<circle cx="1.88285" cy="1.88285" r="1.13285" stroke-width="1.5" transform="scale(-1 1) rotate(-17.81773 22.12172312 471.371856)"/>
<circle cx="1.88285" cy="1.88285" r="1.13285" stroke-width="1.5" transform="scale(-1 1) rotate(-17.81773 26.96781224 522.64949228)"/>
<circle cx="1.88285" cy="1.88285" r="1.13285" stroke-width="1.5" transform="scale(-1 1) rotate(-17.81773 21.74143257 569.88409255)"/>
<circle cx="1.88285" cy="1.88285" r="1.13285" stroke-width="1.5" transform="scale(-1 1) rotate(-17.81773 11.08519127 421.0389362)"/>
<circle cx="1.88285" cy="1.88285" r="1.13285" stroke-width="1.5" transform="scale(-1 1) rotate(-17.81773 -8.38358669 377.69822242)"/>
<circle cx="1.72627" cy="1.72627" r=".976269" stroke-width="1.5" transform="scale(1 -1) rotate(-25.96104 -15.6079402 -131.5213083)"/>
<circle cx="1.72627" cy="1.72627" r=".976269" stroke-width="1.5" transform="matrix(.899092 .43776 .43776 -.899092 352 20.104)"/>
<circle cx="3.02097" cy="3.02097" r="2.27097" stroke-width="1.5" transform="matrix(.899092 .43776 .43776 -.899092 47.9998 28.4323)"/>
<path fill="#C56FFF" stroke-width=".339802" d="m140.329 9.42201-2.353 2.67549c0 .0002-.001.0003-.001.0005-.162.1868-.391.2982-.622.2244-.302-.0961-.448-.4133-.359-.6942.03-.0921.095-.1815.141-.2434.002-.0034.004-.0066.007-.0098l.005-.007.006-.0065 3.088-3.43217.001-.00107c.158-.17285.373-.28559.628-.20427.112.03561.208.09553.278.19428.068.09462.1.20968.117.33554V8.2538v.00215l.53 4.58635.001.0087.001.0086v.0122c.001.0767.002.1875-.027.2796-.09.2808-.393.4546-.694.3584-.231-.0737-.354-.2973-.378-.5433v-.0007l-.369-3.54379Zm6.396 8.67999c-.032.1017-.087.1863-.162.2498-.075.0629-.162.098-.251.1145-.172.0319-.364-.0036-.537-.0587-.874-.2787-1.26-.9453-1.508-1.6116-.588.3997-1.289.7194-2.163.4408-.172-.0552-.35-.1374-.471-.2631-.063-.0648-.114-.144-.139-.2386-.024-.0954-.02-.1957.013-.2975.084-.2637.372-.447.677-.3496.047.0151.106.0416.155.0636.003.0015.007.0031.01.0046.058.0258.105.0465.139.0575.145.0463.366.0058.629-.1098.207-.0913.416-.2186.59-.3421-.166-.3606-.328-.7621-.425-1.1743-.108-.4614-.137-.9472.01-1.4096.343-1.0753 1.408-1.5651 2.516-1.2117 1.107.3533 1.692 1.369 1.349 2.4443-.148.4623-.453.8416-.808 1.1551-.318.2801-.682.5137-1.026.7115.07.2015.167.4261.283.6207.147.2462.303.4072.449.4535.034.011.084.0213.146.0335.004.0008.008.0015.011.0022.053.0103.116.0228.163.0379.306.0974.434.4133.35.6771Zm5.049-5.0297-2.353 2.6755c-.001.0001-.001.0003-.001.0005-.162.1867-.391.2981-.622.2244-.302-.0961-.448-.4134-.359-.6942.03-.0921.095-.1815.14-.2434.003-.0034.005-.0067.008-.0099l.005-.007.005-.0064 3.089-3.4322.001-.0011c.158-.1728.373-.2856.628-.2042.112.0356.208.0955.278.1942.068.0947.1.2097.116.3356l.001.0021.53 4.5864.001.0086v.0087c0 .004 0 .008.001.0122.001.0767.002.1875-.027.2795-.09.2809-.393.4546-.694.3585-.232-.0737-.354-.2973-.378-.5433v-.0007l-.369-3.5438Z"/>
</g>
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M243.869 24.9347c-14.572 0-17.934-3.3628-17.934-17.9347 0 14.5719-3.363 17.9347-17.935 17.9347 14.572 0 17.935 3.3627 17.935 17.9347 0-14.572 3.362-17.9347 17.934-17.9347Z" style="mix-blend-mode:difference"/>
<circle cx="5" cy="5" r="4.25" stroke-width="1.5" style="mix-blend-mode:difference" transform="scale(-1 1) rotate(42.04325 -137.64181784 -322.5419667)"/>
<circle cx="2" cy="2" r="1.25" stroke-width="1.5" style="mix-blend-mode:difference" transform="matrix(-.742639 .669691 .669691 .742639 286.97 13)"/>
<circle cx="3.5" cy="3.5" r="2.75" stroke-width="1.5" style="mix-blend-mode:difference" transform="scale(-1 1) rotate(42.04325 -151.25499545 -333.74490613)"/>
<circle cx="5" cy="5" r="4.25" stroke-width="1.5" style="mix-blend-mode:difference" transform="scale(1 -1) rotate(17.28944 149.51394295 219.43613285)"/>
<circle cx="2" cy="2" r="1.25" stroke-width="1.5" style="mix-blend-mode:difference" transform="matrix(.918172 .396181 .396181 -.918172 0 15.2396)"/>
<circle cx="3.5" cy="3.5" r="2.75" stroke-width="1.5" style="mix-blend-mode:difference" transform="scale(1 -1) rotate(17.28944 261.63766888 1084.31742285)"/>
</g>
<defs>
<clipPath id="a">
<path fill="#fff" d="M0 0h357v48H0z"/>
</clipPath>
</defs>
</svg>
<div class="intro__footer">
<div class="intro__link">
🗞️
<a class="link" href="https://birthday.doka.guide/2023/">Разгадать кроссворд!</a>
</div>
</div>
</div>
{% endmacro %}
4 changes: 2 additions & 2 deletions src/views/index.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% from "blocks/header.njk" import header with context %}
{% from "blocks/footer.njk" import footer with context %}
{% from "blocks/promo-default.njk" import promoDefault with context %}
{% from "blocks/promo-b-day.njk" import promoBDay with context %}

{% set isLogoContrastColor = hasCategory %}

Expand All @@ -13,7 +13,7 @@
<div class="container">
<div class="intro">
<h1 class="visually-hidden">Дока</h1>
{{ promoDefault("0 100% 100%") }}
{{ promoBDay("275.83deg 100% 71.76%") }}
<div class="intro__pitch intro__pitch--partner">
<a target="_blank" rel="nofollow" href="https://practicum.yandex.ru/programming-upskilling/?utm_source=pr&utm_medium=content&utm_campaign=pr_content_programming-upskilling_doka">
<img class="intro__logo intro__logo--invertible" src="/images/partners/practicum.svg" alt="Практикум">
Expand Down

0 comments on commit 6c58b3c

Please sign in to comment.