-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
187 lines (149 loc) · 7.41 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<!-- <script async src="https://www.googletagmanager.com/gtag/js?id=G-PNQX1JJWVB"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-PNQX1JJWVB'); -->
</script>
<title>daniellewisDL</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="./src/favicon.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="./css/style.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="https://use.fontawesome.com/7e37785e6e.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.js"></script>
</head>
<body style="background-color: rgb(255, 255, 255);">
<header style="min-height: 250px;">
<nav class="navbar navbar-expand" style="z-index: 20;">
<div class="container-fluid">
<a class="navbar-brand nav-link" href="#"><strong>DL</strong></a>
<!-- <ul class="navbar-nav me-auto">
<li class="nav-item"><a class="nav-link" href="#sections">sections</a></li>
<li class="nav-item active"><a class="nav-link" href="#about">about</a></li>
</ul> -->
<ul class="navbar-nav d-flex flex-row">
<li class="nav-item me-3"><a class="nav-link" href="https://www.linkedin.com/in/daniel-lewis-a5a96b73/" rel="nofollow" target="_blank"><i class="fa fa-linkedin"></i></a></li>
<li class="nav-item me-3"><a class="nav-link" href="https://twitter.com/daniellewisdl" rel="nofollow" target="_blank"><i class="fa fa-twitter"></i></a></li>
<li class="nav-item me-3"><a class="nav-link" href="https://github.com/daniellewisDL" rel="nofollow" target="_blank"><i class="fa fa-github"></i></a></li>
</ul>
</div>
</nav>
<div id="banner" class="align-items-center justify-content-center" style="height: 100%; z-index: 19;">
<div class="container d-flex text-center align-items-center" style="height: 100%;">
<div class="w-100 mt-2 mb-5" style="height: 100%;">
<h1 class="display-1"><dl></h1>
<p class="lead mb-0">A homepage</p>
</div>
</div>
</div>
</header>
<main class="my-5">
<div class="container d-flex justify-content-center" id="latestPosts" style="max-width: 1600px;">
<section>
<!-- <h4 class="display-6 mt-2 mb-2">Sections</h4> -->
<div class="row w-100" id="sections"></div>
</section>
</div>
<div class="container d-flex justify-content-center" id="about" style="margin-top: 60px; max-width: 1600px;">
<section>
<h4 class="display-6 mb-2">About</h4>
<div class="row">
<div class="col-12 d-flex justify-content-center">
<div class="card">
<div class="card-body">
<p class="card-text">I'm Dan. This is my homepage, where I post a bunch of stuff I find of interest.</p>
<hr>
<p class="card-text">If you would like to contact me please use the social links below or at the top of the page.</p>
</div>
</div>
</div>
</div>
</section>
</div>
</main>
<footer class="bg-light text-lg-start">
<hr>
<div class="text-center align-items-center" style="background-color: rgb(255, 255, 255);">
<a href="https://www.linkedin.com/in/daniel-lewis-a5a96b73/" class="btn" role="button" rel="nofollow" target="_blank">
<i class="fa fa-linkedin"></i>
</a>
<a href="https://twitter.com/daniellewisdl" class="btn" role="button" rel="nofollow" target="_blank">
<i class="fa fa-twitter"></i>
</a>
<a href="https://github.com/daniellewisDL" class="btn" role="button" rel="nofollow" target="_blank">
<i class="fa fa-github"></i>
</a>
</div>
<div class="text-center p-3 text-dark" style="background-color: rgb(255, 255, 255);">
Built with VSCode by
<a class="text-dark" href="#">Daniel Lewis</a>, 2019-2024
</div>
</footer>
<script>
const sectionData = [
{link: "./visualBlog/index.html", thumbnail: "./src/visualBlog.png", title: "Generative Art", description: "A visual blog of generative art."},
{link: "./stampsBlog/index.html", thumbnail: "./src/stamps.png", title: "Stamps", description: "A tour through some philatelic delights."},
{link: "./dataBlog/index.html", thumbnail: "./src/data.png", title: "Data Insights", description: "A collection of data visualisations."},
{link: "./verbalBlog/index.html", thumbnail: "./src/verbal.png", title: "Verbal Blog", description: "A verbal blog on various topics."},
]
const cardBoilerplate = (section) => {
return `
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12 mt-2 mb-2 mx-auto d-flex justify-content-center">
<a href="${section.link}" class="myCardLink">
<div class="card" style="max-width: 180px">
<img src="${section.thumbnail}" alt="${section.title}" style="max-width: 180px">
<div class="col-12">
<div class="card-body">
<div class="my-card-header">
<p class="card-title">${section.title}</p>
<p class="text-muted" style="font-size: xx-small;">${section.description}</p>
</div>
</div>
</div>
</div>
</a>
</div>
`
}
sectionData.forEach(section => {
document.getElementById('sections').innerHTML += cardBoilerplate(section)
})
</script>
<script>
let canvas
function windowResized() {
resizeCanvas(windowWidth, 250);
}
function setup() {
canvas = createCanvas(windowWidth, 250);
canvas.position(0,0);
canvas.style('z-index', '0');
noFill()
}
function draw() {
background(255)
stroke(255,0,0,40)
strokeWeight(0.5)
for (let i = 0; i < windowWidth; i+=10) {
line(i, 0, i, 250)
}
for (let i = 0; i < 250; i+=10) {
line(0, i, windowWidth, i)
}
strokeWeight(1)
stroke(0,0,0,40)
line(0, 250, windowWidth, 250)
line(0,mouseY, windowWidth, mouseY)
line(mouseX, 0, mouseX, 250)
circle(mouseX, mouseY, 10)
}
</script>
</body>
</html>