allpx (#15)
Todas las plantillas tienen TODO definido en pixels y usan un tipo de letra con SmallCaps incorporadas para que todo se ajuste perfectamente Co-authored-by: Borja Robert <borja@brobert.net> Reviewed-on: #15main
parent
bf74361fc3
commit
0e3088d236
File diff suppressed because it is too large
Load Diff
@ -1,19 +1,43 @@
|
||||
<script>
|
||||
import Header from '$lib/header/Header.svelte';
|
||||
import '../app.css';
|
||||
import { multiplier } from '$lib/stores/store';
|
||||
import Header from '$lib/header/Header.svelte';
|
||||
import '../app.css';
|
||||
import { browser } from '$app/environment';
|
||||
|
||||
let browserType = 'firefox';
|
||||
|
||||
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>
|
||||
|
||||
<Header />
|
||||
<main>
|
||||
<slot />
|
||||
<slot />
|
||||
</main>
|
||||
|
||||
<style>
|
||||
main {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin: 0 auto;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 866 KiB |
Binary file not shown.
Before Width: | Height: | Size: 137 KiB After Width: | Height: | Size: 109 KiB |
Binary file not shown.
Before Width: | Height: | Size: 352 KiB |
Binary file not shown.
Before Width: | Height: | Size: 113 KiB |
Loading…
Reference in New Issue