bim-ba / bim-ba.github.io Goto Github PK
View Code? Open in Web Editor NEWSmall portfolio created via vue 3
Home Page: https://bim-ba.github.io/
License: MIT License
Small portfolio created via vue 3
Home Page: https://bim-ba.github.io/
License: MIT License
anime
on every call creates a new anime instance.
we can create an anime instace with necessary animation before hover method
but this will require some extra checks like component is mounted
const hover = (state: boolean) => {
};
// hovering
//
// TODO: this can be optimized
// `anime` on every call creates a new anime instance.
// we can create an anime instace with necessary animation before hover method
// but this will require some extra checks like component is mounted
//
const hover = (state: boolean) => {
revealLocation.value = state;
state
? anime({ targets: footerCoordinatesRef.value, ...slightlyScale(1.15) })
: anime({ targets: footerCoordinatesRef.value, ...normalScale(1) });
};
</script>
<style lang="scss" scoped>
bim-ba.github.io/src/router/index.ts
Line 26 in 60ee111
path: "/",
name: "Main",
component: AppMain,
meta: { transition: "scale-bottom-left", title: "Sava Znatnov" },
},
{
path: "/projects",
name: "Projects",
component: AppProjects,
meta: { transition: "scale-bottom-right", title: "Projects" },
},
{
path: "/about",
name: "Contacts",
component: AppContacts,
meta: { transition: "scale-bottom-right", title: "Contacts & About" },
// TODO: normalize per-route transition (corners)
},
{
path: "/:pathMatch(.*)*",
Problem
isPrimary
property doesnt working properly, seems it is doesnt do anything
Problem code
bim-ba.github.io/src/views/AppProjects.vue
Lines 46 to 54 in 9afc726
Line 1 in 59cec03
<!-- TODO: fix scaleY problem -->
<template>
<router-view v-slot="{ Component, route }">
<Head>
bim-ba.github.io/src/views/AppContacts.vue
Lines 50 to 53 in 9afc726
bim-ba.github.io/src/views/AppContacts.vue
Lines 72 to 76 in 9afc726
bim-ba.github.io/src/views/AppContacts.vue
Lines 87 to 90 in 9afc726
bim-ba.github.io/src/views/AppContacts.vue
Line 100 in 9afc726
bim-ba.github.io/src/views/AppContacts.vue
Line 111 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Line 42 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Line 49 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Line 58 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Line 64 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Lines 69 to 72 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Line 78 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Lines 83 to 86 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Line 92 in 9afc726
bim-ba.github.io/src/views/AppMain.vue
Lines 109 to 114 in 9afc726
bim-ba.github.io/src/views/AppProjects.vue
Lines 68 to 70 in 9afc726
bim-ba.github.io/src/views/AppProjects.vue
Lines 76 to 81 in 9afc726
bim-ba.github.io/src/views/AppProjects.vue
Line 101 in 9afc726
bim-ba.github.io/src/views/AppProjects.vue
Lines 107 to 110 in 9afc726
bim-ba.github.io/src/views/AppProjects.vue
Lines 116 to 121 in 9afc726
bim-ba.github.io/src/views/NotFound.vue
Line 87 in 9afc726
bim-ba.github.io/src/views/NotFound.vue
Line 90 in 9afc726
bim-ba.github.io/src/views/NotFound.vue
Lines 95 to 98 in 9afc726
Line 3 in 60ee111
<!-- TODO: fix scaleY problem -->
<!-- TODO: create global `FancyFooter.vue` -->
<!-- because almost all pages include same footer -->
<template>
<router-view v-slot="{ Component, route }">
<Head>
<title>{{ route.meta.title }}</title>
</Head>
<transition :name="route.meta.transition" mode="out-in">
<div :key="route.path" class="route-container">
<component :is="Component" />
</div>
appmain.ts not used, stores not used
bim-ba.github.io/src/views/NotFound.vue
Lines 86 to 87 in 9afc726
this routine needs to be created after the element is not animated by animejs
const { motionProperties } = useMotionProperties(squareRef, initialProps);
const { set } = useSpring(motionProperties as PermissiveMotionProperties, { stiffness: 500 });
// TODO: get rid of `scaleY`
// this routine needs to be created after the element is not animated by `animejs`
const drag = ({ dragging, movement: [x, y] }: FullGestureState<"drag">) => {
isDragging.value = dragging;
<!-- TODO: not used -->
<template>
<slot></slot>
</template>
bim-ba.github.io/src/components/NavigationIcon.vue
Lines 36 to 65 in 9afc726
bim-ba.github.io/src/components/ColoredSquare.vue
Lines 47 to 94 in 9afc726
bim-ba.github.io/src/components/pages/projects/FloppyDisk.vue
Lines 86 to 87 in 9afc726
bim-ba.github.io/src/components/pages/projects/FloppyDisk.vue
Lines 100 to 128 in 9afc726
bim-ba.github.io/src/components/pages/projects/FloppyDisk.vue
Lines 133 to 134 in 9afc726
bim-ba.github.io/src/components/pages/main/FooterCoordinates.vue
Lines 28 to 29 in 9afc726
bim-ba.github.io/src/components/pages/main/FooterCoordinates.vue
Lines 57 to 85 in 9afc726
anime
on every call creates a new anime instance.
we can create an anime instace with necessary animation before hover method
but this will require some extra checks like component is mounted
const hover = (state: boolean) =>
const primaryImage = computed(() => props.images.find((image) => image.primary));
// hovering
//
// TODO: this can be optimized
// `anime` on every call creates a new anime instance.
// we can create an anime instace with necessary animation before hover method
// but this will require some extra checks like component is mounted
//
const hover = (state: boolean) =>
state
? anime({ targets: floppyRef.value, ...slightlyScale(1.1) })
: anime({ targets: floppyRef.value, ...normalScale(1) });
// exposed
defineExpose({ floppyRef });
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.