Compare commits
No commits in common. "bbdb1d44531f1966d1bbcb20a2ed4b66060f1642" and "283ebb35c9f55a334b92bea24257ebd08e3c5866" have entirely different histories.
bbdb1d4453
...
283ebb35c9
25
src/app.html
25
src/app.html
@ -1,15 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="it">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body data-sveltekit-preload-data="hover">
|
||||
<div style="display: contents">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -32,17 +32,10 @@
|
||||
|
||||
const globeLookup: svgCore.IconLookup = { prefix: 'fas', iconName: 'globe-europe' };
|
||||
const globeDefinition: svgCore.IconDefinition = svgCore.findIconDefinition(globeLookup);
|
||||
const buttonLabel: { [key: CurrentLanguage[number]]: string } = {
|
||||
it: 'seleziona la lingua',
|
||||
en: 'select language'
|
||||
};
|
||||
</script>
|
||||
|
||||
<div class="language-selector">
|
||||
<button on:click={setOpen}>
|
||||
<FontAwesomeIcon icon={globeDefinition} size="2x" /><span>{buttonLabel[currentLanguage]}</span
|
||||
></button
|
||||
>
|
||||
<button on:click={setOpen}> <FontAwesomeIcon icon={globeDefinition} size="2x" /> </button>
|
||||
<div class="button-container" bind:this={langSelect}>
|
||||
<button
|
||||
class="custom-button {currentLanguage == 'it' ? 'custom-button-active' : ''}"
|
||||
@ -83,16 +76,6 @@
|
||||
border: none;
|
||||
width: 60px;
|
||||
height: 50px;
|
||||
span {
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 1px;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
}
|
||||
}
|
||||
.custom-button {
|
||||
width: 100px;
|
||||
|
@ -52,22 +52,18 @@
|
||||
<!-- svelte-ignore a11y-invalid-attribute -->
|
||||
<LanguageSelector bind:currentLanguage />
|
||||
<Menu {currentLanguage} />
|
||||
<div class="default">
|
||||
<span id="home" class="anchor" />
|
||||
<div id="home" class="default">
|
||||
<AboutMe {currentLanguage} />
|
||||
</div>
|
||||
<div class="default">
|
||||
<span id="jobs" class="anchor" />
|
||||
<div id="jobs" class="default">
|
||||
<h2>{titles.job[currentLanguage]}</h2>
|
||||
<Jobs {jobs} {currentLanguage} />
|
||||
</div>
|
||||
<div class="default">
|
||||
<span id="training" class="anchor" />
|
||||
<div id="training" class="default">
|
||||
<h2>{titles.school[currentLanguage]}</h2>
|
||||
<Training {currentLanguage} />
|
||||
</div>
|
||||
<div class="default">
|
||||
<span id="portfolio" class="anchor" />
|
||||
<div id="portfolio" class="default">
|
||||
<h2>{titles.portfolio[currentLanguage]}</h2>
|
||||
<Jobs jobs={portfolio} {currentLanguage} />
|
||||
</div>
|
||||
@ -81,14 +77,4 @@
|
||||
font-size: large;
|
||||
}
|
||||
}
|
||||
.anchor {
|
||||
position: absolute;
|
||||
margin-top: -150px;
|
||||
@media (min-width: 460px) {
|
||||
margin-top: -100px;
|
||||
}
|
||||
@media (min-width: $min-tablet) {
|
||||
margin-top: -60px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
@ -5,6 +5,4 @@ const config: UserConfig = {
|
||||
plugins: [sveltekit()]
|
||||
};
|
||||
|
||||
config.server = { port: 80, origin: 'pettinato.eu' };
|
||||
|
||||
export default config;
|
||||
|
Loading…
Reference in New Issue
Block a user