Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit f1a34a7

Browse files
fix: tmp comment out className override for webp
removed any code that references the custom class for webp and injected default hero class
1 parent 326973e commit f1a34a7

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

src/pages/app-case-study/app-case-study.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component } from '@stencil/core';
55
styleUrl: 'app-case-study.scss',
66
})
77
export class AppCaseStudy {
8-
private className = localStorage.getItem('allowWebp') === 'true' ? 'webp' : 'hero';
8+
// private className = localStorage.getItem('allowWebp') === 'true' ? 'webp' : 'hero';
99

1010
scrollToTop() {
1111
const form = document.getElementsByTagName('header')[0];
@@ -28,7 +28,7 @@ export class AppCaseStudy {
2828
render() {
2929
return (
3030
<div class="case-study">
31-
<header class={this.className}>
31+
<header class="hero">
3232
<div class="container">
3333
<div class="row align-items-center">
3434
<div style={{ margin: 'auto' }}>

src/pages/app-resources/app-resources.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { MatchResults, RouterHistory } from '@stencil/router';
77
styleUrl: 'app-resources.scss',
88
})
99
export class AppResources {
10-
private className = localStorage.getItem('allowWebp') === 'true' ? 'webp' : 'hero';
10+
// private className = localStorage.getItem('allowWebp') === 'true' ? 'webp' : 'hero';
1111

1212
@State() formSubmitted = false;
1313
@State() formSubmitting = false;
@@ -141,7 +141,7 @@ export class AppResources {
141141
<div id="top" class="resources">
142142
{/* header - hero */}
143143
{!this.formSubmitted ? (
144-
<header class={this.className}>
144+
<header class="hero">
145145
<div class="overlay">
146146
<div class="container">
147147
<div class="row align-items-center">

src/pages/app-team-landing/app-team-landing.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { translate } from '../../services/translation.service';
77
styleUrl: 'app-team-landing.scss',
88
})
99
export class AppTeamLanding {
10-
private allowWebp = localStorage.getItem('allowWebp') === 'true' ? true : false;
10+
// private allowWebp = localStorage.getItem('allowWebp') === 'true' ? true : false;
1111

1212
@Prop() match: MatchResults;
1313
@Prop() history: RouterHistory;
@@ -310,10 +310,10 @@ export class AppTeamLanding {
310310
}
311311

312312
changeImageFormat(img: string) {
313-
if (img && this.allowWebp) {
314-
const idx = img.lastIndexOf('.');
315-
return `${img.substring(0, idx)}.webp`;
316-
}
313+
// if (img && this.allowWebp) {
314+
// const idx = img.lastIndexOf('.');
315+
// return `${img.substring(0, idx)}.webp`;
316+
// }
317317
return img;
318318
}
319319

src/pages/app-toolbox/app-toolbox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Component } from '@stencil/core';
55
styleUrl: 'app-toolbox.scss',
66
})
77
export class AppToolbox {
8-
private className = localStorage.getItem('allowWebp') === 'true' ? 'webp' : 'hero';
8+
// private className = localStorage.getItem('allowWebp') === 'true' ? 'webp' : 'hero';
99

1010
scrollToForm() {
1111
const form = document.getElementById('second-content');
@@ -29,7 +29,7 @@ export class AppToolbox {
2929
return (
3030
<div class="toolbox">
3131
{/* header - hero */}
32-
<header class={this.className}>
32+
<header class="hero">
3333
<div class="container">
3434
<div class="row align-items-center">
3535
<div class="col-9 col-md-8 col-lg-9">

0 commit comments

Comments
 (0)