Skip to content

Commit 8090560

Browse files
authored
Merge pull request #3 from wheregmis/migrating_dx_motion
Typo fix
2 parents 2998f7c + 0b2d2fc commit 8090560

File tree

5 files changed

+22
-38
lines changed

5 files changed

+22
-38
lines changed

.github/workflows/gh_pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
run: cargo binstall -y [email protected] --locked
2323
- uses: actions/checkout@v2
2424
- name: Build
25-
run: dx build --release --platform web
25+
run: dx bundle --release --platform web
2626
- name: Deploy 🚀
2727
uses: JamesIves/[email protected]
2828
with:

src/components/project_grid.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ use dioxus_motion::{
66
use easer::functions::Easing;
77
use std::time::Duration;
88

9-
use crate::{HTML_RSX_PIC, MOTION_PIC};
10-
119
#[component]
1210
pub fn ProjectGrid() -> Element {
1311
rsx! {
@@ -24,14 +22,14 @@ pub fn ProjectGrid() -> Element {
2422
ProjectCard {
2523
title: "Dioxus Motion 🚀",
2624
description: "A lightweight, cross-platform animation library for Dioxus, designed to bring smooth, flexible animations to your Rust web, desktop, and mobile applications.",
27-
image: MOTION_PIC.to_string(),
25+
image: "https://devpro-aceternity.vercel.app/_next/image?url=%2Fimages%2Fprojects%2Falgochurn.png&w=3840&q=75",
2826
tech_stack: vec!["Rust", "Dioxus", "Tailwind"],
2927
link: "https://crates.io/crates/dioxus-motion",
3028
}
3129
ProjectCard {
3230
title: "HTML to RSX Converter",
3331
description: "Convert HTML to Dioxus RSX with a single click. A simple yet powerful tool built with Rust and Dioxus.",
34-
image: HTML_RSX_PIC.to_string(),
32+
image: "https://devpro-aceternity.vercel.app/_next/image?url=%2Fimages%2Fprojects%2Falgochurn.png&w=3840&q=75",
3533
tech_stack: vec!["Rust", "Dioxus", "Tailwind"],
3634
link: "https://wheregmis.github.io/dioxus_html_rsx/",
3735
}

src/components/testimonials.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
use dioxus::hooks::*;
22
use dioxus::prelude::*;
3-
use dioxus_motion::{enhanced_motion::use_motion, prelude::*};
3+
use dioxus_motion::{
4+
enhanced_motion::{use_motion, AnimationSequence, EnhancedAnimationManager},
5+
prelude::*,
6+
};
47
use easer::functions::Easing;
58
use std::time::Duration;
69

@@ -23,14 +26,15 @@ pub fn Testimonials() -> Element {
2326
role: "I Myself".into(),
2427
company: "My Own World".into(),
2528
avatar: PROFILE_PIC.to_string(),
26-
quote: "I am fucking awesome and i know it, Before someput put testimonials i need to judge myself".into(),
29+
quote: "I am fucking awesome and i know it, and i dont need someone else to judge me"
30+
.into(),
2731
},
2832
TestimonialProps {
2933
name: "Kshitiz Bhattarai".into(),
3034
role: "My Friend".into(),
3135
company: "My Badass COmpany".into(),
3236
avatar: "https://api.uifaces.co/our-content/donated/xZ4wg2Xj.jpg".into(),
33-
quote: "Sabin is the coolest dev i ever know".into(),
37+
quote: "Sabin is the coolest dev i have ever known".into(),
3438
},
3539
];
3640

src/components/work_experience.rs

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,29 +26,20 @@ pub fn WorkExperience() -> Element {
2626
let companies = [
2727
(
2828
"TROES Corp",
29-
"May, 2023 - Present",
29+
"2021 - Present",
3030
"Software Engineer",
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.",
31+
"Led development of battery management systems and remote monitoring solutions, resulting in 40% efficiency improvement in data processing.",
3232
vec![
3333
"Rust", "Python", "AWS", "Redis", "Vue", "Tailwind", "Docker", "Grafana", "InfluxDB",
3434
]
3535
),
3636
(
3737
"Lambton College",
38-
"Aug, 2022 - April, 2023",
38+
"2021 - Present",
3939
"Research Assistant",
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.",
40+
"Led development of battery management systems and remote monitoring solutions, resulting in 40% efficiency improvement in data processing.",
4141
vec![
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",
42+
"Rust", "Python", "AWS", "Redis", "Vue", "Tailwind", "Docker", "Grafana", "InfluxDB",
5243
]
5344
),
5445
];
@@ -164,7 +155,7 @@ pub fn WorkExperience() -> Element {
164155
// Timeline line container
165156
div {
166157
id: "timeline-line",
167-
class: "relative h-[calc(100%)] bg-gray-800",
158+
class: "relative h-[calc(100%-2rem)] bg-gray-800",
168159
// Moving dot
169160
div {
170161
id: "timeline-dot",
@@ -173,7 +164,7 @@ pub fn WorkExperience() -> Element {
173164
onmounted: move |_| {
174165
dot_transform
175166
.animate_to(
176-
Transform::new(0.0, 280.0, 1.0, 0.0),
167+
Transform::new(0.0, 200.0, 1.0, 0.0),
177168
AnimationConfig::new(
178169
AnimationMode::Spring(Spring {
179170
stiffness: 100.0,

src/views/blog.rs

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use dioxus_motion::{
55
prelude::*,
66
};
77
use document::eval;
8-
use easer::functions::Easing;
98
// Add this import
109
use serde::Deserialize;
1110

@@ -95,14 +94,6 @@ pub fn BlogPreview() -> Element {
9594
.with_delay(Duration::from_millis(1300)),
9695
);
9796
card_transform.animate_sequence(card_sequence);
98-
99-
card_opacity.animate_to(
100-
1.0,
101-
AnimationConfig::new(AnimationMode::Tween(Tween {
102-
duration: Duration::from_millis(600),
103-
easing: easer::functions::Sine::ease_in_out,
104-
})),
105-
);
10697
};
10798
rsx! {
10899
Link { to: Route::Blog { id: post.id },
@@ -179,17 +170,17 @@ pub fn Blog(id: i32) -> Element {
179170
eval(
180171
r#"
181172
hljs.highlightAll();
182-
173+
183174
// Add copy function
184175
window.copyCode = function(button) {
185176
const pre = button.parentElement.querySelector('pre');
186177
const code = pre.textContent;
187-
178+
188179
navigator.clipboard.writeText(code).then(() => {
189180
const originalText = button.textContent;
190181
button.textContent = 'Copied!';
191182
button.style.backgroundColor = 'rgba(46, 160, 67, 0.4)';
192-
183+
193184
setTimeout(() => {
194185
button.textContent = originalText;
195186
button.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
@@ -198,7 +189,7 @@ pub fn Blog(id: i32) -> Element {
198189
console.error('Failed to copy:', err);
199190
button.textContent = 'Error!';
200191
button.style.backgroundColor = 'rgba(248, 81, 73, 0.4)';
201-
192+
202193
setTimeout(() => {
203194
button.textContent = 'Copy';
204195
button.style.backgroundColor = 'rgba(255, 255, 255, 0.1)';
@@ -215,7 +206,7 @@ pub fn Blog(id: i32) -> Element {
215206
copyButton.className = 'copy-button';
216207
copyButton.textContent = 'Copy';
217208
copyButton.onclick = function() { copyCode(this); };
218-
209+
219210
pre.parentNode.insertBefore(wrapper, pre);
220211
wrapper.appendChild(pre);
221212
wrapper.appendChild(copyButton);

0 commit comments

Comments
 (0)