-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathindex.ejs
93 lines (75 loc) · 2.75 KB
/
index.ejs
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>The MovieVerse Database</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" />
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
<!-- Vue.js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<!-- React and ReactDOM -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.2/umd/react.production.min.js"></script>
<!-- React DOM -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.2/umd/react-dom.production.min.js"></script>
<!-- Custom CSS -->
<style>
.react-component {
background-color: #61DAFB;
color: #282c34;
padding: 20px;
margin-bottom: 20px;
}
.vue-component {
background-color: #42b883;
color: #35495e;
padding: 20px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<!-- React Root Element -->
<div id="react-root"></div>
<!-- Vue Root Element -->
<div id="vue-root"></div>
<!-- Initialize React and Vue -->
<script>
// React Component
class MyReactComponent extends React.Component {
render() {
return (
<div className="react-component">
MovieVerse App - React Component
</div>
);
}
}
// Render React Component
ReactDOM.render(<MyReactComponent />, document.getElementById('react-root'));
// Vue Instance
new Vue({
el: '#vue-root',
data: {
message: 'MovieVerse App - Vue Component!'
},
template: '<div class="vue-component">{{ message }}</div>'
});
</script>
<!-- Page content, which will be dynamically populated by JS -->
<div class="container">
<div class="row">
<div class="col-12">
<h1 class="text-center">The MovieVerse Database</h1>
</div>
</div>
</div>
<!-- Bootstrap and other necessary JavaScript -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>