-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
84 lines (74 loc) · 1.89 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Markdown TOC Generator</title>
<style>
body {
background-color: #FED6D7;
font-family: Helvetica, Arial, sans-serif;
color: #333333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
padding: 0;
}
#header-image {
width: 100%;
max-width: 500px;
height: auto;
}
form, #toc-container {
max-width: 600px;
width: 80%;
padding: 20px;
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: stretch;
}
label {
font-weight: bold;
margin-bottom: 10px;
}
textarea {
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
}
#submit-button {
background-color: #222222;
color: #FED6D7;
padding: 10px;
font-size: 1.2em;
margin-top: 10px;
border: none;
cursor: pointer;
transition: background-color 0.3s ease;
}
#submit-button:hover {
background-color: #0056b3;
}
#github-link {
font-size: 0.8em;
margin-top: 20px;
}
</style>
</head>
<body>
<img id="header-image" src="img/header.jpg" alt="Header Image">
<form id="markdown-form">
<label for="markdown">Paste your markdown here:</label><br>
<textarea id="markdown" name="markdown" rows="10"></textarea><br>
<input id="submit-button" type="submit" value="Generate TOC">
</form>
<div id="toc-container">
<label for="toc">Table of contents:</label>
<textarea id="toc" rows="10" readonly></textarea>
</div>
<p id="github-link">Hosted on GitHub pages</p>
<script src="tocGenerator.js"></script>
</body>
</html>