This is an automated email from the ASF dual-hosted git repository. ryanahamilton pushed a commit to branch summit_cta in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit caeb846633e976d4a049e29eefe7a8a7dbb3e259 Author: Ryan Hamilton <[email protected]> AuthorDate: Mon May 16 11:37:41 2022 -0400 Add temporary CTA in header linking to Summit website --- landing-pages/site/layouts/partials/navbar.html | 44 ++++++++++++++-------- .../sphinx_airflow_theme/header.html | 20 ++++++++-- 2 files changed, 46 insertions(+), 18 deletions(-) diff --git a/landing-pages/site/layouts/partials/navbar.html b/landing-pages/site/layouts/partials/navbar.html index 65be4dd20..cc4169ff2 100644 --- a/landing-pages/site/layouts/partials/navbar.html +++ b/landing-pages/site/layouts/partials/navbar.html @@ -65,22 +65,36 @@ {{ end }} {{ end }} </div> - {{ with index .Site.Menus.main (sub $menusLen 1) }} - {{ $url := urls.Parse .URL }} - {{ $baseurl := urls.Parse $.Site.Params.Baseurl }} + <div> + <a href="https://airflowsummit.org/" target="_blank"> + <svg height="60" viewBox="0 0 502 242" fill="none" xmlns="http://www.w3.org/2000/svg" style="margin: -1rem 2rem -1rem 0;"> + <rect x="174" y="178" width="327" height="64" rx="32" fill="#04D659" /> + <path d="M197.34 223v-27.636h9.851c2.141 0 3.918.368 5.33 1.106 1.422.738 2.483 1.759 3.185 3.063.702 1.296 1.052 2.794 1.052 4.494 0 1.691-.355 3.18-1.066 4.467-.701 1.277-1.763 2.271-3.184 2.982-1.413.711-3.189 1.066-5.331 1.066h-7.462v-3.59h7.085c1.349 0 2.447-.193 3.292-.58.855-.387 1.48-.949 1.876-1.687.396-.737.594-1.623.594-2.658 0-1.044-.203-1.948-.608-2.712-.395-.765-1.021-1.35-1.875-1.755-.846-.413-1.957-.62-3.333-.62h-5.236V223h-4.17Zm13.643-12.469L217.811 [...] + <path fill-rule="evenodd" clip-rule="evenodd" d="M458.8 78c4.8-4.7 7.1-14.1-2.2-33.3 15 6.8 20.4 15.6 17.8 18.1L458.8 78Z" fill="#403F4C" /> + <path d="m438.3 62.3-15-15.4c-8.7-9-9.9-28.4-10.1-44.8 0-.4.3-.8.7-.8.2 0 .4.1.6.3l24.2 25" stroke="#403F4C" stroke-width="2.5" stroke-miterlimit="10" /> + <path fill-rule="evenodd" clip-rule="evenodd" d="M423.3 46.8c4.7 4.8 14.1 7.1 33.3-2.2-6.8 15-15.6 20.4-18.1 17.8l-15.2-15.6Z" fill="#403F4C" /> + <path d="m439 26.4 15.4-15c8.9-8.7 28.4-9.9 44.7-10.1.4 0 .8.3.8.8 0 .2-.1.5-.3.6l-24.6 24" stroke="#403F4C" stroke-width="2.5" stroke-miterlimit="10" /> + <path fill-rule="evenodd" clip-rule="evenodd" d="M454.4 11.4c-4.8 4.7-7.1 14 2.2 33.3-15-6.7-20.4-15.6-17.8-18.1l15.6-15.2ZM489.9 42.5c-4.7-4.8-14.1-7.1-33.3 2.2 6.8-15 15.6-20.3 18.1-17.8l15.2 15.6Z" fill="#403F4C" /> + <path d="M456.6 46.6a1.9 1.9 0 1 0 0-3.8 1.9 1.9 0 0 0 0 3.8ZM10.8 158.4c-3.3-1.4-5.8-3.3-7.5-5.5-1.7-2.3-2.6-4.8-2.7-7.4 0-.4.2-.8.5-1.1.3-.3.7-.5 1.2-.5h4c1 0 1.6.5 2 1.6.5 2.3 1.9 4.2 4.2 5.9 2.3 1.6 5.6 2.5 9.8 2.5 4.6 0 8-.8 10.3-2.4 2.3-1.6 3.4-3.9 3.4-6.7 0-1.8-.6-3.3-1.7-4.5-1.1-1.2-2.8-2.2-4.9-3.1-2.2-.9-5.5-2-9.8-3.3-4.2-1.2-7.5-2.5-9.9-3.8-2.5-1.3-4.3-3-5.5-5-1.2-2-1.9-4.5-1.9-7.5 0-2.9.8-5.5 2.3-7.8 1.6-2.3 3.8-4.1 6.8-5.4 3-1.3 6.5-2 10.5-2 4.2 0 7.8.7 10 [...] + </svg> + </a> + {{ with index .Site.Menus.main (sub $menusLen 1) }} + {{ $url := urls.Parse .URL }} + {{ $baseurl := urls.Parse $.Site.Params.Baseurl }} - {{/* - TODO: Temporary solution. Replace the link to docs with commented code when texts on install page are ready. + {{/* + TODO: Temporary solution. Replace the link to docs with commented code when texts on install page are ready. - <a href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" - {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}> - {{ partial "buttons/button-filled" (dict "text" .Name) }} - </a> - */}} - <a href="{{ $baseurl }}/docs/stable/start.html" - {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}> - {{ partial "buttons/button-filled" (dict "text" .Name) }} - </a> - {{ end }} + <a href="{{ with .Page }}{{ .RelPermalink }}{{ else }}{{ .URL | relLangURL }}{{ end }}" + {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}> + {{ partial "buttons/button-filled" (dict "text" .Name) }} + </a> + */}} + <a href="{{ $baseurl }}/docs/stable/start.html" + {{ if ne $url.Host $baseurl.Host }}target="_blank" {{ end }}> + {{ partial "buttons/button-filled" (dict "text" .Name) }} + </a> + {{ end }} + </div> </div> {{ end }} diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/header.html b/sphinx_airflow_theme/sphinx_airflow_theme/header.html index f8f1d6455..6c353a6bf 100644 --- a/sphinx_airflow_theme/sphinx_airflow_theme/header.html +++ b/sphinx_airflow_theme/sphinx_airflow_theme/header.html @@ -62,9 +62,23 @@ </div> {% if not theme_hide_website_buttons %} - <a href="/docs/stable/start.html"> - <button class="btn-filled bodytext__medium--white">Install</button> - </a> + <div> + <a href="https://airflowsummit.org/" target="_blank"> + <svg height="60" viewBox="0 0 502 242" fill="none" xmlns="http://www.w3.org/2000/svg" style="margin: -1rem 2rem -1rem 0;"> + <rect x="174" y="178" width="327" height="64" rx="32" fill="#04D659" /> + <path d="M197.34 223v-27.636h9.851c2.141 0 3.918.368 5.33 1.106 1.422.738 2.483 1.759 3.185 3.063.702 1.296 1.052 2.794 1.052 4.494 0 1.691-.355 3.18-1.066 4.467-.701 1.277-1.763 2.271-3.184 2.982-1.413.711-3.189 1.066-5.331 1.066h-7.462v-3.59h7.085c1.349 0 2.447-.193 3.292-.58.855-.387 1.48-.949 1.876-1.687.396-.737.594-1.623.594-2.658 0-1.044-.203-1.948-.608-2.712-.395-.765-1.021-1.35-1.875-1.755-.846-.413-1.957-.62-3.333-.62h-5.236V223h-4.17Zm13.643-12.469L [...] + <path fill-rule="evenodd" clip-rule="evenodd" d="M458.8 78c4.8-4.7 7.1-14.1-2.2-33.3 15 6.8 20.4 15.6 17.8 18.1L458.8 78Z" fill="#403F4C" /> + <path d="m438.3 62.3-15-15.4c-8.7-9-9.9-28.4-10.1-44.8 0-.4.3-.8.7-.8.2 0 .4.1.6.3l24.2 25" stroke="#403F4C" stroke-width="2.5" stroke-miterlimit="10" /> + <path fill-rule="evenodd" clip-rule="evenodd" d="M423.3 46.8c4.7 4.8 14.1 7.1 33.3-2.2-6.8 15-15.6 20.4-18.1 17.8l-15.2-15.6Z" fill="#403F4C" /> + <path d="m439 26.4 15.4-15c8.9-8.7 28.4-9.9 44.7-10.1.4 0 .8.3.8.8 0 .2-.1.5-.3.6l-24.6 24" stroke="#403F4C" stroke-width="2.5" stroke-miterlimit="10" /> + <path fill-rule="evenodd" clip-rule="evenodd" d="M454.4 11.4c-4.8 4.7-7.1 14 2.2 33.3-15-6.7-20.4-15.6-17.8-18.1l15.6-15.2ZM489.9 42.5c-4.7-4.8-14.1-7.1-33.3 2.2 6.8-15 15.6-20.3 18.1-17.8l15.2 15.6Z" fill="#403F4C" /> + <path d="M456.6 46.6a1.9 1.9 0 1 0 0-3.8 1.9 1.9 0 0 0 0 3.8ZM10.8 158.4c-3.3-1.4-5.8-3.3-7.5-5.5-1.7-2.3-2.6-4.8-2.7-7.4 0-.4.2-.8.5-1.1.3-.3.7-.5 1.2-.5h4c1 0 1.6.5 2 1.6.5 2.3 1.9 4.2 4.2 5.9 2.3 1.6 5.6 2.5 9.8 2.5 4.6 0 8-.8 10.3-2.4 2.3-1.6 3.4-3.9 3.4-6.7 0-1.8-.6-3.3-1.7-4.5-1.1-1.2-2.8-2.2-4.9-3.1-2.2-.9-5.5-2-9.8-3.3-4.2-1.2-7.5-2.5-9.9-3.8-2.5-1.3-4.3-3-5.5-5-1.2-2-1.9-4.5-1.9-7.5 0-2.9.8-5.5 2.3-7.8 1.6-2.3 3.8-4.1 6.8-5.4 3-1.3 6.5-2 10.5-2 4.2 0 [...] + </svg> + </a> + <a href="/docs/stable/start.html"> + <button class="btn-filled bodytext__medium--white">Install</button> + </a> + </div> {% endif %} </div>
