-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.html
More file actions
252 lines (220 loc) · 11.9 KB
/
index.html
File metadata and controls
252 lines (220 loc) · 11.9 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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
---
layout: default
title: Home
---
<!--
CLEANUP NOTE:
Removed <html>, <head>, <body>, <nav>, <footer> to prevent duplication.
This file now only contains the unique content for the Homepage.
-->
<style>
/* Homepage specific styles */
.image-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.image-card:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(6, 182, 212, 0.15), 0 10px 10px -5px rgba(6, 182, 212, 0.04); }
/* Gallery Modal Styles */
#galleryModal { transition: opacity 0.3s ease-in-out; }
#galleryModal.hidden { opacity: 0; pointer-events: none; }
#galleryModal:not(.hidden) { opacity: 1; pointer-events: auto; }
.gallery-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(255, 255, 255, 0.1);
color: white;
border: 1px solid rgba(255, 255, 255, 0.2);
width: 3rem;
height: 3rem;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
z-index: 110;
backdrop-filter: blur(4px);
}
.gallery-btn:hover {
background: rgba(6, 182, 212, 0.9); /* brand-primary */
border-color: rgba(6, 182, 212, 0.9);
color: white;
}
.prev-btn { left: 1.5rem; }
.next-btn { right: 1.5rem; }
@media (max-width: 640px) {
.prev-btn { left: 0.5rem; }
.next-btn { right: 0.5rem; }
}
</style>
<!-- SECTION 1: Hero -->
<section class="bg-white py-24 md:py-32 relative overflow-hidden">
<div class="absolute top-0 right-0 -translate-y-1/2 translate-x-1/3 w-[800px] h-[800px] bg-brand-primary/5 rounded-full blur-[120px] pointer-events-none"></div>
<div class="max-w-5xl mx-auto px-4 text-center relative z-10">
<h1 class="text-5xl md:text-7xl font-extrabold text-brand-dark mb-10 leading-[1.1] tracking-tight">
Accelerating drug discovery through <br>
<span class="text-transparent bg-clip-text bg-gradient-to-r from-brand-primary-dark to-brand-accent">open source collaboration.</span>
</h1>
<div class="prose prose-xl text-slate-500 mx-auto max-w-3xl leading-relaxed">
<p>
We champion patent-free, borderless Open Source Drug Discovery. By sharing real-time data and crowdsourcing solutions, we break traditional silos to accelerate cures for global health challenges.
</p>
</div>
<div class="mt-14 flex justify-center">
<a href="{{ site.baseurl }}/research.html" class="px-10 py-4 bg-brand-dark text-white font-bold rounded-full hover:bg-slate-800 transition shadow-xl shadow-brand-dark/20 hover:shadow-brand-dark/30 transform hover:-translate-y-1 no-underline">
Explore Our Research
</a>
</div>
<div class="mt-16 flex justify-center">
<img src="./pics/Logos.png" alt="Partners and Logos" class="w-[80%] md:w-[70%] h-auto opacity-90 hover:opacity-100 transition-opacity duration-300">
</div>
</div>
</section>
<!-- SECTION 2: Life at School of Pharmacy UCL (Gallery Trigger) -->
<section class="bg-brand-light py-24 border-t border-slate-200">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex flex-col md:flex-row justify-between items-end mb-12 gap-4">
<div>
<div class="w-12 h-1.5 bg-brand-primary mb-6 rounded-full"></div>
<h3 class="text-4xl text-brand-dark font-bold tracking-tight">Life at the School of Pharmacy UCL</h3>
</div>
<div class="text-sm text-slate-400 font-medium">
<i class="fas fa-images mr-2 text-brand-primary"></i> Click cards to view full gallery
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-8 md:gap-12">
<!-- Gallery Card 1: Brunswick Square -->
<div onclick="openGallery('brunswick')" class="image-card group cursor-pointer relative rounded-2xl overflow-hidden bg-brand-dark shadow-lg h-80">
<div class="relative w-full h-full">
<!-- Cover Image: Update src to your first image -->
<img src="pics/sop_pic_2.jpg" alt="Brunswick Square" class="w-full h-full object-cover transition duration-700 group-hover:scale-105 opacity-90 group-hover:opacity-100">
<div class="absolute inset-0 bg-gradient-to-t from-brand-dark/90 via-brand-dark/20 to-transparent opacity-90 pointer-events-none"></div>
<div class="absolute bottom-0 left-0 p-8 w-full">
<div class="flex justify-between items-end">
<div>
<span class="text-brand-accent font-bold tracking-widest text-xs uppercase mb-2 block">Campus</span>
<span class="text-white font-bold text-2xl tracking-tight">Brunswick Square</span>
</div>
<div class="w-10 h-10 rounded-full bg-white/10 backdrop-blur-sm flex items-center justify-center text-white group-hover:bg-brand-primary transition-colors">
<i class="fas fa-images"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Gallery Card 2: The Lab -->
<div onclick="openGallery('lab')" class="image-card group cursor-pointer relative rounded-2xl overflow-hidden bg-brand-dark shadow-lg h-80">
<div class="relative w-full h-full">
<!-- Cover Image: Update src to your first image -->
<img src="./pics/lab_1.jpg" alt="Laboratories" class="w-full h-full object-cover transition duration-700 group-hover:scale-105 opacity-90 group-hover:opacity-100">
<div class="absolute inset-0 bg-gradient-to-t from-brand-dark/90 via-brand-dark/20 to-transparent opacity-90 pointer-events-none"></div>
<div class="absolute bottom-0 left-0 p-8 w-full">
<div class="flex justify-between items-end">
<div>
<span class="text-brand-accent font-bold tracking-widest text-xs uppercase mb-2 block">Facilities</span>
<span class="text-white font-bold text-2xl tracking-tight">G25 Lab</span>
</div>
<div class="w-10 h-10 rounded-full bg-white/10 backdrop-blur-sm flex items-center justify-center text-white group-hover:bg-brand-primary transition-colors">
<i class="fas fa-images"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- SECTION 3: External Partners -->
<section class="bg-white py-24 border-t border-slate-100">
<div class="max-w-7xl mx-auto px-4">
<p class="text-center text-xs font-bold text-slate-400 uppercase tracking-[0.25em] mb-16">Supported By & Partnering With</p>
<div class="flex flex-wrap justify-center items-center gap-x-16 gap-y-12">
<div class="group cursor-pointer transition duration-300"><span class="text-xl font-bold text-slate-400 group-hover:text-brand-primary transition-colors">Gates Foundation</span></div>
<div class="group cursor-pointer transition duration-300"><span class="text-xl font-bold text-slate-400 group-hover:text-brand-primary transition-colors">EPSRC</span></div>
<div class="group cursor-pointer transition duration-300"><span class="text-xl font-bold text-slate-400 group-hover:text-brand-primary transition-colors">Wellcome</span></div>
<div class="group cursor-pointer transition duration-300"><span class="text-xl font-bold text-slate-400 group-hover:text-brand-primary transition-colors">MMV</span></div>
<div class="group cursor-pointer transition duration-300"><span class="text-xl font-bold text-slate-400 group-hover:text-brand-primary transition-colors">SGC</span></div>
</div>
</div>
</section>
<!-- Gallery Modal (Lightbox) -->
<div id="galleryModal" class="fixed inset-0 z-[100] flex items-center justify-center bg-black/95 hidden backdrop-blur-sm" onclick="closeGallery()">
<button class="gallery-btn prev-btn" onclick="event.stopPropagation(); changeImage(-1)">
<i class="fas fa-chevron-left text-2xl"></i>
</button>
<button class="gallery-btn next-btn" onclick="event.stopPropagation(); changeImage(1)">
<i class="fas fa-chevron-right text-2xl"></i>
</button>
<button onclick="closeGallery()" class="absolute top-6 right-6 text-white/50 hover:text-white transition p-2 z-[120]">
<svg class="w-10 h-10" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path></svg>
</button>
<div class="relative max-w-7xl w-full h-full flex flex-col items-center justify-center p-4">
<img id="galleryImage" src="" alt="Full View" class="max-h-[80vh] max-w-full object-contain shadow-2xl rounded-sm" onclick="event.stopPropagation()">
<div class="text-center mt-6">
<h3 id="galleryTitle" class="text-white text-2xl font-bold tracking-wide mb-2"></h3>
<p id="galleryCounter" class="text-brand-primary font-mono text-sm tracking-widest">1 / 6</p>
</div>
</div>
</div>
<script>
// DATA CONFIGURATION: Update your image paths here
const galleries = {
'brunswick': {
title: 'Brunswick Square Campus',
images: [
'pics/sop_pic_2.jpg',
'pics/sop_pic_1.jpg',
'pics/sop_pic_3.jpg',
'pics/sop_pic_4.jpg',
'pics/sop_pic_5.jpg',
'pics/sop_pic_6.jpg'
]
},
'lab': {
title: 'State-of-the-art Laboratories',
images: [
'./pics/lab_1.jpg',
'./pics/lab_2.jpg',
'./pics/lab_3.jpg',
'./pics/lab_4.jpg',
'./pics/lab_5.jpg',
'./pics/lab_6.jpg'
]
}
};
let currentGalleryId = null;
let currentIndex = 0;
function openGallery(galleryId) {
if (!galleries[galleryId]) return;
currentGalleryId = galleryId;
currentIndex = 0;
updateGalleryView();
const modal = document.getElementById('galleryModal');
modal.classList.remove('hidden');
document.body.style.overflow = 'hidden';
}
function closeGallery() {
const modal = document.getElementById('galleryModal');
modal.classList.add('hidden');
document.body.style.overflow = '';
}
function changeImage(direction) {
if (!currentGalleryId) return;
const images = galleries[currentGalleryId].images;
currentIndex = (currentIndex + direction + images.length) % images.length;
updateGalleryView();
}
function updateGalleryView() {
const data = galleries[currentGalleryId];
const img = document.getElementById('galleryImage');
const title = document.getElementById('galleryTitle');
const counter = document.getElementById('galleryCounter');
img.src = data.images[currentIndex];
title.textContent = data.title;
counter.textContent = `${currentIndex + 1} / ${data.images.length}`;
}
document.addEventListener('keydown', function(event) {
if (document.getElementById('galleryModal').classList.contains('hidden')) return;
if (event.key === "Escape") closeGallery();
if (event.key === "ArrowLeft") changeImage(-1);
if (event.key === "ArrowRight") changeImage(1);
});
</script>