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", fontFamily: "'Roboto', sans-serif",
lineHeight: 32, lineHeight: 32,
textAlign: "left", textAlign: "left",
fontWeight: 400 fontWeight: 400,
}, },
title: { title: {
top: 150, top: 150,

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

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

Loading…
Cancel
Save