-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (99 loc) · 3.26 KB
/
index.html
File metadata and controls
104 lines (99 loc) · 3.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Landing Page</title>
<link
href="https://fonts.googleapis.com/css2?family=Marola&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
<!-- CodeMirror CSS -->
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/codemirror.min.css"
/>
<!-- CodeMirror JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/codemirror.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.5/mode/sql/sql.min.js"></script>
</head>
<body>
<header class="header sticky-header">
<nav>
<ul class="left-nav">
<li><a href="#">SQLink</a></li>
</ul>
<ul class="right-nav">
<li><a href="#">Walkthrough</a></li>
<li><a href="#" class="button">The Detective</a></li>
</ul>
</nav>
</header>
<main>
<section class="hero">
<h1 class="title">SQLink</h1>
<p class="subtitle">add a description here later</p>
</section>
<section class="content">
<div class="section">
<h2>Investigate.</h2>
<p>Type your SQL code to Investigate.</p>
<textarea class="code-input"></textarea>
<button class="action-button">Go</button>
</div>
<div class="section">
<h2>Observe.</h2>
<p>Analyze the results.</p>
<div class="output-box"></div>
<button class="action-button">Open Results</button>
</div>
<div class="section">
<h2>Solve.</h2>
<p>Fill in the code to see if you're right.</p>
<textarea class="code-input"></textarea>
<button class="action-button">Go</button>
</div>
</section>
</main>
<footer class="footer">
<nav>
<ul class="left-footer-nav">
<li><a href="#">SQLink</a></li>
</ul>
<ul class="right-footer-nav">
<li><a href="#">Meet the Creator</a></li>
<li><a href="#">My Website</a></li>
<li><a href="#">LinkedIn</a></li>
<li><a href="#">GitHub</a></li>
</ul>
</nav>
</footer>
<!-- Initializing CodeMirror -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const editorOptions = {
lineNumbers: true,
mode: "text/x-sql",
theme: "default",
};
// CodeMirror for the first text area
const investigateTextarea = document.querySelector(
".section:nth-of-type(1) .code-input"
);
const investigateEditor = CodeMirror.fromTextArea(
investigateTextarea,
editorOptions
);
//remove later - if solve not added back
const solveTextarea = document.querySelector(
".section:nth-of-type(3) .code-input"
);
const solveEditor = CodeMirror.fromTextArea(
solveTextarea,
editorOptions
);
});
</script>
</body>
</html>