-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
133 lines (114 loc) · 6.69 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>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title>Benjamin Lam Portfolio</title>
<!-- Load jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<!-- Load the html2pdf library for downloading the full portfolio -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.9.3/html2pdf.bundle.min.js"></script>
<script src="js/download_full_portfolio.js"></script>
<!-- Load the paths for js -->
<script src="js/paths.js"></script>
<!-- Load the p5.js library and application -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/1.4.0/p5.js"></script>
<script src="js/p5_splash/app.js"></script>
<style>
@keyframes fadeIn {
from {
opacity: 0;
background-color: black; /* Start with black */
}
to {
opacity: 1;
background-color: transparent; /* End with transparent or the final color */
}
}
/* Set up the canvas as a background */
#p5-canvas {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 90vh;
z-index: -1; /* Make sure it's behind the splash content */
}
splash {
position: relative;
z-index: 1; /* Ensure the splash content is above the canvas */
background: transparent;
}
</style>
</head>
<body>
<!-- p5.js Canvas -->
<div id="p5-splash"></div>
<!-- Splash header -->
<splash>
<div class="container-fluid text-white" style="height: 90vh; padding-top: 30vh;">
<div class="container">
<div class="row">
<div class="col-lg-2">
<img class="rounded-circle" alt="Profile Picture" src="ProfPic.JPG"
style="width: 100%; max-width: 150px; height: auto; object-fit: cover; object-position: 10% 50%;" />
</div>
<div class="col-lg-10">
<h1 class="display-2 d-none d-lg-block" style="font-family: Arial;">Benjamin Lam</h1>
<h1 class="display-4 d-lg-none" style="font-family: Arial;">Benjamin Lam</h1>
<h2 >Engineering Portfolio</h2>
<!-- Single resume button for large screens -->
<a href="/resume/BENJAMIN LAM_Resume.pdf">
<button class="btn btn-primary mt-2 btn-lg d-none d-lg-inline-block">Resume</button>
</a>
<!-- Single resume button for small screens -->
<a href="/resume/BENJAMIN LAM_Resume.pdf">
<button class="btn btn-primary mt-2 btn-sm d-lg-none">Resume</button>
</a>
<!-- Download full portfolio button -->
<a href="/projects/BenjaminLam_FullPortfolio.pdf" download>
<button class="btn btn-secondary mt-2 btn-lg d-none d-lg-inline-block">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"></path>
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"></path>
</svg>
Download Full Portfolio</button>
</a>
<a href="/projects/BenjaminLam_FullPortfolio.pdf" download>
<button class="btn btn-secondary mt-2 btn-sm d-lg-none" >
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"></path>
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708z"></path>
</svg>
Download Full Portfolio
</button>
</a>
</div>
</div>
</div>
</div>
</splash>
<!-- Site Body -->
<main>
<div class="container mt-3" style="padding-bottom: 20vh;">
<!-- Projects Section -->
<div class="container mt-3">
<div class="row">
<!-- Project Section Title -->
<div class="col-lg-12">
<h1 class="display-5">Projects</h1>
<hr style="height: 1px; background-color: black;">
</div>
<!-- Project Summary Cards -->
<div id="projects" class="col"></div>
<!-- Render the Project cards showing the summaries -->
<script src="/js/render_project_cards.js"></script>
</div>
</div>
</div>
</main>
</body>
</html>