Skip to content

Commit

Permalink
Merge pull request #34 from eddieferrer/frontend_performance_and_usab…
Browse files Browse the repository at this point in the history
…ility

Various Frontend Performance and Usability Changes
  • Loading branch information
eddieferrer authored Jul 16, 2020
2 parents 336a625 + 816c6ae commit bdf2608
Show file tree
Hide file tree
Showing 21 changed files with 97 additions and 14,913 deletions.

This file was deleted.

7,748 changes: 0 additions & 7,748 deletions frontend/lighthouse_reports/sizesquirrel.com-20191107T210150.json

This file was deleted.

7,123 changes: 0 additions & 7,123 deletions frontend/lighthouse_reports/sizesquirrel.com-20191128T102710.json

This file was deleted.

18 changes: 9 additions & 9 deletions frontend/public/emails/email_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
}
h1{
color:#202020;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:26px;
font-style:normal;
font-weight:bold;
Expand All @@ -120,7 +120,7 @@
}
h2{
color:#202020;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:22px;
font-style:normal;
font-weight:bold;
Expand All @@ -130,7 +130,7 @@
}
h3{
color:#202020;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:20px;
font-style:normal;
font-weight:bold;
Expand All @@ -140,7 +140,7 @@
}
h4{
color:#202020;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:18px;
font-style:normal;
font-weight:bold;
Expand All @@ -157,7 +157,7 @@
}
#templatePreheader .mcnTextContent,#templatePreheader .mcnTextContent p{
color:#656565;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:11px;
line-height:150%;
text-align:left;
Expand All @@ -176,7 +176,7 @@
}
#templateHeader .mcnTextContent,#templateHeader .mcnTextContent p{
color:#202020;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:16px;
line-height:150%;
text-align:left;
Expand All @@ -195,7 +195,7 @@
}
#templateBody .mcnTextContent,#templateBody .mcnTextContent p{
color:#202020;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:16px;
line-height:150%;
text-align:left;
Expand All @@ -214,7 +214,7 @@
}
#templateFooter .mcnTextContent,#templateFooter .mcnTextContent p{
color:#656565;
font-family:Helvetica;
font-family:'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;
font-size:12px;
line-height:150%;
text-align:center;
Expand Down Expand Up @@ -588,7 +588,7 @@
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer">
<tbody><tr>

<td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #656565;font-family: Helvetica;font-size: 12px;line-height: 150%;text-align: center;">
<td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #656565;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 12px;line-height: 150%;text-align: center;">

<em>Copyright &copy; 2018 SizeSquirrel, All rights reserved.</em><br>
You are receiving this email because you signed up for SizeSquirrel.<br>
Expand Down
6 changes: 3 additions & 3 deletions frontend/public/emails/forgot_username.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer">
<tbody>
<tr>
<td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #202020;font-family: Helvetica;font-size: 16px;line-height: 150%;text-align: left;">
<td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #202020;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 16px;line-height: 150%;text-align: left;">

<h1 style="display: block;margin: 0;padding: 0;color: #202020;font-family: Helvetica;font-size: 26px;font-style: normal;font-weight: bold;line-height: 125%;letter-spacing: normal;text-align: left;">Your SizeSquirrel username is:</h1>
<p style="margin: 10px 0;padding: 0;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #202020;font-family: Helvetica;font-size: 16px;line-height: 150%;text-align: left;">
<h1 style="display: block;margin: 0;padding: 0;color: #202020;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 26px;font-style: normal;font-weight: bold;line-height: 125%;letter-spacing: normal;text-align: left;">Your SizeSquirrel username is:</h1>
<p style="margin: 10px 0;padding: 0;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #202020;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 16px;line-height: 150%;text-align: left;">
<h3>{{ username }}</h3>
<a href="https://sizesquirrel.com/login/">Log In to SizeSquirrel</a>
<br><br>
Expand Down
6 changes: 3 additions & 3 deletions frontend/public/emails/reset_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="min-width: 100%;border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;" class="mcnTextContentContainer">
<tbody>
<tr>
<td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #202020;font-family: Helvetica;font-size: 16px;line-height: 150%;text-align: left;">
<td valign="top" class="mcnTextContent" style="padding-top: 9px;padding-right: 18px;padding-bottom: 9px;padding-left: 18px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;word-break: break-word;color: #202020;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 16px;line-height: 150%;text-align: left;">

<h1 style="display: block;margin: 0;padding: 0;color: #202020;font-family: Helvetica;font-size: 26px;font-style: normal;font-weight: bold;line-height: 125%;letter-spacing: normal;text-align: left;">Reset Your Password</h1>
<p style="margin: 10px 0;padding: 0;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #202020;font-family: Helvetica;font-size: 16px;line-height: 150%;text-align: left;">Please us the link below to reset your password:<br><br>
<h1 style="display: block;margin: 0;padding: 0;color: #202020;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 26px;font-style: normal;font-weight: bold;line-height: 125%;letter-spacing: normal;text-align: left;">Reset Your Password</h1>
<p style="margin: 10px 0;padding: 0;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%;color: #202020;font-family: 'Segoe UI', 'Source Sans Pro', Calibri, Candara, Arial, sans-serif;font-size: 16px;line-height: 150%;text-align: left;">Please us the link below to reset your password:<br><br>
<a href="https://sizesquirrel.com/reset_password?token={{token}}">https://sizesquirrel.com/reset_password?token={{token}}</a>
<br><br>
</p>
Expand Down
55 changes: 55 additions & 0 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,61 @@
</script>
<!-- icons for bulma, not used yet -->
<!-- <script defer src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> -->


<!-- Efficiently Load Google Fonts -->
<!-- https://csswizardry.com/2020/05/the-fastest-google-fonts/ -->
<!--
- 1. Preemptively warm up the fonts’ origin.
-
- 2. Initiate a high-priority, asynchronous fetch for the CSS file. Works in
- most modern browsers.
-
- 3. Initiate a low-priority, asynchronous fetch that gets applied to the page
- only after it’s arrived. Works in all browsers with JavaScript enabled.
-
- 4. In the unlikely event that a visitor has intentionally disabled
- JavaScript, fall back to the original method. The good news is that,
- although this is a render-blocking request, it can still make use of the
- preconnect which makes it marginally faster than the default.
-->

<!-- [1] -->
<link rel="preconnect"
href="https://fonts.gstatic.com"
crossorigin />

<!-- [2] -->
<link rel="preload"
as="style"
href="https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap" />
<link rel="preload"
as="style"
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap" />
<link rel="preload"
as="style"
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap" />

<!-- [3] -->
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap"
media="print" onload="this.media='all'" />
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap"
media="print" onload="this.media='all'" />
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap"
media="print" onload="this.media='all'" />

<!-- [4] -->
<noscript>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap" />
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap" />
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap" />
</noscript>
</head>
<body>
<noscript>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@
href="#"
class="cryptedmail"
onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld"
></a>
>email</a
>
</p>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/AffiliatePriceBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default {
}
.sales_retailer_price {
font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
font-family: Lato, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
font-weight: bold;
width: 76px;
text-align: left;
Expand All @@ -105,7 +105,7 @@ export default {
border-right: 20px solid $amazon_red;
margin-left: -20px;
}
font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
font-family: Lato, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
width: 58px;
text-align: left;
color: $white;
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/FindMySizeBlock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<span>
<img
class="lazyload"
loading="lazy"
:src="'/static/images/placeholder_' + shoe.type + '.png'"
:data-src="shoe.shoe_image"
:alt="shoe.brand.name + shoe.model"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/MatchResult.vue
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
<span>
<img
class="lazyload"
loading="lazy"
:src="'/static/images/placeholder_' + targetItem.type + '.png'"
:data-src="targetItem.shoe_image"
:alt="targetItem.brand['name'] + ' ' + targetItem.model"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/MultiSelectItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<div class="option_img">
<img
class="lazyload"
loading="lazy"
:src="'/static/images/placeholder_' + props.option.type + '.png'"
:data-src="props.option.shoe_image"
:alt="props.option.brand['name'] + ' ' + props.option.model"
Expand Down
13 changes: 8 additions & 5 deletions frontend/src/components/NavBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

<div id="navbarBasic" class="navbar-menu" :class="{ 'is-active': isActive }">
<div class="navbar-start">
<span v-if="!isActive" class="navbar-item navbar-item-brand">SizeSquirrel</span>
<span v-if="isActive" class="navbar-item navbar-item-brand">&nbsp;</span>
<span class="navbar-item navbar-item-brand is-hidden-touch">SizeSquirrel</span>
<span class="navbar-item navbar-item-brand is-hidden-desktop pt-2">&nbsp;</span>
<RouterLink class="navbar-item" to="/" @click.native="isActive = !isActive"
>Home</RouterLink
>
Expand Down Expand Up @@ -121,11 +121,11 @@ $squirrelDarkGray: #131313;
background-color: $ss-transparent-gray;
}
.navbar-item-brand {
font-family: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
font-weight: 800;
font-family: Lato, 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
font-weight: 900;
font-variant: small-caps;
letter-spacing: 0.05em;
font-size: 1.2rem;
font-size: 1.3rem;
}
.navbar-item.brandlogo {
overflow: visible;
Expand All @@ -148,4 +148,7 @@ $squirrelDarkGray: #131313;
a.navbar-item:hover {
color: $white;
}
.pt-2 {
padding-top: 2rem;
}
</style>
1 change: 1 addition & 0 deletions frontend/src/components/ProfileItems.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<span>
<img
class="lazyload"
loading="lazy"
:src="
'/static/images/placeholder_' + user_item.user_item.item.type + '.png'
"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/components/RecommendationsByShape.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<span>
<img
class="lazyload"
loading="lazy"
:src="'/static/images/placeholder_' + recommendation.item.type + '.png'"
:data-src="recommendation.item.shoe_image"
:alt="recommendation.item.brand['name'] + ' ' + recommendation.item.model"
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/components/RecommendedShoesCards.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
<span>
<img
class="lazyload"
loading="lazy"
:src="'/static/images/placeholder_' + shoe.type + '.png'"
:data-src="shoe.shoe_image"
:alt="shoe.brand.name + shoe.model"
Expand Down Expand Up @@ -170,6 +171,7 @@
<span>
<img
class="lazyload"
loading="lazy"
:src="'/static/images/placeholder_' + shoe.type + '.png'"
:data-src="shoe.shoe_image"
:alt="shoe.brand.name + shoe.model"
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/scss/cosmo_overrides.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
@if $bulmaswatch-import-font {
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:300, 400, 700');
}
.button,
.control.has-icons-left .icon,
.control.has-icons-right .icon,
Expand Down
7 changes: 0 additions & 7 deletions frontend/src/scss/custom_bulma.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
@charset "utf-8";

// Import a Google Font
@import url('https://fonts.googleapis.com/css?family=Nunito:400,700');

// BulmaSwatch Theme
////////////////////////////////////////////////
// COSMO
Expand Down Expand Up @@ -110,7 +107,3 @@ $navbar-item-img-max-height: 38px;
// Bulma divider extension
// https://wikiki.github.io/layout/divider/
@import 'bulma-divider/dist/css/bulma-divider.sass';

@import url('https://fonts.googleapis.com/css?family=Shadows+Into+Light');
@import url('https://fonts.googleapis.com/css?family=Lato:400,700,900');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700,900');
6 changes: 4 additions & 2 deletions frontend/src/views/Faq.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
href="#"
class="cryptedmail"
onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld"
></a>
>email</a
>
and we will add the shoe to the site.
</p>

Expand Down Expand Up @@ -58,7 +59,8 @@
href="#"
class="cryptedmail"
onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld"
></a>
>email</a
>
</p>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion frontend/src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
href="#"
class="cryptedmail"
onclick="window.location.href = 'mailto:' + this.dataset.name + '@' + this.dataset.domain + '.' + this.dataset.tld"
></a>
>email</a
>
</p>
</div>
</div>
Expand Down
7 changes: 2 additions & 5 deletions maintenance_off.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Lato:400,700,900);
</style>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700,900);
</style>
<style type="text/css">

.dismiss[data-v-29ce9aa7] {
Expand Down Expand Up @@ -107,8 +104,8 @@
}

.navbar-item-brand[data-v-4295d220] {
font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
font-weight: 800;
font-family: Lato, Roboto, Arial, sans-serif;
font-weight: 900;
font-variant: small-caps;
letter-spacing: 0.05em;
font-size: 1.2rem;
Expand Down

0 comments on commit bdf2608

Please sign in to comment.