Compare commits

..

No commits in common. "0cebaf2e624bcebcd20d5c9b3705559d61dc625b" and "56eef15dc2881cac265f7c9d57fae368721e4cc3" have entirely different histories.

11 changed files with 1484 additions and 1788 deletions

View File

@ -10,9 +10,8 @@
"dependencies": { "dependencies": {
"core-js": "^2.6.5", "core-js": "^2.6.5",
"vanilla-tilt": "^1.7.2", "vanilla-tilt": "^1.7.2",
"vue": "^2.6.14", "vue": "^2.6.10",
"vue-class-component": "^7.0.2", "vue-class-component": "^7.0.2",
"vue-i18n": "8.27.1",
"vue-property-decorator": "^8.1.0" "vue-property-decorator": "^8.1.0"
}, },
"devDependencies": { "devDependencies": {
@ -21,7 +20,7 @@
"@vue/cli-service": "^3.7.0", "@vue/cli-service": "^3.7.0",
"sass": "^1.18.0", "sass": "^1.18.0",
"sass-loader": "^7.1.0", "sass-loader": "^7.1.0",
"typescript": "^4.8.4", "typescript": "^3.4.3",
"vue-template-compiler": "^2.5.21" "vue-template-compiler": "^2.5.21"
}, },
"postcss": { "postcss": {

View File

@ -12,7 +12,6 @@ import { tID } from '@/model/skills';
import Home from './components/Home.vue'; import Home from './components/Home.vue';
import Timeline from './components/Timeline.vue'; import Timeline from './components/Timeline.vue';
import SkillPicker from './components/SkillPicker.vue'; import SkillPicker from './components/SkillPicker.vue';
import { Locales } from './locales';
@Component({ @Component({
@ -49,13 +48,6 @@ export default class App extends Vue {
return; return;
} }
picker.select(tID.Vue, false); picker.select(tID.Vue, false);
// change app language
if( navigator.language.indexOf('fr') > -1 ){
this.$i18n.locale = Locales.FR;
} else {
this.$i18n.locale = Locales.EN;
}
} }
} }

View File

@ -14,17 +14,17 @@
<h1>Adrien<br>Marquès</h1> <h1>Adrien<br>Marquès</h1>
<br> <br>
<br> <br>
<h2>{{ $t('home.title') }}</h2> <h2>FREELANCE DEVELOPER</h2>
</section> </section>
<div class='separator'></div> <div class='separator'></div>
<section class='readme' ref='test'> <section class='readme'>
<div class='header'>README.md</div> <div class='header'>README.md</div>
<p ref='text1'>{{ $t('home.line1') }}</p> <p ref='text1'>Hi, I am another freelance developer !</p>
<p ref='text2'>{{ $t('home.line2-1') }} <u>{{ $t('home.line2-2') }}</u> {{$t('home.line2-3') }}</p> <p ref='text2'>I made this website so you can <u>browse</u> some of my skills and projects.</p>
<p ref='text3'>{{ $t('home.line3') }}</p> <p ref='text3'>After 50+ projects since I started IT back in 2010, I still work hard for making projects maintainable so they last and can evolve.</p>
<p ref='text4'>{{ $t('home.line4-1') }} <u>Go</u> {{ $t('home.line4-2') }} <u>IoT</u> {{ $t('home.line4-3') }}</p> <p ref='text4'>For now, my technologies of choice are : <u>Go</u> and <u>IoT</u> (Arduino, Raspberry).</p>
</section> </section>
<div class='scroll-arrow' @click='scrollNext()'> <div class='scroll-arrow' @click='scrollNext()'>
@ -66,10 +66,6 @@ export default class Home extends Vue {
// skip animation if already done less than 10min ago // skip animation if already done less than 10min ago
if ( diff_sec < threshold ) { if ( diff_sec < threshold ) {
(this.$refs.text2 as HTMLElement).style.display = 'block';
(this.$refs.text3 as HTMLElement).style.display = 'block';
(this.$refs.text4 as HTMLElement).style.display = 'block';
(this.$refs.text1 as HTMLElement).style.display = 'block';
return; return;
} }
@ -78,9 +74,6 @@ export default class Home extends Vue {
const t3 = new TypeWriter( this.$refs.text3 as HTMLElement ); const t3 = new TypeWriter( this.$refs.text3 as HTMLElement );
const t4 = new TypeWriter( this.$refs.text4 as HTMLElement ); const t4 = new TypeWriter( this.$refs.text4 as HTMLElement );
// wait for i18n to change text
setTimeout(() => {
t1.init(false); t1.init(false);
t2.init(); t2.init();
t3.init(); t3.init();
@ -99,8 +92,6 @@ export default class Home extends Vue {
setTimeout( () => { setTimeout( () => {
localStorage.setItem('typed', `${new Date().getTime()}`); localStorage.setItem('typed', `${new Date().getTime()}`);
}, 13000 ); }, 13000 );
}, 100)
} }
} }
</script> </script>
@ -198,7 +189,6 @@ export default class Home extends Vue {
width: auto; width: auto;
max-width: 80rem; max-width: 80rem;
height: auto; height: auto;
min-height: 6rem;
margin: 0 5em; margin: 0 5em;
margin-left: calc( 5em - #{$logo-size}/2 ); margin-left: calc( 5em - #{$logo-size}/2 );
@ -226,9 +216,6 @@ export default class Home extends Vue {
} }
p { p {
// typewriter animation changes it
display: none;
color: #fff; color: #fff;
margin: 1em; margin: 1em;
line-height: 1.5em; line-height: 1.5em;

View File

@ -78,8 +78,6 @@
<div :key="'joint-stop-'+proj.name" class='joint-stop' /> <div :key="'joint-stop-'+proj.name" class='joint-stop' />
</template> </template>
<div class='spacer' />
</div> </div>
</template> </template>

View File

@ -1,13 +0,0 @@
{
"home.title": "FREELANCE DEVELOPER",
"home.line1": "Hi, I am another freelance developer !",
"home.line2-1": "I made this website so you can",
"home.line2-2": "browse",
"home.line2-3": "some of my skills and projects.",
"home.line3": "After 50+ projects since I started IT back in 2010, I still work hard for making projects maintainable so they last and can evolve.",
"home.line4-1": "For now, my technologies of choice are : ",
"home.line4-2": "and",
"home.line4-3": "(Arduino, Raspberry).",
"end": ""
}

View File

@ -1,13 +0,0 @@
{
"home.title": "DÉVELOPPEUR FREELANCE",
"home.line1": "Hello, je suis un développeur freelance de plus !",
"home.line2-1": "J'ai mis en place ce site afin de pouvoir",
"home.line2-2": "parcourir",
"home.line2-3": "certaines de mes compétences et projets.",
"home.line3": "Avec 50+ projets depuis que j'ai démarré le dev en 2010, je suis toujours très attentif à rendre les projets maintenables afin qu'ils durent et puissent évoluer.",
"home.line4-1": "Pour le moment, les technologies qui m'intéressent sont : le",
"home.line4-2": "et l'",
"home.line4-3": "(Arduino, Raspberry).",
"end": ""
}

View File

@ -1,20 +0,0 @@
export enum Locales {
EN = 'en-US',
FR = 'fr-FR',
}
export const LOCALES = [
{ value: Locales.EN, caption: 'English' },
{ value: Locales.FR, caption: 'Français' }
]
import en from './en.json';
import fr from './fr.json';
export const messages = {
[Locales.EN]: en,
[Locales.FR]: fr
};
export const defaultLocale = Locales.EN;

View File

@ -1,19 +1,8 @@
import Vue from 'vue'; import Vue from 'vue';
import App from './App.vue'; import App from './App.vue';
import VueI18n from 'vue-i18n';
import { messages, defaultLocale } from '@/locales';
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.use(VueI18n);
const i18n = new VueI18n({
messages,
locale: defaultLocale,
fallbackLocale: defaultLocale
});
new Vue({ new Vue({
i18n,
render: (h) => h(App), render: (h) => h(App),
}).$mount('#app'); }).$mount('#app');

View File

@ -1,5 +1,6 @@
export class TypeWriter { export class TypeWriter {
private target: HTMLElement; private target: HTMLElement;
private display: string|null = null;
private html: string|null = null; private html: string|null = null;
constructor(target: HTMLElement) { constructor(target: HTMLElement) {
@ -9,6 +10,7 @@ export class TypeWriter {
/* initialize with copying and clearing the original text */ /* initialize with copying and clearing the original text */
public init(hide: boolean = true) { public init(hide: boolean = true) {
this.html = this.target.innerHTML; this.html = this.target.innerHTML;
this.display = this.target.style.display;
this.target.innerHTML = ''; this.target.innerHTML = '';
if ( hide ) { if ( hide ) {
this.target.style.display = 'none'; this.target.style.display = 'none';
@ -16,7 +18,7 @@ export class TypeWriter {
} }
public animate(msDuration: number) { public animate(msDuration: number) {
if ( this.html == null ) { if ( this.html == null || this.display == null ) {
console.warn('[typewriter] init must be called first ; doing it anyway'); console.warn('[typewriter] init must be called first ; doing it anyway');
this.init(); this.init();
} }
@ -24,7 +26,7 @@ export class TypeWriter {
const size = this.html!.length; const size = this.html!.length;
const msLetter = msDuration / size; const msLetter = msDuration / size;
this.target.style.display = 'block'; this.target.style.display = this.display!;
for ( let i = 0, l = this.html!.length ; i < l ; i++ ) { for ( let i = 0, l = this.html!.length ; i < l ; i++ ) {
setTimeout( setTimeout(
() => { () => {

View File

@ -9,7 +9,6 @@
"experimentalDecorators": true, "experimentalDecorators": true,
"esModuleInterop": true, "esModuleInterop": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"sourceMap": true, "sourceMap": true,
"baseUrl": ".", "baseUrl": ".",
"types": [ "types": [

3136
yarn.lock

File diff suppressed because it is too large Load Diff