Skip to content

Commit

Permalink
Merge pull request #11 from tokyorubykaigi12/terfno/rg-sponsors
Browse files Browse the repository at this point in the history
add sponsors
  • Loading branch information
Terfno authored Nov 11, 2024
2 parents abec0f8 + e894a25 commit d141d76
Show file tree
Hide file tree
Showing 22 changed files with 1,055 additions and 80 deletions.
1 change: 1 addition & 0 deletions src/components/Layouts/MiniPanel.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const {backgroundColor = "#fcece8"} = Astro.props;
border-radius: 24px;
padding: 32px;
background-color: var(--backgroundColor);
height: 100%;
}
</style>

Expand Down
53 changes: 32 additions & 21 deletions src/components/sponsors/Logo.astro
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const SilverLargeSize = "160px";
const SilverSmallSize = "160px";
---

<div class:list={grade}>
<div class:list={["logo", grade]}>
<img src={company.logoImageSrc} alt={company.name} />
</div>

Expand All @@ -35,34 +35,45 @@ const SilverSmallSize = "160px";
SilverSmallSize,
}}
>
.Ruby {
.logo {
background-color: #fff;
img {
width: var(--RubyLargeSize);
width: 100%;
height: 100%;
object-fit: contain;
}
@media screen and (width <= 960px) {
img {
width: var(--RubySmallSize);
}
}

.Ruby {
width: var(--RubyLargeSize);
height: var(--RubyLargeSize);
}
@media screen and (width <= 960px) {
.Ruby {
width: var(--RubySmallSize);
height: var(--RubySmallSize);
}
}

.Gold {
img {
width: var(--GoldLargeSize);
}
@media screen and (width <= 960px) {
img {
width: var(--GoldSmallSize);
}
width: var(--GoldLargeSize);
height: var(--GoldLargeSize);
}
@media screen and (width <= 960px) {
.Gold {
width: var(--GoldSmallSize);
height: var(--GoldSmallSize);
}
}

.Silver {
img {
width: var(--SilverLargeSize);
}
@media screen and (width <= 960px) {
img {
width: var(--SilverSmallSize);
}
width: var(--SilverLargeSize);
height: var(--SilverLargeSize);
}
@media screen and (width <= 960px) {
.Silver {
width: var(--SilverSmallSize);
height: var(--SilverSmallSize);
}
}
</style>
23 changes: 19 additions & 4 deletions src/components/sponsors/Sponsor.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ type Company = {
interface Props {
grade: "Ruby" | "Gold" | "Silver";
label: string | null;
label?: string;
company: Company;
}
const { grade, label = null, company } = Astro.props;
const { grade, label, company } = Astro.props;
---

<div class:list={grade == "Silver" ? "outer" : ""}>
Expand All @@ -40,7 +40,7 @@ const { grade, label = null, company } = Astro.props;

<style>
.outer {
width: 45%;
width: 46%;
}
@media screen and (width <= 960px) {
.outer {
Expand All @@ -52,6 +52,7 @@ const { grade, label = null, company } = Astro.props;
.inner {
display: flex;
gap: 32px;
align-items: flex-start;
}
@media screen and (width <= 720px) {
.inner {
Expand All @@ -66,8 +67,15 @@ const { grade, label = null, company } = Astro.props;
flex-direction: column;
align-items: center;
}
@media screen and (720px <= width <= 960px) {
.inner-silver {
flex-direction: row;
}
}

.description {
flex: 1;

.label {
display: inline-block;
margin-bottom: 16px;
Expand All @@ -93,7 +101,14 @@ const { grade, label = null, company } = Astro.props;
font-weight: 600;
}

a,
a {
word-wrap: anywhere;
font-size: 16px;
line-height: 24px;
font-weight: 500;
text-decoration: none;
}

.text {
word-wrap: anywhere;
font-size: 16px;
Expand Down
Loading

0 comments on commit d141d76

Please sign in to comment.