Skip to content

Commit 4d9fffd

Browse files
committed
Add Startup Shell as sponsor
1 parent dc2414c commit 4d9fffd

File tree

3 files changed

+54
-6
lines changed

3 files changed

+54
-6
lines changed

src/components/index/Sponsor.astro

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,29 @@
66
const { name, url } = Astro.props;
77
---
88

9-
<div>
9+
<div class="sponsor">
1010
<a href={url}>
1111
<slot />
1212
</a>
1313
{name}
1414
</div>
1515

1616
<style>
17-
div {
17+
.sponsor {
1818
display: flex;
1919
flex-direction: column;
2020
align-items: center;
21+
text-align: center;
22+
height: 10rem;
23+
24+
a {
25+
display: flex;
26+
height: max-content;
27+
}
28+
}
29+
30+
:global(.sponsor > a > img) {
31+
display: block;
32+
margin: auto;
2133
}
2234
</style>

src/components/index/Sponsors.astro

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
3+
---
4+
5+
<div>
6+
<slot />
7+
</div>
8+
9+
<style lang="scss">
10+
@import "../../styles/common.scss";
11+
12+
div {
13+
display: flex;
14+
flex-direction: column;
15+
width: 100%;
16+
align-items: center;
17+
justify-content: space-around;
18+
19+
@media (min-width: $tabletMinWidth) {
20+
// For tablets and up, put sponsors side by side
21+
flex-direction: row;
22+
}
23+
}
24+
</style>

src/pages/index.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: ../layouts/BaseLayout.astro
33
---
44
import Sponsor from "../components/index/Sponsor.astro";
5+
import Sponsors from "../components/index/Sponsors.astro";
56
import { CONTACT_EMAIL } from "../consts";
67

78
Team CYB3RL4NG is an undergraduate research team that is part of the [Gemstone Program](https://gemstone.umd.edu/) at the University of Maryland.
@@ -31,11 +32,22 @@ Contact our team liaison, Terra, at {CONTACT_EMAIL} for details.
3132

3233
We are grateful to the Gemstone program for giving us the opportunity to work on this project.
3334

34-
<div style="display: flex; width: 100%; align-items: center; justify-content: space-around;">
35+
<Sponsors>
3536
<Sponsor name="Gemstone Program" url="https://gemstone.umd.edu/">
36-
<img loading="lazy" src="/img/gemstone.png" alt="Gemstone logo" style="background-color: white;" />
37+
<img
38+
loading="lazy"
39+
src="/img/gemstone.png"
40+
alt="Gemstone logo"
41+
style="background-color: white; height: 100%;" />
3742
</Sponsor>
3843
<Sponsor name="Honors College" url="https://honors.umd.edu/">
39-
<img loading="lazy" src="/img/umdhonors.png" alt="Honors College logo" />
44+
<img loading="lazy" src="/img/umdhonors.png" alt="Honors College logo" style="height: 100%;" />
4045
</Sponsor>
41-
</div>
46+
<Sponsor name="Startup Shell" url="https://startupshell.org/">
47+
<img
48+
loading="lazy"
49+
src="https://startupshell.org/assets/startup-shell-logo-red-7a7fb14b.svg"
50+
alt="Startup Shell logo"
51+
width="250px;" />
52+
</Sponsor>
53+
</Sponsors>

0 commit comments

Comments
 (0)