reverted to static data

This commit is contained in:
2021-10-14 12:40:54 +02:00
parent 8b8699d1fe
commit 1f496362c3
19 changed files with 17 additions and 70 deletions

View File

@@ -90,17 +90,17 @@
}
.contacts>ul{
// list-style: none;
// width: 35vw;
margin: unset;
}
// .job-content{
// flex-wrap: unset;
// }
// .text-content{
// width: 35vw;
// }
}
</style>

View File

@@ -9,13 +9,8 @@
import data from '../model/jobs.json'
import type { Schema } from 'src/model/job';
export let currentLanguage = 'it'
// const jobs:Schema[] = data as Schema[];
let jobs:Schema[] = data as Schema[];
fetch('/data/jobs.json').then(async (resp)=>{
jobs = (await resp.json()) as Schema[];
}).catch(console.error);
const jobs:Schema[] = data as Schema[];
export function changeLanguage(language = 'it'){
currentLanguage = language
}

View File

@@ -9,11 +9,7 @@
import data from '../model/portfolio.json'
import type { Schema } from 'src/model/job';
export let currentLanguage = 'it'
// let portfolio:Schema[] = data as Schema[];
let portfolio:Schema[] = [];
fetch('/data/portfolio.json').then(async (resp)=>{
portfolio = (await resp.json()) as Schema[];
}).catch(console.error);
let portfolio:Schema[] = data as Schema[];
export function changeLanguage(language = 'it'){
currentLanguage = language
@@ -96,7 +92,7 @@
margin: auto;
margin-bottom: 2vh;
max-width: 100%;
// max-height: 250px;
}
.content{

View File

@@ -8,11 +8,7 @@
import data from '../model/training.json'
import type { Schema } from 'src/model/job';
export let currentLanguage = 'it'
let training:Schema[] = [];
fetch('/data/training.json').then(async (resp)=>{
training = (await resp.json()) as Schema[];
}).catch(console.error);
const training:Schema[] = data as Schema[];
export function changeLanguage(language = 'it'){
currentLanguage = language
}

View File

@@ -60,7 +60,7 @@
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
height: 100vh;
overflow: auto;
// padding-bottom: 3vh;
}
.language-selector {
@@ -83,7 +83,7 @@
margin-bottom: 4vh;
}
.content{
// padding-top: 2vh;
margin-bottom: 4vh;
}

View File

@@ -35,7 +35,7 @@
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
height: 100vh;
overflow: auto;
// padding-bottom: 3vh;
}
.language-selector {
@@ -53,7 +53,7 @@
margin-right: 20px ;
}
.content{
// padding-top: 2vh;
margin-bottom: 2vh;
}

View File

@@ -35,7 +35,7 @@
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
height: 100vh;
overflow: auto;
// padding-bottom: 3vh;
}
.language-selector {
@@ -54,7 +54,7 @@
}
.content{
// padding-top: 2vh;
margin-bottom: 2vh;
}

View File

@@ -35,7 +35,7 @@
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
height: 100vh;
overflow: auto;
// padding-bottom: 3vh;
}
.language-selector {
@@ -54,7 +54,7 @@
}
.content{
// padding-top: 2vh;
margin-bottom: 2vh;
}