Skip to content
This repository has been archived by the owner on May 22, 2021. It is now read-only.

make site responsive and add feedback link #267

Merged
merged 2 commits into from Jul 24, 2017

Conversation

johngruen
Copy link
Contributor

@johngruen johngruen commented Jul 20, 2017

Fixes #203
Fixes #214
Also made the logo clickable for the sake of SEO/providing a link to Test Pilot somewhere on the page!

@johngruen
Copy link
Contributor Author

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;
Copy link
Collaborator

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?

Copy link
Contributor Author

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
Copy link
Collaborator

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

</g>
</g>
</g>
</svg>
Copy link
Collaborator

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.

</div>
<header class="header">
<div class="send-logo">
<img src="/resources/send_logo.svg"/>
Copy link
Collaborator

@pdehaan pdehaan Jul 20, 2017

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.

<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>
Copy link
Collaborator

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.

<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>
Copy link
Collaborator

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).

Copy link
Contributor Author

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

@pdehaan
Copy link
Collaborator

pdehaan commented Jul 20, 2017

Looks like some UI jiggle on both the label and circular progress bar. Sorry for the lame screen recording, seems like licecap stops recording randomly.

firefoxsend

public/main.css Outdated
background-size: 14px;
border-radius: 3px;
border: 1px solid #0297F8;
box-shadow: 0 1px 2px rgba(0,0,0,.1);
Copy link
Collaborator

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.

@johngruen
Copy link
Contributor Author

Wobble should now be resolved

.stylelintrc Outdated
@@ -1,6 +1,6 @@
extends: stylelint-config-standard

rules:
color-hex-case: upper
color-hex-case: lower
Copy link
Contributor Author

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

@johngruen
Copy link
Contributor Author

@dannycoates Just calling out that i ran npm run format before pushing and it changed some JS formatting that I didn't touch by hand.

@pdehaan
Copy link
Collaborator

pdehaan commented Jul 21, 2017

@johngruen Looks like this will need a rebasin' on frontend/src/upload.js.

Copy link
Contributor

@ericawright ericawright left a 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

@@ -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
Copy link
Contributor

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.

@dnarcese
Copy link
Collaborator

around 590px it gets a horizontal scroll bar. I can't find the element that's pushing it though

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;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title and subtitle should be #3E3D40, and the text should be a little smaller compared to the img, according to mocks:

image

public/main.css Outdated
}
}

@media (max-width: 520px) {
Copy link
Contributor

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)

Copy link
Contributor

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

@johngruen johngruen force-pushed the responsive-and-feedback branch 2 times, most recently from 5f365f8 to a9a3533 Compare July 24, 2017 16:22
public/main.css Outdated
}

.site-title {
color: #3E3D40;
Copy link
Collaborator

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;
Copy link
Collaborator

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;
Copy link
Collaborator

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

Copy link
Contributor Author

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

Copy link
Collaborator

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 {
Copy link
Collaborator

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

@dannycoates dannycoates merged commit 85068e9 into master Jul 24, 2017
@dannycoates dannycoates deleted the responsive-and-feedback branch July 31, 2017 21:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants