-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchineseApp.js
60 lines (52 loc) · 2.08 KB
/
chineseApp.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import './App.css';
import ChineseSidebar from './components/chineseSidebar';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
import ToothbrushGallery from './components/toothbrushGallery';
import chineseContact from './Chinese/chineseContact';
import { React } from 'react';
import { PatientEducation, Dentistry } from './Chinese/chineseDental';
import Gallery from './English/englishPhotos';
import chineseMainPage from './Chinese/cWelcome';
import YoutubeEmbed from './Chinese/YoutubeEmbed';
import { useState } from "react";
import galleryTitle from './components/img/tupianliuliangb.gif';
import videoTitle from './components/img/videogb.gif'
const ChineseApp = () => {
//sets slide number for toothbrush gallery
const [slideIndex, setSlideIndex] = useState(0);
return (
<div className="welcome">
<div className="sidebar">
<ChineseSidebar onClick={setSlideIndex} />
</div>
<div className="siteBody">
<Switch>
<Route path="/ch/contact" component={chineseContact}></Route>
<Route path="/ch/dentalInfo/education" component={PatientEducation} />
<Route path="/ch/dentalInfo/dentistry" component={Dentistry} />
<Route path="/ch/photos" >
<img className="photoTitle" src={galleryTitle}></img>
<Gallery></Gallery>
</Route>
<Route path="/ch/toothbrush" >
<ToothbrushGallery slideIndex={slideIndex} />
</Route>
<Route path="/ch/teethbrushvideo" >
<img className="photoTitle" src={videoTitle}></img>
<YoutubeEmbed embedId="DuYX6rSrHTg"></YoutubeEmbed>
</Route>
<Route path="/ch/teethbrushvideo2" >
<img className="photoTitle" src={videoTitle}></img>
<YoutubeEmbed embedId="BTlD_KGcka4"></YoutubeEmbed>
</Route>
<Route path="/ch" component={chineseMainPage}>
</Route>
<Route path="/">
<chineseMainPage></chineseMainPage>
</Route>
</Switch>
</div>
</div >
);
}
export default ChineseApp;