Skip to content

Commit dfbd0d1

Browse files
committed
Improve text alignment in genomic data section
- Added justified text with hyphenation for desktop - Implemented left-aligned text for mobile - Optimized paragraph spacing and line height
1 parent 6c8b07f commit dfbd0d1

File tree

2 files changed

+99
-7
lines changed

2 files changed

+99
-7
lines changed

Projects/GDI.qmd

+36-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ body {
3232
color: var(--text-primary);
3333
margin: 0;
3434
padding: 0;
35+
3536
}
3637
3738
/* Hero section */
@@ -83,6 +84,9 @@ body {
8384
box-shadow: var(--shadow);
8485
padding: 2rem;
8586
margin-bottom: 2rem;
87+
width: auto;
88+
max-width: 100%;
89+
box-sizing: border-box;
8690
}
8791
8892
.content-section h2 {
@@ -96,12 +100,43 @@ body {
96100
color: var(--text-secondary);
97101
line-height: 1.7;
98102
margin-bottom: 1.5rem;
103+
text-align: left;
104+
width: 100%;
105+
word-wrap: break-word;
106+
overflow-wrap: break-word;
107+
99108
}
100109
101110
.content-section p:last-child {
102111
margin-bottom: 0;
103112
}
104113
114+
.genomic-text-section p {
115+
color: var(--text-secondary);
116+
line-height: 1.7;
117+
margin-bottom: 1.5rem;
118+
text-align: justify;
119+
hyphens: auto;
120+
-webkit-hyphens: auto;
121+
-ms-hyphens: auto;
122+
word-wrap: break-word;
123+
overflow-wrap: break-word;
124+
text-justify: inter-word;
125+
}
126+
127+
/* Mobile adjustments for the genomic text */
128+
@media (max-width: 768px) {
129+
.genomic-text-section p {
130+
text-align: left;
131+
hyphens: none;
132+
-webkit-hyphens: none;
133+
-ms-hyphens: none;
134+
}
135+
136+
.genomic-text-section {
137+
padding: 1.5rem;
138+
}
139+
}
105140
/* Intro statement */
106141
.intro-statement {
107142
background: var(--card-bg);
@@ -308,7 +343,7 @@ a:hover {
308343
```
309344

310345
```{=html}
311-
<div class="content-section">
346+
<div class="content-section genomic-text-section">
312347
<p>In Ireland, <a href="https://www.hrb.ie/news/news-story/article/hrb-supports-genomic-data-infrastructure-gdi-in-ireland/">the programme is jointly funded by the European Commission and the Health Research Board</a>. The overall programme is designed to support the European 1+ Million Genomes (1+MG) Initiative.</p>
313348
314349
<p>Specifically, GDI will drive the development, deployment, and operation of sustainable data-access infrastructures within each participating country, including the legal frameworks, operational procedures, and ethics principles required to foster and maintain citizens' trust in cross-border access to highly sensitive personal data.</p>

Projects/eHealthHub.qmd

+63-6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ h1.title {
133133
background-color: var(--card-bg);
134134
border-radius: var(--radius);
135135
box-shadow: var(--shadow);
136+
display: flex;
137+
flex-direction: column;
138+
align-items: center;
139+
justify-content: center;
136140
}
137141
138142
.logo {
@@ -161,7 +165,7 @@ h1.title {
161165
align-items: center;
162166
justify-content: center;
163167
padding: 0.8rem 1.5rem;
164-
border-radius: 50px; /* Fully rounded button */
168+
border-radius: 50px;
165169
background-color: var(--secondary-color);
166170
color: white !important;
167171
text-decoration: none;
@@ -188,6 +192,9 @@ h1.title {
188192
border-radius: var(--radius);
189193
box-shadow: var(--shadow);
190194
transition: var(--transition);
195+
display: flex;
196+
flex-direction: column;
197+
align-items: center;
191198
}
192199
193200
.funding-wrapper:hover {
@@ -221,9 +228,23 @@ h1.title {
221228
}
222229
223230
/* Responsive adjustments */
224-
@media (min-width: 768px) {
231+
@media (max-width: 767px) {
225232
.social-links {
226-
justify-content: center;
233+
flex-direction: column;
234+
align-items: center;
235+
gap: 1rem;
236+
margin: 4rem auto;
237+
max-width: 90%;
238+
}
239+
240+
.social-button {
241+
width: 80%;
242+
243+
}
244+
245+
/* Add some space between button rows */
246+
.social-links a:nth-child(odd) {
247+
margin-bottom: 0.5rem;
227248
}
228249
}
229250
@@ -240,6 +261,42 @@ h1.title {
240261
min-width: 130px;
241262
padding: 0.7rem 1.2rem;
242263
}
264+
265+
/* Mobile-specific adjustments */
266+
.social-links {
267+
flex-direction: column;
268+
align-items: center;
269+
gap: 1rem;
270+
}
271+
272+
.social-button {
273+
width: 100%;
274+
max-width: 220px;
275+
}
276+
277+
/* eHealth Hub logo */
278+
.logo-wrapper .logo {
279+
max-width: 120px;
280+
margin-bottom: 0.5rem;
281+
}
282+
283+
/* NSRP logo */
284+
.funding-logo {
285+
max-width: 250px;
286+
margin-left: auto;
287+
margin-right: auto;
288+
}
289+
290+
/* Logo wrapper */
291+
.logo-wrapper {
292+
padding: 1rem 0.5rem;
293+
margin: 2rem 0;
294+
}
295+
296+
/* Funding wrapper */
297+
.funding-wrapper {
298+
padding: 1.5rem 0.5rem;
299+
}
243300
}
244301
</style>
245302
```
@@ -251,6 +308,9 @@ h1.title {
251308
<p>We lead the all-island eHealth Hub for Cancer, an all-island partnership on the island of Ireland that is building software and data platforms using best practice open science international health data standards to unlock and share health data, to grow clinical cancer research and improve cancer care.</p>
252309
</div>
253310
```
311+
::: {.logo-wrapper}
312+
![](../contents/logo/eHealthHub_logo.png){.logo}
313+
:::
254314

255315
::: {.content-section}
256316
## Our Mission
@@ -266,9 +326,6 @@ Our work focuses on:
266326
- Supporting evidence-based improvements in cancer care
267327
:::
268328

269-
::: {.logo-wrapper}
270-
![](../contents/logo/eHealthHub_logo.png){.logo}
271-
:::
272329

273330
::: {.content-section}
274331
## Connecting Communities

0 commit comments

Comments
 (0)