Skip to content

Commit

Permalink
Add data attributes and fix stickynote position on NP campaign page (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
reemhamz authored Jul 25, 2024
1 parent 4af4e4d commit 9c344d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bedrock/firefox/templates/firefox/nothing-personal/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,16 +146,16 @@ <h4>You’re great — probably.</h4>
<h4><span aria-hidden="true">[</span>Somewhat Frequently Asked Questions<span aria-hidden="true">]</span></h4>

<h5>Are you even any good?</h5>
<p>Calm down. And yes. <a href="{{ url('firefox.features.fast') }}" target="_blank">We’re so fast</a> you won’t even notice the difference.</p>
<p>Calm down. And yes. <a href="{{ url('firefox.features.fast') }}" target="_blank" data-link-text="We’re so fast">We’re so fast</a> you won’t even notice the difference.</p>

<h5 aria-label="What makes you so special?">What makes you soooo special?</h5>
<p><abbr title="No big deal">NBD</abbr>, but people dump their other browsers <a href="{{ url('firefox.features.index') }}" target="_blank">for our features</a> (like <a href="{{ url('firefox.features.picture-in-picture') }}" target="_blank">popping out videos</a> and a <a href="{{ url('firefox.features.pdf-editor') }}" target="_blank">built-in PDF editor</a>).</p>
<p><abbr title="No big deal">NBD</abbr>, but people dump their other browsers <a href="{{ url('firefox.features.index') }}" target="_blank" data-link-text="For our features">for our features</a> (like <a href="{{ url('firefox.features.picture-in-picture') }}" target="_blank" data-link-text="Popping out videos">popping out videos</a> and a <a href="{{ url('firefox.features.pdf-editor') }}" target="_blank" data-link-text="Built-in PDF editor">built-in PDF editor</a>).</p>

<h5>What does any of this have to do <br> with me?</h5>
<p>Hey, you can customize Firefox to be all about you with <a href="{{ url('firefox.features.add-ons') }}" target="_blank">add-ons</a> and <a href="{{ url('firefox.features.customize') }}" target="_blank">themes</a>. Happy?</p>
<p>Hey, you can customize Firefox to be all about you with <a href="{{ url('firefox.features.add-ons') }}" target="_blank" data-link-text="Add-ons">add-ons</a> and <a href="{{ url('firefox.features.customize') }}" target="_blank" data-link-text="Themes">themes</a>. Happy?</p>

<h5>Ok, what’s the privacy-catch?</h5>
<p><a href="{{ url('firefox.privacy.index') }}" target="_blank">We don’t keep track of where you go</a> because 1. Yawn, and 2. We really don’t need it.</p>
<p><a href="{{ url('firefox.privacy.index') }}" target="_blank" data-link-text="We don’t keep track of where you go">We don’t keep track of where you go</a> because 1. Yawn, and 2. We really don’t need it.</p>
</div>

<div class="c-sticky-note c-attached-sticky">
Expand Down
3 changes: 2 additions & 1 deletion media/css/firefox/nothing-personal/_sticky-note.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
background-image: url('/media/img/firefox/nothing-personal/sticky-note-bg.svg');
background-repeat: no-repeat;
background-size: contain;
width: 220px;
width: 200px;
height: 220px;
margin: 0 auto;
padding: $spacing-xl;
Expand Down Expand Up @@ -52,6 +52,7 @@
display: block;
position: absolute;
bottom: -80px;
right: 0;
margin-right: -150px;
opacity: 1;

Expand Down
2 changes: 2 additions & 0 deletions media/css/firefox/nothing-personal/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ $mq-tad-smaller-sm: 455px;
padding: $spacing-sm;
text-decoration: none;
cursor: default;
}

a {
&:hover,
&:active,
&:focus {
Expand Down

0 comments on commit 9c344d2

Please sign in to comment.