Repository navigation
Expand file tree
/
Copy pathtest1.html
More file actions
211 lines (198 loc) · 8.09 KB
/
Copy pathtest1.html
File metadata and controls
211 lines (198 loc) · 8.09 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Genomic hero demos – ELIXIR palette</title>
<style>
/* Palette */
:root{
--green:#acd196; --yellow:#F9EC78; --teal:#00abb2; --ink:#0b2239;
--hero-h: 400px; /* tweak hero height */
--pad: 64px 16px; /* top/bottom padding */
}
html,body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--ink);background:#fafafa}
h2{margin:24px 0 10px;font-size:18px;color:#234}
.wrap{max-width:1100px;margin:0 auto;padding:18px}
/* Shared hero styles */
.hero{
position:relative; min-height:var(--hero-h); padding:var(--pad);
display:grid; place-items:center; text-align:center; overflow:hidden;
background: linear-gradient(115deg, var(--green) 0%, var(--yellow) 100%);
border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.06); margin:14px 0 40px;
}
.hero .inner{position:relative; z-index:1; max-width:1000px}
.hero h1{margin:0; font-weight:800; font-size:clamp(28px,6vw,54px); line-height:1.08}
.hero p {margin:.6rem 0 0; font-size:clamp(14px,2.4vw,19px); opacity:.9}
/* Artwork layer lives in ::before so HTML stays clean */
.hero::before{
content:""; position:absolute; inset:0; z-index:0; background-repeat:no-repeat;
/* default: nothing, each variant sets its own backgrounds */
}
/* ========= Variant 1: Helix left + Mesh right ========= */
.h-helix-mesh::before{
background-image:
/* Left DNA helix */
url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 800'>\
<g fill='none' stroke='%2300abb2' stroke-linecap='round' stroke-width='26' opacity='.60'>\
<path d='M 60 40 C 160 160 160 640 60 760'/>\
<path d='M 160 40 C 60 160 60 640 160 760'/>\
</g>\
<g fill='%2300abb2' opacity='.35'>\
<rect x='78' y='120' width='64' height='16' rx='8'/>\
<rect x='78' y='190' width='64' height='16' rx='8'/>\
<rect x='78' y='260' width='64' height='16' rx='8'/>\
<rect x='78' y='330' width='64' height='16' rx='8'/>\
<rect x='78' y='400' width='64' height='16' rx='8'/>\
<rect x='78' y='470' width='64' height='16' rx='8'/>\
<rect x='78' y='540' width='64' height='16' rx='8'/>\
<rect x='78' y='610' width='64' height='16' rx='8'/>\
</g>\
</svg>"),
/* Right network mesh */
url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'>\
<g fill='none' stroke='%2300abb2' stroke-opacity='.35' stroke-width='3'>\
<line x1='320' y1='120' x2='520' y2='210'/>\
<line x1='520' y1='210' x2='700' y2='320'/>\
<line x1='700' y1='320' x2='860' y2='260'/>\
<line x1='520' y1='210' x2='620' y2='420'/>\
<line x1='620' y1='420' x2='840' y2='520'/>\
<line x1='680' y1='300' x2='900' y2='460'/>\
<line x1='840' y1='520' x2='1040' y2='580'/>\
<line x1='620' y1='420' x2='480' y2='520'/>\
<line x1='480' y1='520' x2='680' y2='620'/>\
<line x1='680' y1='620' x2='900' y2='680'/>\
</g>\
<g fill='%2300abb2' fill-opacity='.45'>\
<circle cx='320' cy='120' r='8'/>\
<circle cx='520' cy='210' r='8'/>\
<circle cx='700' cy='320' r='8'/>\
<circle cx='860' cy='260' r='8'/>\
<circle cx='620' cy='420' r='8'/>\
<circle cx='840' cy='520' r='8'/>\
<circle cx='900' cy='460' r='8'/>\
<circle cx='1040' cy='580' r='8'/>\
<circle cx='480' cy='520' r='8'/>\
<circle cx='680' cy='620' r='8'/>\
<circle cx='900' cy='680' r='8'/>\
</g>\
<g fill='%23F9EC78' fill-opacity='.9'>\
<circle cx='540' cy='400' r='6'/>\
<circle cx='870' cy='315' r='6'/>\
</g>\
</svg>");
background-size: 520px auto, 62% auto;
background-position: left -80px center, right 4% center;
}
/* ========= Variant 2: Center double-helix diagonal ========= */
.h-center-helix::before{
background-image:
url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800'>\
<defs><linearGradient id='f' x1='0' y1='0' x2='1' y2='1'>\
<stop offset='0%' stop-color='%23ffffff' stop-opacity='.28'/>\
<stop offset='100%' stop-color='%23ffffff' stop-opacity='.08'/>\
</linearGradient></defs>\
<g fill='none' stroke='url(%23f)' stroke-width='18' stroke-linecap='round'>\
<path d='M -80 760 C 380 400 980 1080 1680 60'/>\
<path d='M -80 560 C 380 200 980 880 1680 -140'/>\
</g>\
<g stroke='%23ffffff' stroke-opacity='.15' stroke-width='6'>\
<path d='M140 640 L220 600 M210 700 L290 660 M280 760 L360 720 M350 820 L430 780'/>\
</g>\
</svg>");
background-size: 120% auto;
background-position: center;
background-repeat: no-repeat;
}
/* ========= Variant 3: Hex cluster on right ========= */
.h-hex::before{
background-image:
url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'>\
<g stroke='%2300abb2' stroke-opacity='.25' stroke-width='3' fill='%236ec6d8' fill-opacity='.20'>\
<polygon points='880,200 920,220 920,260 880,280 840,260 840,220'/>\
<polygon points='960,260 1000,280 1000,320 960,340 920,320 920,280'/>\
<polygon points='1040,320 1080,340 1080,380 1040,400 1000,380 1000,340'/>\
<polygon points='920,360 960,380 960,420 920,440 880,420 880,380'/>\
<polygon points='1000,420 1040,440 1040,480 1000,500 960,480 960,440'/>\
</g>\
</svg>");
background-size: 48% auto;
background-position: right 2% center;
background-repeat: no-repeat;
}
/* ========= Variant 4: Dotted wave across bottom ========= */
.h-dots::before{
background-image:
url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 400'>\
<g fill='%2300abb2' fill-opacity='.35'>\
<!-- two sinusoidal rows of dots -->\
" +
Array.from({length:70},(_,i)=>{const x=20+i*22;const y1=220+Math.sin(i/6)*18;const y2=260+Math.sin(i/6+3.14159)*18;return `<circle cx='${x}' cy='${y1.toFixed(1)}' r='3.5'/> <circle cx='${x}' cy='${y2.toFixed(1)}' r='3.5'/>`}).join(' ')
+ "\
</g>\
</svg>");
background-size: 120% auto;
background-position: center bottom -10px;
background-repeat: no-repeat;
}
/* ========= Variant 5: Flowing chromatin bands ========= */
.h-bands::before{
background-image:
url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800'>\
<g fill='none' stroke='%23ffffff' stroke-opacity='.20' stroke-width='28'>\
<path d='M -120 540 C 420 260 980 840 1720 420'/>\
<path d='M -120 420 C 420 140 980 720 1720 300'/>\
</g>\
</svg>");
background-size: 120% auto;
background-position: center;
background-repeat: no-repeat;
}
</style>
</head>
<body>
<div class="wrap">
<h2>1) Helix left + mesh right</h2>
<section class="hero h-helix-mesh">
<div class="inner">
<h1>Connecting genomics across Europe</h1>
<p>A shared approach for secure, ethical and interoperable genomic data sharing across Europe</p>
</div>
</section>
<h2>2) Center diagonal double-helix</h2>
<section class="hero h-center-helix">
<div class="inner">
<h1>Connecting genomics across Europe</h1>
<p>A shared approach for secure, ethical and interoperable genomic data sharing across Europe</p>
</div>
</section>
<h2>3) Hex cluster (network cells)</h2>
<section class="hero h-hex">
<div class="inner">
<h1>Connecting genomics across Europe</h1>
<p>A shared approach for secure, ethical and interoperable genomic data sharing across Europe</p>
</div>
</section>
<h2>4) Dotted wave (pure CSS/SVG dots)</h2>
<section class="hero h-dots">
<div class="inner">
<h1>Connecting genomics across Europe</h1>
<p>A shared approach for secure, ethical and interoperable genomic data sharing across Europe</p>
</div>
</section>
<h2>5) Flowing bands</h2>
<section class="hero h-bands">
<div class="inner">
<h1>Connecting genomics across Europe</h1>
<p>A shared approach for secure, ethical and interoperable genomic data sharing across Europe</p>
</div>
</section>
</div>
</body>
</html>