Skip to content

Commit 1f36ff9

Browse files
committed
swiper loading but not properly, test file added
1 parent 56134ee commit 1f36ff9

File tree

9 files changed

+703
-531
lines changed

9 files changed

+703
-531
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"react": "^18.2.0",
44
"react-dom": "^18.2.0",
55
"react-icons": "^4.4.0",
6-
"swiper": "^8.4.3"
6+
"swiper": "^8.4.4"
77
}
88
}

portfolio_website/package-lock.json

Lines changed: 662 additions & 518 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

portfolio_website/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"@testing-library/user-event": "^13.5.0",
1010
"react": "^18.2.0",
1111
"react-dom": "^18.2.0",
12-
"react-scripts": "5.0.1",
12+
"react-scripts": "^5.0.1",
13+
"swiper": "^8.4.4",
1314
"web-vitals": "^2.1.4"
1415
},
1516
"scripts": {

portfolio_website/src/App.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,25 @@ import About from './components/about/About.jsx'
66
import Experience from './components/experience/Experience.jsx'
77
import Services from './components/services/Services.jsx'
88
import Portfolio from './components/portfolio/Portfolio.jsx'
9-
import Work_History from './components/work_history/Work_History.jsx'
9+
import WorkHistory from './components/workhistory/WorkHistory.jsx'
1010
import Contact from './components/contact/Contact.jsx'
1111
import Footer from './components/footer/Footer.jsx'
12+
import Test from './components/workhistory/Test.jsx'
1213

1314
//all self closing tags
1415
const app = () => {
1516
return (
16-
<>
17+
<div id='app'>
1718
<Header />
1819
<Nav />
1920
<About />
2021
<Experience />
2122
<Portfolio />
22-
<Work_History />
23+
<WorkHistory />
2324
<Contact />
2425
<Footer />
25-
</>
26+
<Test />
27+
</div>
2628
)
2729
}
2830

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Import Swiper React components
2+
import { Swiper, SwiperSlide } from 'swiper/react';
3+
4+
// Import Swiper styles
5+
import 'swiper/css';
6+
7+
const Test = () => {
8+
return (
9+
<Swiper
10+
spaceBetween={50}
11+
slidesPerView={3}
12+
onSlideChange={() => console.log('slide change')}
13+
onSwiper={(swiper) => console.log(swiper)}
14+
>
15+
<SwiperSlide>Slide 1</SwiperSlide>
16+
<SwiperSlide>Slide 2</SwiperSlide>
17+
<SwiperSlide>Slide 3</SwiperSlide>
18+
<SwiperSlide>Slide 4</SwiperSlide>
19+
</Swiper>
20+
);
21+
};
22+
23+
export default Test

portfolio_website/src/components/work_history/Work_History.jsx renamed to portfolio_website/src/components/workhistory/WorkHistory.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Uidaho from '../../assets/uidaho.jpg'
66
// import Swiper core and required modules
77
import { Pagination } from 'swiper';
88

9+
// Import Swiper React components
910
import { Swiper, SwiperSlide } from 'swiper/react';
1011

1112
// Import Swiper styles

portfolio_website/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import './index.css'
22
import App from './App'
33

44
import { createRoot } from 'react-dom/client';
5+
56
const container = document.querySelector("#root");
67
const root = createRoot(container); // createRoot(container!) if you use TypeScript
78
root.render(<App tab="home" />);

0 commit comments

Comments
 (0)