Skip to content

Commit d25cecd

Browse files
committed
Fixing Animations and Upgrade Dioxus Motion
1 parent 0b6836e commit d25cecd

File tree

2 files changed

+25
-18
lines changed

2 files changed

+25
-18
lines changed

src/components/profile.rs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ pub fn Profile() -> Element {
2121
let content_sequence = AnimationSequence::new().then(
2222
Transform::identity(),
2323
AnimationConfig::new(AnimationMode::Spring(Spring {
24-
stiffness: 100.0,
25-
damping: 10.0,
24+
stiffness: 180.0,
25+
damping: 12.0,
2626
mass: 1.0,
2727
..Default::default()
2828
})),
@@ -32,8 +32,8 @@ pub fn Profile() -> Element {
3232
let image_sequence = AnimationSequence::new().then(
3333
Transform::identity(),
3434
AnimationConfig::new(AnimationMode::Spring(Spring {
35-
stiffness: 100.0,
36-
damping: 10.0,
35+
stiffness: 180.0,
36+
damping: 12.0,
3737
mass: 1.0,
3838
..Default::default()
3939
})),
@@ -45,15 +45,15 @@ pub fn Profile() -> Element {
4545
opacity.animate_to(
4646
1.0,
4747
AnimationConfig::new(AnimationMode::Tween(Tween {
48-
duration: Duration::from_millis(800),
48+
duration: Duration::from_millis(200),
4949
easing: easer::functions::Sine::ease_in_out,
5050
})),
5151
);
5252

5353
content_opacity.animate_to(
5454
1.0,
5555
AnimationConfig::new(AnimationMode::Tween(Tween {
56-
duration: Duration::from_millis(800),
56+
duration: Duration::from_millis(200),
5757
easing: easer::functions::Sine::ease_in_out,
5858
})),
5959
);
@@ -66,13 +66,13 @@ pub fn Profile() -> Element {
6666
];
6767

6868
let point_animations = (0..3).map(|i| {
69-
let mut point_transform = use_motion(Transform::new(-20.0, 0.0, 0.0, 0.0));
69+
let mut opacity = use_motion(0.0f32);
7070

7171
use_effect(move || {
72-
let delay = Duration::from_millis(500 + i as u64 * 400);
72+
let delay = Duration::from_millis(100 + i as u64 * 100);
7373

74-
let point_sequence = AnimationSequence::new().then(
75-
Transform::identity(),
74+
opacity.animate_to(
75+
1.0,
7676
AnimationConfig::new(AnimationMode::Spring(Spring {
7777
stiffness: 100.0,
7878
damping: 15.0,
@@ -81,14 +81,12 @@ pub fn Profile() -> Element {
8181
}))
8282
.with_delay(delay),
8383
);
84-
85-
point_transform.animate_sequence(point_sequence);
8684
});
8785

8886
rsx! {
8987
p {
9088
class: "text-text-muted leading-relaxed flex items-center space-x-2",
91-
style: "opacity: {point_transform.get_value().scale};",
89+
style: "opacity: {opacity.get_value()};",
9290
span { class: "text-primary", "•" }
9391
span { "{points_labels[i]}" }
9492
}

src/components/work_experience.rs

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,29 @@ pub fn WorkExperience() -> Element {
2626
let companies = [
2727
(
2828
"TROES Corp",
29-
"2021 - Present",
29+
"May, 2023 - Present",
3030
"Software Engineer",
31-
"Led development of battery management systems and remote monitoring solutions, resulting in 40% efficiency improvement in data processing.",
31+
"Developed high-performance battery management systems and remote monitoring solutions, achieving 40% improvement in data processing efficiency. Built robust battery controllers using Rust, with real-time monitoring through InfluxDB and Grafana. Designed scalable web platforms using Django and Vue.js for seamless IoT energy management.",
3232
vec![
3333
"Rust", "Python", "AWS", "Redis", "Vue", "Tailwind", "Docker", "Grafana", "InfluxDB",
3434
]
3535
),
3636
(
3737
"Lambton College",
38-
"2021 - Present",
38+
"Aug, 2022 - April, 2023",
3939
"Research Assistant",
40-
"Led development of battery management systems and remote monitoring solutions, resulting in 40% efficiency improvement in data processing.",
40+
"Focused on developing remote monitoring systems for battery energy storage using Flutter, Vue.js, and Django. Designed and implemented web and mobile applications to track system performance, enabling real-time data access and improving overall monitoring efficiency.",
4141
vec![
42-
"Rust", "Python", "AWS", "Redis", "Vue", "Tailwind", "Docker", "Grafana", "InfluxDB",
42+
"Python", "AWS", "Vue", "Tailwind", "Docker", "InfluxDB",
43+
]
44+
),
45+
(
46+
"Seva Development",
47+
"Oct, 2021 - Jan, 2022",
48+
"Contract Based Software Engineer",
49+
"Developed a data migration engine as a Software Engineer, enabling seamless data transfer between diverse sources and destinations, including MySQL, Oracle, PostgreSQL, and Salesforce. Optimized the migration process for accuracy and efficiency, ensuring reliable data handling across multiple platforms.",
50+
vec![
51+
"Python", "AWS Lambda","PostgreSQL",
4352
]
4453
),
4554
];

0 commit comments

Comments
 (0)