-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
133 lines (121 loc) · 3.67 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
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>COMP 458 Quantum Computing Handbook</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"
rel="stylesheet"
/>
<!-- Styling time ("graphic design is my passion")-->
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
background-color: #f5f5f5;
font-family: "Inter", serif;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.pdf-container {
width: 80%;
max-width: 1000px;
height: 90%;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
background: #fff;
border-radius: 8px;
overflow: hidden;
padding: 10px;
}
.pdf-container iframe {
width: 100%;
height: 100%;
border: none;
}
#direct-pdf {
margin-top: 20px;
font-size: 15px;
font-weight: 300;
width: 50%;
font-style: italic;
text-align: center;
}
footer {
margin-bottom: 20px;
padding: 10px;
text-align: center;
}
.github-link {
display: flex;
align-items: center;
justify-content: center;
text-decoration: none;
font-weight: 500;
gap: 5px;
font-size: 14px;
color: #24292e;
}
.github-link img {
width: 20px;
height: 20px;
margin-right: 8px;
}
/* Responsiveness */
@media (max-width: 768px) {
.pdf-container {
width: 95%;
height: 80%;
padding: 5px;
}
}
@media (max-width: 480px) {
.pdf-container {
width: 100%;
height: 90%;
}
}
</style>
</head>
<body>
<main class="pdf-container">
<iframe
id="pdf-frame"
src="main.pdf"
title="COMP 458 Quantum Computing Handbook"
>
</iframe>
</main>
<p id="direct-pdf">
Trouble viewing the file?
<a href="main.pdf" target="_blank">Click here</a>.
</p>
<footer>
<a
class="github-link"
href="https://github.com/micahkepe/comp458-notes"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="20"
height="20"
viewBox="0 0 30 30"
>
<path
d="M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z"
></path>
</svg>
Source Code on GitHub
</a>
</footer>
</body>
</html>