Skip to content

Commit

Permalink
feat: use input instead of truncate the URL
Browse files Browse the repository at this point in the history
  • Loading branch information
bgatellier committed Feb 3, 2024
1 parent 0d5fdd4 commit f99f2fc
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 18 deletions.
6 changes: 4 additions & 2 deletions content/en/result/_#first_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ id="intro"
widget="result-intro"
+++

Calculated on {{< result-date >}}
Calculated

<h1 class="h2 result-url-wrapper">
Results for {{< result-url >}}
Results from {{< result-date >}}
</h1>

{{< result-url >}}
6 changes: 3 additions & 3 deletions content/fr/result/_#first_intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ id="intro"
widget="result-intro"
+++

Calculé le {{< result-date >}}

<h1 class="h2 result-url-wrapper">
Résultat pour {{< result-url >}}
Résultat du {{< result-date >}}
</h1>

{{< result-url >}}
16 changes: 15 additions & 1 deletion layouts/partials/components/result-url.html
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
<a class="result-url" data-int="url" href="#" rel="nofollow" title="#"></a>
<p class="stack-l">
<input class="result-url" data-int="url">
<span>
<a href="/" class="button-default js-button-retest"
><span class="icon-square-wrapper bg-darkish" aria-label="{{ i18n `ReTest` }}"
>{{ partial "svg/inline-svg-use" "icon-refresh" }}</span
>&nbsp;<span class="hide-mobile">{{ i18n `ReTest` }}</span></a
>
<a id="share-btn" href="/" role="button" class="button-default"
><span class="icon-square-wrapper bg-darkish" aria-label="{{ i18n `Share` }}"
>{{ partial "svg/inline-svg-use" "icon-share" }}</span
>&nbsp;<span class="hide-mobile">{{ i18n `Share` }}</span></a
>
</span>
</p>
12 changes: 0 additions & 12 deletions layouts/partials/widgets/result-intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@
>{{ partial "svg/inline-svg-use" "icon-arrow-left" }}&nbsp;{{ i18n `Back` }}</a
>
</div>
<div class="display:flex justify-content:end text-align:end">
<a href="/" class="button-default js-button-retest"
><span class="icon-square-wrapper bg-darkish" aria-label="{{ i18n `ReTest` }}"
>{{ partial "svg/inline-svg-use" "icon-refresh" }}</span
>&nbsp;<span class="hide-mobile">{{ i18n `ReTest` }}</span></a
>
<a id="share-btn" href="/" role="button" class="button-default"
><span class="icon-square-wrapper bg-darkish" aria-label="{{ i18n `Share` }}"
>{{ partial "svg/inline-svg-use" "icon-share" }}</span
>&nbsp;<span class="hide-mobile">{{ i18n `Share` }}</span></a
>
</div>
</div>
</div>
<div class="stack-l">
Expand Down

0 comments on commit f99f2fc

Please sign in to comment.