make site responsive and add feedback link #267
Conversation
Note: the Experiment name and Firefox Testpilot are left W/O L10n since they're both proper names |
@@ -262,6 +333,7 @@ tbody { | |||
#copy { | |||
display: flex; | |||
flex-wrap: nowrap; | |||
width: 640px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a fixed width
, or something like max-width
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it's fixed...shrinks at the breakpoints at the bottom
public/main.css
Outdated
@@ -289,14 +363,16 @@ tbody { | |||
} | |||
|
|||
#copy-btn { | |||
width: 165px; | |||
padding-left: 10px |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public/main.css
366:17 ✖ Missed semicolon CssSyntaxError
public/resources/feedback.svg
Outdated
</g> | ||
</g> | ||
</g> | ||
</svg> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: This is pretty small, but we should probably run it through SVGO or something so it is optimized.
views/layouts/main.handlebars
Outdated
</div> | ||
<header class="header"> | ||
<div class="send-logo"> | ||
<img src="/resources/send_logo.svg"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we want an alt
attr here, or some data-l10n-id
(although I don't suspect this .alt=""
would need to be translated if it is just "Firefox Send")
Nevermind, I just re-read your #267 (comment) about non-localized. But the alt=""
comment still stands.
views/layouts/main.handlebars
Outdated
<div data-l10n-id="siteSubtitle">web experiment</div> | ||
</div> | ||
</div> | ||
<a href="https://qsurvey.mozilla.com/s3/txp-firefox-send" class="feedback" target="_blank">Feedback</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we want rel="noreferrer noopener"
here. Also, probably want "Feedback" localized.
views/layouts/main.handlebars
Outdated
<img src="/resources/send_logo.svg"/> | ||
<h1 class="site-title">Send</h1> | ||
<div class="site-subtitle"> | ||
<a href="https://testpilot.firefox.com">Firefox Test Pilot</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have a target="_blank"
and/or would "Firefox Test Pilot" ever be localized? I'm assuming not, per mozilla/testpilot /locales/zh-CN/app.ftl:7-10, but figured I'd verify (considering it's in the TestPilot .ftl files).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test Pilot should not be localized
public/main.css
Outdated
background-size: 14px; | ||
border-radius: 3px; | ||
border: 1px solid #0297F8; | ||
box-shadow: 0 1px 2px rgba(0,0,0,.1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will fail our CSS linting rules too. Probably need spaces after commas and leading zeros on the numbers. Sorry. $ npm run format
and $ npm run lint
may be able to catch/fix some of these.
d5ff1d1
to
60f0ef7
Compare
Wobble should now be resolved |
.stylelintrc
Outdated
@@ -1,6 +1,6 @@ | |||
extends: stylelint-config-standard | |||
|
|||
rules: | |||
color-hex-case: upper | |||
color-hex-case: lower |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The npm run format converted all the hex to lower, so i flipped this rule to make everyone's life easier
60f0ef7
to
4633935
Compare
@dannycoates Just calling out that i ran |
@johngruen Looks like this will need a rebasin' on frontend/src/upload.js. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
around 590px it gets a horizontal scroll bar. I can't find the element that's pushing it though
frontend/src/upload.js
Outdated
@@ -110,15 +113,21 @@ $(document).ready(function() { | |||
}); | |||
if (progress[1] < 1000000) { | |||
$('.progress-text').text( | |||
`${file.name} (${(progress[0] / 1000).toFixed(1)}KB of ${(progress[1] / 1000).toFixed(1)}KB)` | |||
`${file.name} (${(progress[0] / 1000).toFixed( | |||
1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
npm run format
does this, and it's terrible.
I believe this is because of the popup on the delete button. I can fix this when I restyle it |
public/main.css
Outdated
.site-subtitle { | ||
font-size: 12px; | ||
margin: 0 8px; | ||
color: #0c0c0d; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public/main.css
Outdated
} | ||
} | ||
|
||
@media (max-width: 520px) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a (max-device-width: 520px),
rule added, and the one above too. Since pixel ratios on mobile usually don't conform to pixel ratios on computers.
(You can test this by going to the device simulator on Chrome where they take into account the pixel ratio)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think text sizes need to be larger as well on smaller screens
5f365f8
to
a9a3533
Compare
public/main.css
Outdated
} | ||
|
||
.site-title { | ||
color: #3E3D40; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public/main.css
41:10 ✖ Expected "#3E3D40" to be "#3e3d40" color-hex-case
public/main.css
Outdated
.site-subtitle { | ||
font-size: 12px; | ||
margin: 0 8px; | ||
color: #3E3D40; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
52:10 ✖ Expected "#3E3D40" to be "#3e3d40" color-hex-case
public/main.css
Outdated
|
||
.site-subtitle a { | ||
font-weight: bold; | ||
color: #3E3D40; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
57:10 ✖ Expected "#3E3D40" to be "#3e3d40" color-hex-case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm definitely the only person who gets this treatment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@johngruen Only because I love. ❤️
public/main.css
Outdated
|
||
@media (max-device-width: 520px) { | ||
|
||
.header { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
614:3 ✖ Unexpected empty line before rule rule-empty-line-before
…ive-and-feedback
a9a3533
to
dde2c4d
Compare
Fixes #203
Fixes #214
Also made the logo clickable for the sake of SEO/providing a link to Test Pilot somewhere on the page!