-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
209 lines (180 loc) · 5.82 KB
/
index.html
File metadata and controls
209 lines (180 loc) · 5.82 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
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
<!DOCTYPE html>
<html>
<head>
<style>
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
pre {
background-color: #282c34; /* Change this to your preferred color */
padding: 10px;
border-radius: 5px;
}
.hljs-keyword {
color: #ff6347; /* Change this to your preferred color */
}
.card-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin: 20px 0;
}
.card {
background-color: #333;
color: #f2f2f2;
padding: 20px;
flex-basis: 30%; /* set flex-basis to 30% */
box-sizing: border-box;
border-radius: 5px;
margin-bottom: 20px; /* add margin to create space between cards */
}
.card a {
color: #ff6347;
text-decoration: none;
}
.sidebar {
position: fixed;
top: 0;
left: -200px;
height: 100%;
width: 200px;
background-color: #333;
color: #f2f2f2;
padding: 20px;
transition: all 0.3s ease-in-out;
}
.sidebar ul {
margin-top: 15%;
list-style-type: none;
padding: 0;
}
.sidebar a {
color: #f2f2f2;
text-decoration: none;
display: block;
padding: 10px;
border-radius: 5px;
transition: all 0.3s ease-in-out;
}
.sidebar a:hover {
background-color: #ff6347;
}
.sidebar.active {
left: 0;
}
body {
background-color: #1a1a1a;
color: #f2f2f2;
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
align-items: center;
}
/* CSS for tablets */
@media (max-width: 768px) {
body {
display: block;
}
}
/* CSS for mobile phones */
@media (max-width: 480px) {
body {
display: block;
margin: 0 auto;
}
}
header {
width: 100%;
padding: 20px 0;
background-color: #333;
color: #f2f2f2;
text-align: center;
}
nav ul {
list-style-type: none;
padding: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
a {
color: #f2f2f2;
text-decoration: none;
}
a:hover {
color: #ff6347;
}
</style>
<link rel="icon" href="https://github.com/EliasTors/eliastors.github.io/assets/46528691/5e57dcbf-0109-45d5-8321-ea85225e7ac3" type="image/x-icon">
<title>Home</title>
<!-- <link rel="stylesheet" href="https://github.com/EliasTors/eliastors.github.io/blob/main/style.css"> -->
</head>
<body>
<header>
<h1>Portfolie Elias Torstensen</h1>
</header>
<button id="sidebar-toggle" style="background-image: url('https://raw.githubusercontent.com//EliasTors//eliastors.github.io//main//assets//images//sidebar-svgrepo-com.svg'); width: 50px; height: 50px; border: none; background-size: cover; background-color: transparent;
position: absolute;
top: 30px;
left: 70px;"
></button>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/wiki">Wiki</a></li>
</ul>
</nav>
<section>
<!-- Content goes here -->
<section>
<section style="text-align: center;">
<h1 style="font-size: 36px;">Projects</h1>
</section>
<div class="card-container">
<div class="card">
<h2>Modellering II</h2>
<p>Discussion and use of ML prediction models</p>
<a href="/ModelleringII">View on GitHub</a>
</div>
<div class="card">
<h2>ProgMod 1</h2>
<p>Data management and analysis of large datasets</p>
<a href="https://github.com/Vorckea/ProgPro1">View on GitHub</a>
</div>
<div class="card">
<h2>Quizlet Match bot</h2>
<p>A very unstable and broken bot to beat quizlet match</p>
<a href="https://github.com/EliasTors/quizlet-match-bot">View on GitHub</a>
</div>
</div>
</section>
</section>
<footer>
<!-- Footer content goes here -->
</footer>
<div class="sidebar">
<button style="margin-top: 5%; margin-left: 5%;" class="sidebar-close">×</button>
<ul>
<li><a style="font-size: 250%; margin-bottom: 10%" href="">Home</a></li>
<li><a style="font-size: 250%; margin-bottom: 10%" href="wiki">Wiki</a></li>
<li><a style="font-size: 250%; margin-bottom: 10%" href="https://github.com/EliasTors">Github profile</a></li>
</ul>
</div>
<script>
const sidebarToggle = document.getElementById('sidebar-toggle');
const sidebar = document.querySelector('.sidebar');
const sidebarClose = document.querySelector('.sidebar-close');
sidebarToggle.addEventListener('click', () => {
sidebar.classList.toggle('active');
});
sidebarClose.addEventListener('click', () => {
sidebar.classList.remove('active');
});
</script>
</body>
</html>