Skip to content

Commit 49c1bec

Browse files
authored
Merge pull request #250 from mitou/endorsement
add endorsements section with sponsor quotes and logos
2 parents bcc268e + c0b847b commit 49c1bec

10 files changed

Lines changed: 198 additions & 18 deletions

File tree

_data/endorsements.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# 推薦の声(スポンサーコメント)
2+
- name: "堀内 敏明"
3+
title: "グループ専務執行役員<br>グループ技術者採用・技術広報担当<br>グループ研究開発本部長"
4+
photo: "endorsements/horiuchi.webp"
5+
quote: "GMOインターネットグループは、次世代のインターネットを創る人材を育み、日本の技術力全体の発展に貢献することを、企業として極めて重要な取り組みだと考えています。その強い想いから、独創的な発想と技術への挑戦を支える未踏ジュニアに、プラチナスポンサーとして参画しています。本プログラムを通じて若い才能が大きく花開き、将来、日本の技術力を力強く牽引する存在へと成長していくことを心から期待しています。"
6+
sponsor_id: "gmo"
7+
8+
- name: "井口 信和"
9+
title: "副学長補佐・学部長代理・教授"
10+
photo: "endorsements/iguchi.webp"
11+
quote: "未踏ジュニアは、若い才能が自由な発想で思い切り挑戦できる貴重な環境です。同じ志を持つ仲間と出会い、切磋琢磨した経験は、一人ひとりの確かな成長へとつながります。近畿大学情報学部(KDIX)は、未来を担う若い世代の挑戦を何より大切に考え、スポンサーとして未踏ジュニアの活動を全力で応援しています。"
12+
sponsor_id: "kindai"

_data/sponsors.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
# link: 法人またはプロダクトへのリンク
55
# link_en: 法人またはプロダクトへのリンク (英語版。無い場合は上記 link が適用されます)
66

7-
- name: GMOインターネットグループ株式会社
7+
- id: gmo
8+
name: GMOインターネットグループ株式会社
89
img: 2025/gmo.webp
910
type: platinum
1011
link: https://www.gmo.jp/
1112
link_en: https://www.gmo.jp/en/
1213

13-
- name: 近畿大学情報学部
14+
- id: kindai
15+
name: 近畿大学情報学部
1416
img: 2025/kindai.webp
1517
type: platinum
1618
link: https://www.kindai.ac.jp/informatics/

_includes/endorsements.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{% if site.data.endorsements.size > 0 %}
2+
<section id="endorsements">
3+
<h2 {% if page.layout == "default" %}class="heading-line"{% endif %}>
4+
<a href='#endorsements'><i class="far fa-thumbs-up green"></i></a>
5+
推薦の声
6+
</h2>
7+
<div class="endorsements-list flex">
8+
{% for endorsement in site.data.endorsements %}
9+
{% assign sponsor = site.data.sponsors | where: "id", endorsement.sponsor_id | first %}
10+
<div class="endorsement-card">
11+
<div class="endorsement-card-head">
12+
<div class="endorsement-person">
13+
<img src="/assets/img/spinner.svg" data-src="/assets/img/{{ endorsement.photo }}" alt="{{ endorsement.name }}さんの写真" class="lazyload endorsement-photo" loading="lazy">
14+
<div class="endorsement-meta">
15+
<p class="endorsement-name">{{ endorsement.name }}</p>
16+
<p class="endorsement-title">{{ endorsement.title }}</p>
17+
<a href="{{ sponsor.link }}" class="endorsement-company" target="_blank" rel="noopener">{{ sponsor.name }}</a>
18+
</div>
19+
</div>
20+
<div class="endorsement-logo">
21+
<a href="{{ sponsor.link }}" target="_blank" rel="noopener">
22+
<img src="/assets/img/spinner.svg" data-src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }} ロゴ" class="lazyload" loading="lazy">
23+
</a>
24+
</div>
25+
</div>
26+
<p class="endorsement-quote">{{ endorsement.quote }}</p>
27+
</div>
28+
{% endfor %}
29+
</div>
30+
</section>
31+
{% endif %}

_includes/sponsor-logos.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<section id="sponsor-logos">
2+
<div class='flex'>
3+
{% for sponsor in site.data.sponsors %}
4+
<a href="{{ sponsor.link }}" target="_blank">
5+
{% if sponsor.type == 'platinum' %}
6+
<img src="/assets/img/spinner.svg" data-src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="lazyload sponsor-logo-platinum">
7+
{% elsif sponsor.type == 'gold' %}
8+
<img src="/assets/img/spinner.svg" data-src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="lazyload sponsor-logo-gold">
9+
{% endif %}
10+
</a>
11+
{% endfor %}
12+
</div>
13+
14+
<p>未踏ジュニアは<a href='#sponsors'>スポンサー</a>からの支援によって運営されています。</p>
15+
</section>

assets/css/main.scss

Lines changed: 132 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ $shadow-color: rgba($main-color,0.3);
77
$sub-color: #ffed4d; // Yellow
88
$lightgray: #eff2f6; // Light gray
99
$phone-width: 760px;
10+
$tablet-width: 1366px;
1011
$header-phone: 940px;
1112
* {
1213
box-sizing: border-box;
@@ -480,7 +481,7 @@ footer{
480481
border-top: solid 2px $main-color;
481482
border-bottom: solid 2px $main-color;
482483
background-image: repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba($main-color, 0.1) 4px, rgba($main-color, 0.1) 10px );
483-
margin: 4em 0 1em;
484+
margin: 2.8em 0 0.9em;
484485
&::before{
485486
content: '';
486487
clear: both;
@@ -490,7 +491,7 @@ footer{
490491
h3{
491492
border-left: solid 6px $main-color;
492493
background-color: rgba($main-color, 0.05);
493-
margin-top: 2.4em;
494+
margin-top: 1.8em;
494495
padding: 8px;
495496
}
496497
ul{
@@ -1085,6 +1086,31 @@ footer{
10851086
margin: auto; // Center horizontally
10861087
height: auto; // Maintain aspect ratio
10871088
}
1089+
/* Tighten spacing between sponsor logos and endorsements */
1090+
#sponsor-logos {
1091+
padding-bottom: 8px;
1092+
}
1093+
#endorsements {
1094+
padding-top: 8px;
1095+
}
1096+
/* Match post content width */
1097+
.post #sponsor-logos,
1098+
.post #endorsements {
1099+
width: 100%;
1100+
padding-left: 0;
1101+
padding-right: 0;
1102+
padding-top: 12px;
1103+
padding-bottom: 12px;
1104+
}
1105+
/* Use full width cards inside post layout */
1106+
.post #endorsements .endorsements-list {
1107+
flex-direction: column;
1108+
}
1109+
.post #endorsements .endorsement-card {
1110+
width: 100%;
1111+
margin-left: 0;
1112+
margin-right: 0;
1113+
}
10881114

10891115
/* Ensure the parent container of the logos centers them vertically and horizontally */
10901116
#sponsor-logos .flex {
@@ -1109,6 +1135,110 @@ footer{
11091135
width: 120px;
11101136
}
11111137

1138+
/* Endorsements */
1139+
#endorsements .endorsements-list {
1140+
justify-content: center;
1141+
gap: 16px;
1142+
}
1143+
.endorsement-card {
1144+
background-color: #fff;
1145+
box-shadow: 0 0 6px 1px $shadow-color;
1146+
border-radius: 8px;
1147+
margin: 8px;
1148+
padding: 20px;
1149+
text-align: left;
1150+
width: calc(50% - 16px);
1151+
display: flex;
1152+
flex-direction: column;
1153+
}
1154+
.endorsement-card-head {
1155+
display: flex;
1156+
align-items: center;
1157+
justify-content: center;
1158+
gap: 12px;
1159+
flex-wrap: wrap;
1160+
}
1161+
.endorsement-person {
1162+
display: flex;
1163+
align-items: center;
1164+
gap: 12px;
1165+
min-width: 0;
1166+
margin-right: auto;
1167+
}
1168+
.endorsement-photo {
1169+
width: 72px;
1170+
height: 72px;
1171+
border-radius: 50%;
1172+
object-fit: cover;
1173+
background-color: $lightgray;
1174+
}
1175+
.endorsement-meta p {
1176+
margin: 0;
1177+
line-height: 1.4em;
1178+
}
1179+
.endorsement-name {
1180+
font-weight: 700;
1181+
}
1182+
.endorsement-title {
1183+
font-size: 0.85em;
1184+
color: #666;
1185+
white-space: pre-line;
1186+
}
1187+
.endorsement-company {
1188+
display: inline-block;
1189+
font-size: 0.85em;
1190+
margin-top: 2px;
1191+
}
1192+
.endorsement-logo img {
1193+
width: 200px;
1194+
height: auto;
1195+
object-fit: contain;
1196+
}
1197+
.endorsement-quote {
1198+
margin-top: 16px;
1199+
color: #555;
1200+
position: relative;
1201+
}
1202+
.endorsement-quote::before {
1203+
content: "";
1204+
color: $main-color;
1205+
margin-right: 4px;
1206+
font-weight: 700;
1207+
}
1208+
.endorsement-quote::after {
1209+
content: "";
1210+
color: $main-color;
1211+
margin-left: 4px;
1212+
font-weight: 700;
1213+
}
1214+
@media screen and (max-width:$tablet-width) and (min-width: ($phone-width + 1)) {
1215+
#endorsements .endorsement-card {
1216+
width: calc(90% - 16px);
1217+
}
1218+
}
1219+
@media screen and (max-width: $phone-width) {
1220+
.endorsement-card {
1221+
width: calc(100% - 16px);
1222+
padding: 16px;
1223+
}
1224+
.endorsement-card-head {
1225+
justify-content: flex-start;
1226+
}
1227+
.endorsement-photo {
1228+
width: 64px;
1229+
height: 64px;
1230+
}
1231+
.endorsement-logo {
1232+
flex-basis: 100%;
1233+
width: 100%;
1234+
display: flex;
1235+
justify-content: center;
1236+
}
1237+
.endorsement-logo img {
1238+
width: 200px;
1239+
}
1240+
}
1241+
11121242
.sv{
11131243
overflow: hidden;
11141244
@media screen and (max-width: $phone-width) {
13.4 KB
Loading
17.6 KB
Loading
6.1 KB
Loading

guideline.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ description: 未踏ジュニアへの応募から採択までの流れをまと
1313

1414
{% include agenda.html %}
1515

16+
{% include endorsements.html %}
17+
1618

1719
## [<i class="fa-light fa-mailbox"></i>](#apply) 応募から採択までの流れ {#apply}
1820

index.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,21 +63,9 @@ this_year: 2025
6363
</div>
6464
</section>
6565

66-
<section id="sponsor-logos">
67-
<div class='flex'>
68-
{% for sponsor in site.data.sponsors %}
69-
<a href="{{ sponsor.link }}" target="_blank">
70-
{% if sponsor.type == 'platinum' %}
71-
<img src="/assets/img/spinner.svg" data-src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="lazyload sponsor-logo-platinum">
72-
{% elsif sponsor.type == 'gold' %}
73-
<img src="/assets/img/spinner.svg" data-src="/assets/img/sponsors/{{ sponsor.img }}" alt="{{ sponsor.name }}" class="lazyload sponsor-logo-gold">
74-
{% endif %}
75-
</a>
76-
{% endfor %}
77-
</div>
66+
{% include sponsor-logos.html %}
7867

79-
<p>未踏ジュニアは<a href='#sponsors'>スポンサー</a>からの支援によって運営されています。</p>
80-
</section>
68+
{% include endorsements.html %}
8169

8270

8371
<div id='media'><!-- ID for outdated links from outeside: media -> news --></div>

0 commit comments

Comments
 (0)