Skip to content

Commit 4e8d759

Browse files
committed
Reorder CSS elements and fix deploy trigger.
1 parent 3971ea1 commit 4e8d759

File tree

3 files changed

+68
-60
lines changed

3 files changed

+68
-60
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ master ]
66
workflow_dispatch:
77

88
permissions:

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const { title, description = "Romano Lab - Translational Bioinformatics at UPenn
4343

4444
<footer>
4545
<div class="footer-container">
46-
<p>&copy; {new Date().getFullYear()} Romano Lab. All rights reserved.</p>
46+
<p>&copy; {new Date().getFullYear()} <a href="https://jdr.bio">Joseph D. Romano</a> and the Romano Lab. All rights reserved.</p>
4747
</div>
4848
</footer>
4949
</body>

src/styles/global.css

Lines changed: 66 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,13 @@
7373
}
7474

7575

76-
/* Typography */
76+
@media (max-width: 768px) {
77+
.area-content {
78+
grid-template-columns: 1fr;
79+
}
80+
}
81+
82+
7783
html {
7884
font-family: system-ui, sans-serif;
7985
}
@@ -104,40 +110,6 @@ hr {
104110
color: var(--color-muted);
105111
}
106112

107-
.nav-container {
108-
max-width: 1200px;
109-
margin: 0 auto;
110-
padding: 0 2rem;
111-
display: flex;
112-
justify-content: space-between;
113-
align-items: center;
114-
}
115-
116-
.logo {
117-
font-size: 1.5rem;
118-
font-weight: bold;
119-
color: var(--color-on-surface);
120-
text-decoration: none;
121-
}
122-
123-
.nav-links {
124-
list-style: none;
125-
margin: 0;
126-
padding: 0;
127-
display: flex;
128-
gap: 2rem;
129-
}
130-
131-
.nav-links a {
132-
color: var(--color-on-surface);
133-
text-decoration: none;
134-
transition: opacity 0.2s;
135-
}
136-
137-
.nav-links a:hover {
138-
opacity: 0.8;
139-
}
140-
141113
main {
142114
flex: 1;
143115
max-width: 1200px;
@@ -153,14 +125,6 @@ footer {
153125
margin-top: auto;
154126
}
155127

156-
.footer-container {
157-
max-width: 1200px;
158-
margin: 0 auto;
159-
padding: 0 2rem;
160-
text-align: center;
161-
color: var(--color-muted);
162-
}
163-
164128
h1, h2, h3, h4, h5, h6 {
165129
color: var(--color-primary);
166130
line-height: 1.3;
@@ -196,10 +160,48 @@ a:hover {
196160
text-decoration: underline;
197161
}
198162

163+
p {
164+
padding-bottom: 0.5rem;
165+
}
166+
199167
.text-center {
200168
text-align: center;
201169
}
202170

171+
.nav-container {
172+
max-width: 1200px;
173+
margin: 0 auto;
174+
padding: 0 2rem;
175+
display: flex;
176+
justify-content: space-between;
177+
align-items: center;
178+
}
179+
180+
.logo {
181+
font-size: 1.5rem;
182+
font-weight: bold;
183+
color: var(--color-on-surface);
184+
text-decoration: none;
185+
}
186+
187+
.nav-links {
188+
list-style: none;
189+
margin: 0;
190+
padding: 0;
191+
display: flex;
192+
gap: 2rem;
193+
}
194+
195+
.nav-links a {
196+
color: var(--color-on-surface);
197+
text-decoration: none;
198+
transition: opacity 0.2s;
199+
}
200+
201+
.nav-links a:hover {
202+
opacity: 0.8;
203+
}
204+
203205
.mb-2 {
204206
margin-bottom: 2rem;
205207
}
@@ -365,11 +367,6 @@ a:hover {
365367
color: var(--color-on-surface);
366368
}
367369

368-
@media (max-width: 768px) {
369-
.area-content {
370-
grid-template-columns: 1fr;
371-
}
372-
}
373370

374371
.pub-stats {
375372
display: flex;
@@ -426,6 +423,7 @@ a:hover {
426423
.links {
427424
margin: 0.5rem 0; /* Reduce spacing */
428425
font-size: 0.9rem; /* Smaller font size */
426+
padding-bottom: 0;
429427
}
430428

431429
.links a {
@@ -503,15 +501,6 @@ a:hover {
503501
height: 400px;
504502
}
505503

506-
#graphCanvas {
507-
position: absolute; /* Position the canvas absolutely within the hero */
508-
top: 0; /* Align the canvas to the top of the hero */
509-
left: 0; /* Align the canvas to the left of the hero */
510-
width: 100%; /* Make the canvas span the full width of the hero */
511-
height: 100%; /* Make the canvas span the full height of the hero */
512-
z-index: -1; /* Send the canvas behind other elements */
513-
}
514-
515504
.hero h1 {
516505
font-size: 3rem;
517506
margin: 0 0 1rem 0;
@@ -546,4 +535,23 @@ a:hover {
546535
.highlight-card h3 {
547536
color: var(--color-secondary);
548537
margin-top: 0;
549-
}
538+
}
539+
540+
.footer-container {
541+
max-width: 1200px;
542+
margin: 0 auto;
543+
padding: 0 2rem;
544+
text-align: center;
545+
color: var(--color-muted);
546+
}
547+
548+
549+
550+
#graphCanvas {
551+
position: absolute; /* Position the canvas absolutely within the hero */
552+
top: 0; /* Align the canvas to the top of the hero */
553+
left: 0; /* Align the canvas to the left of the hero */
554+
width: 100%; /* Make the canvas span the full width of the hero */
555+
height: 100%; /* Make the canvas span the full height of the hero */
556+
z-index: -1; /* Send the canvas behind other elements */
557+
}

0 commit comments

Comments
 (0)