-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
211 lines (188 loc) · 7.83 KB
/
index.php
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php require 'common.php' ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="LearnQNTM is free elearning platform that focuses on Quantum Computing. It has interactive excersises">
<meta name="author" content="Brian Turza">
<title><?php echo $lang['PAGE_TITLE'] ?> - Home</title>
<link rel="icon" href="" type="image/png">
<link rel="stylesheet" href="vendors/bootstrap/bootstrap.min.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/3.1.0/css/flag-icon.min.css" rel="stylesheet">
<link rel="stylesheet" href="vendors/fontawesome/css/all.min.css">
<link rel="stylesheet" href="vendors/themify-icons/themify-icons.css">
<link rel="stylesheet" href="vendors/linericon/style.css">
<link rel="stylesheet" href="vendors/owl-carousel/owl.theme.default.min.css">
<link rel="stylesheet" href="vendors/owl-carousel/owl.carousel.min.css">
<link rel="stylesheet" href="vendors/codemirror/lib/codemirror.css">
<link rel="stylesheet" href="vendors/codemirror/theme/material.css">
<script src="vendors/codemirror/lib/codemirror.js"></script>
<script src="vendors/codemirror/mode/python/python.js"></script>
<script src="vendors/codemirror/addon/selection/active-line.js"></script>
<script src="vendors/codemirror/addon/edit/matchbrackets.js"></script>
<link rel="stylesheet" href="css/style.css">
<style>
.CodeMirror {
height: 70vh;
}
.button {
text-transform: none !important;
}
</style>
</head>
<body>
<!--------------------Header Menu Area ------------------=-->
<?php require 'includes/navbar.php' ?>
<!--------------------Header Menu Area ------------------=-->
<main class="side-main">
<section class="hero-banner mb-30px">
<div class="container">
<div class="row">
<div class="col-lg-7">
<div class="hero-banner__img">
<img style="margin-top: -20%;" class="img-fluid" src="images/quantum.png" alt="">
</div>
</div>
<div class="col-lg-5 pt-5">
<div class="hero-banner__content">
<h1><?php echo $lang['BANNER_TITLE'] ?></h1>
<p><?php echo $lang['BANNER_CONTENT'] ?></p>
<a class="button bg" href="learn/"><?php echo $lang['BANNER_BUTTON'] ?></a>
</div>
</div>
</div>
</div>
</section>
<!-- ----------------- Feature section start ------------------=-->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path fill="#3827a9" fill-opacity="1" d="M0,320L1440,0L1440,0L0,0Z"></path>
</svg><br><br>
<!--<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320">
<path fill="#3827a9" fill-opacity="1" d="M0,224L1440,64L1440,0L0,0Z"></path>
</svg>-->
<div id="features" style="padding-top: 150px"></div>
<section class="section-margin">
<div style="margin-top: -10%;" class="container">
<div class="section-intro pb-85px text-center">
<h2 class="section-intro__title"><?php echo $lang['FEATURES_TITLE'] ?></h2>
<p class="section-intro__subtitle"><?php echo $lang['FEATURES_DESCRIPTION'] ?></p>
</div>
<div class="container">
<div class="row">
<div class="col-lg-4">
<div class="card card-feature text-center text-lg-left mb-4 mb-lg-0">
<span class="card-feature__icon">
<i class="fa fa-desktop w3-margin-bottom w3-jumbo w3-center"></i>
</span>
<h3 class="card-feature__title"><?php echo $lang['FEATURES_TITLE_EXCEC'] ?></h3>
<p class="card-feature__subtitle"><?php echo $lang['FEATURES_DESCRIPTION_EXCEC'] ?></p>
</div>
</div>
<div class="col-lg-4">
<div class="card card-feature text-center text-lg-left mb-4 mb-lg-0">
<span class="card-feature__icon">
<i class="fas fa-brain"></i>
</span>
<h3 class="card-feature__title"><?php echo $lang['FEATURES_TITLE_PROBLEM'] ?></h3>
<p class="card-feature__subtitle"><?php echo $lang['FEATURES_DESCRIPTION_PROBLEM'] ?></p>
</div>
</div>
<div class="col-lg-4">
<div class="card card-feature text-center text-lg-left mb-4 mb-lg-0">
<span class="card-feature__icon">
<i class="fas fa-laptop-code"></i>
</span>
<h3 class="card-feature__title"><?php echo $lang['FEATURES_TITLE_DOING'] ?></h3>
<p class="card-feature__subtitle"><?php echo $lang['FEATURES_DESCRIPTION_DOING'] ?></p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ------ Feature section end ---------->
<!-- -------- Online IDE section start -------->
<section class="section-margin">
<div class="container" style="height: 100vh;">
<h2>Online IDE and Compiler</h2>
<div class="editor">
<textarea id="code" name="code">
class Quantum:
def __init__(self):
self.stdout = ""
def H(self, x): # Hadamard transform
"""
This method handles Hadamard transform
:param x:
0
:return:
1/√2n(|0⟩y + |1⟩y)
"""
def SWAP(self, quibits):
"""
This method swaps to quibits and return it in representation of matrix.
:param quibits:
|00⟩, |01⟩, |10⟩, |11⟩
:return: Matrix
[[1, 0, 0, 0]
[0, 0, 1, 0]
[0, 1, 0, 0]
[0, 0, 0, 1]]
</textarea>
</div>
<a href="ide/old.php"><button style="margin-top: 1%; width:100px; height: 35px" class="btn btn-success">Run</button></a>
</div>
</section>
<!-- -------- Online IDE section end ------------>
<section class="section-padding--small bg-magnolia">
<div class="container">
<div class="row align-items-center pt-xl-3 pb-xl-5">
<div class="col-lg-6">
<div class="solution__img text-center text-lg-center mb-4 mb-lg-0">
<img style="height: 30rem; margin-top: -6rem" class="img-fluid" src="images/quantum-computer.png" alt="">
</div>
</div>
<div class="col-lg-6">
<div class="solution__content">
<h2><?php echo $lang['JOIN_TITLE'] ?></h2>
<p><?php echo $lang['JOIN_DESCRIPTION'] ?></p>
<a class="button button-light" href="learn/"><?php echo $lang['BANNER_STARTED'] ?></a>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- ------------------ start footer Area ------------------ -->
<?php require 'includes/footer.php' ?>
<!-- ------------------ End footer Area -------------------->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="vendors/bootstrap/bootstrap.bundle.min.js"></script>
<script src="vendors/owl-carousel/owl.carousel.min.js"></script>
<!--<script src="js/jquery.ajaxchimp.min.js"></script>-->
<script src="js/main.js"></script>
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: true,
styleActiveLine: true,
matchBrackets: true,
theme: 'material'
});
CodeMirror.setSize("100%", "100%");
$("#nav ul li a[href^='#']").on('click', function(e) {
// prevent default anchor click behavior
e.preventDefault();
// animate
$('html, body').animate({
scrollTop: $(this.hash).offset().top
}, 800, function(){
// when done, add hash to url
// (default click behaviour)
window.location.hash = this.hash;
});
});
</script>
</body>
</html>