cambios por ahi

pull/16/head
Borja Robert 2 years ago
parent 27e4b3cb62
commit 5f49d760da

@ -14,7 +14,7 @@ export const verde = {
fontFamily: "'Roboto', sans-serif",
lineHeight: 32,
textAlign: "left",
fontWeight: 400
fontWeight: 400,
},
title: {
top: 150,

@ -1,29 +1,29 @@
<script>
import { multiplier } from '$lib/stores/store';
// import { multiplier } from '$lib/stores/store';
import Header from '$lib/header/Header.svelte';
import '../app.css';
import { browser } from '$app/environment';
// import { browser } from '$app/environment';
let browserType = 'firefox';
// let browserType = '';
if (browser) {
const agent = navigator.userAgent;
if (agent.match(/chrome|chromium|crios/i)) {
browserType = 'chrome';
$multiplier = 1;
} else if (agent.match(/firefox|fxios/i)) {
browserType = 'firefox';
$multiplier = 1;
} else if (agent.match(/safari/i)) {
browserType = 'safari';
} else if (agent.match(/opr\//i)) {
browserType = 'opera';
} else if (agent.match(/edg/i)) {
browserType = 'edge';
} else {
browserType = 'No browser detection';
}
}
// if (browser) {
// const agent = navigator.userAgent;
// if (agent.match(/chrome|chromium|crios/i)) {
// browserType = 'chrome';
// $multiplier = 1;
// } else if (agent.match(/firefox|fxios/i)) {
// browserType = 'firefox';
// $multiplier = 1;
// } else if (agent.match(/safari/i)) {
// browserType = 'safari';
// } else if (agent.match(/opr\//i)) {
// browserType = 'opera';
// } else if (agent.match(/edg/i)) {
// browserType = 'edge';
// } else {
// browserType = 'No browser detection';
// }
// }
// console.log('Browser is: ', browserType);
</script>

@ -30,6 +30,7 @@
max-width: 800px;
margin: 0 auto;
}
.main {
display: grid;
grid-auto-columns: 1fr;

Loading…
Cancel
Save