Skip to content

Commit c3cdff0

Browse files
go: update go templates
1 parent b3ad565 commit c3cdff0

File tree

6 files changed

+279
-49
lines changed

6 files changed

+279
-49
lines changed

src/scss/components/_shortcut-list.scss

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
.shortcut-list__item {
1818
margin-bottom: variables.$spacing-5;
1919

20-
@include breakpoints.breakpoint(sm) {
21-
@include grid.make-col-ready;
22-
@include grid.make-col(6);
23-
}
20+
// @include breakpoints.breakpoint(sm) {
21+
@include grid.make-col-ready;
22+
@include grid.make-col(12);
23+
// }
2424
@include breakpoints.breakpoint(md) {
2525
@include grid.make-col(6);
2626
}
@@ -38,17 +38,27 @@
3838
justify-content: space-between;
3939

4040
h3 {
41-
max-width: 70%;
41+
max-width: 60%;
4242
}
4343

4444
.shortcut-list__header-links {
45-
max-width: 30%;
45+
max-width: 40%;
46+
}
47+
48+
@include breakpoints.breakpoint(xl) {
49+
h3 {
50+
max-width: 65%;
51+
}
52+
53+
.shortcut-list__header-links {
54+
max-width: 35%;
55+
}
4656
}
4757
}
4858

4959
.shortcut-list__link {
5060
font-size: variables.$typescale-5;
51-
font-weight: variables.$font-weight-medium;
61+
font-weight: variables.$font-weight-semibold;
5262
font-family: variables.$font-family-sans-serif;
5363
@include type.link-border;
5464
}
@@ -57,3 +67,7 @@
5767
font-size: variables.$typescale-2;
5868
margin-top: variables.$spacing-2;
5969
}
70+
71+
.shortcut-form {
72+
display: flex;
73+
}

src/scss/scope/_typography.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168

169169
dd {
170170
@include terms.terms-text;
171+
overflow-wrap: anywhere;
171172
}
172173

173174
// Maintain vertical h2 top margin when
Original file line numberDiff line numberDiff line change
@@ -1,112 +1,213 @@
1+
{% extends 'course-hub-layout.twig' %}
2+
13
{% set go_data = [
24
{
3-
shortcut: '+middlebury.edu/go/reunionautobiography',
5+
shortcut: 'go/+middlebury.edu/go/reunionautobiography',
46
destination: 'http://www.middlebury.edu/alumni/reunion/50bio',
57
description: ''
68
},
79
{
8-
shortcut: '1800societyreception2024',
10+
shortcut: 'go/1800societyreception2024',
911
destination: 'https://engage.middlebury.edu/pages/events/fy24/evt20240607-volunteer-and-1800-society-reception',
1012
description: 'Registration for Appreciation Reception for 1800 Society members and 2024 Volunteers'
1113
},
1214
{
13-
shortcut: 'A1selfcare',
15+
shortcut: 'go/A1selfcare',
1416
destination: 'https://middlebury.zoom.us/j/9178409189?pwd=TWlGZGtjSU1VcFZHODQvSjZBYkQwdz09',
1517
description: 'Hi there, \n\nBriana Johnson is inviting you to a scheduled Zoom meeting. \n\nTopic: Briana Johnson\'s Personal Meeting Room\n\nJoin from PC, Mac, Linux, iOS or Android: https://middlebury.zoom.us/j/9178409189?pwd=TWlGZGtjSU1VcFZHODQvSjZBYkQwdz09 \nPassword: 536439\n\n\"Or iPhone one-tap :\nUS: +13126266799,,9178409189# or +16468769923,,9178409189# \nOr Telephone:\nDial(for higher quality, dial a number based on your current location): \nUS: +1 312 626 6799 or +1 646 876 9923 or +1 301 715 8592 or +1 346 248 7799 or +1 669 900 6833 or +1 253 215 8782 \nMeeting ID: 917 840 9189\nPassword: 536439\nInternational numbers available: https://middlebury.zoom.us/u/ac3T32Kmmj \n\nOr an H.323/SIP room system:\nSee here for info: http://go.middlebury.edu/zoomconnect \nIf meeting is password protected, use the numeric password in the telephone join section of the invitation for H.323 & SIP connections\n\n\n\n\n\n\n\n\n\n\n\n'
1618
},
1719
{
18-
shortcut: 'aacinema21',
20+
shortcut: 'go/aacinema21',
1921
destination: 'https://middlebury.instructure.com/courses/8205',
2022
description: 'African-American Cinema, Fmmc 0227A Spring 2021'
2123
},
2224
{
23-
shortcut: 'ABetterMidd',
25+
shortcut: 'go/ABetterMidd',
2426
destination: 'https://docs.google.com/spreadsheets/d/1evgnAC_LbZWzsgVm91cG5Kvy3c4l8H0NpvfQQP3Puww/edit?usp=sharing',
2527
description: ''
2628
},
2729
{
28-
shortcut: 'academics?facilities',
30+
shortcut: 'go/academics?facilities',
2931
destination: 'http://cat.middlebury.edu/events/facilities/',
3032
description: 'Academic Facilities'
3133
},
3234
{
33-
shortcut: 'b',
35+
shortcut: 'go/b',
3436
destination: 'https://go.middlebury.edu/studentssb9/',
3537
description: 'Banner web main page'
3638
},
3739
{
38-
shortcut: 'bachconcert',
40+
shortcut: 'go/bachconcert',
3941
destination: 'https://www.middlebury.edu/academics/music/bachconcert/',
4042
description: 'Homepage of the Middlebury Bach Concerts'
4143
},
4244
{
43-
shortcut: 'backupmac',
45+
shortcut: 'go/backupmac',
4446
destination: 'https://support.gmhec.org/TDClient/47/middlebury/KB/ArticleDet?ID=170',
4547
description: ''
4648
},
4749
{
48-
shortcut: 'bailey',
50+
shortcut: 'go/bailey',
4951
destination: 'http://www.youtube.com/watch?v=CyyF-gt_KbM',
5052
description: ''
5153
},
5254
{
53-
shortcut: 'cabaret',
55+
shortcut: 'go/cabaret',
5456
destination: 'https://docs.google.com/spreadsheets/d/1O1SP19rm_1bDHzC3TxovQ7Z5MtZXeerRqR_Q5lfYWHM/edit?usp=sharing',
5557
description: ''
5658
},
5759
{
58-
shortcut: 'carceralstate',
60+
shortcut: 'go/carceralstate',
5961
destination: 'https://docs.google.com/document/d/1FF4nv9nxqI5ePKMlZLBh4WduKAA3qT0cX6N63Fgwml8/edit?usp=sharing',
6062
description: 'Transcript to Gensler 2015 Video on YourTube.\nGensler Symposium 2015 - Punishing Bodies: Feminist Responses to the Carceral State'
6163
},
6264
{
63-
shortcut: 'captainguide',
65+
shortcut: 'go/captainguide',
6466
destination: 'https://drive.google.com/file/d/10ZkIsw_WRHK-Nx3m14x6_qcLp12SGZBu/view?usp=sharing',
6567
description: 'The Middlebury College Captain Guide 2020: Brought to you by the SGA Athletic Affairs Committee - Thank you for all your feedback from team interviews. The purpose of the guide is to offer all accessible resources to Middlebury College Athletic Captains in order to foster a culture of teams full of healthy minds and bodies.'
6668
},
6769
{
68-
shortcut: 'cceyouthandoutreachcoordinator',
70+
shortcut: 'go/cceyouthandoutreachcoordinator',
6971
destination: 'https://apply.workable.com/middleburycollege/j/39E19C94D7/',
7072
description: ''
7173
},
7274
{
73-
shortcut: 'datamanagement',
75+
shortcut: 'go/datamanagement',
7476
destination: 'http://www.middlebury.edu/academics/lib/libcollections/libraries/armstronglib/datamgt',
7577
description: 'Middlebury Data Management'
7678
},
7779
{
78-
shortcut: 'daviszoom',
80+
shortcut: 'go/daviszoom',
7981
destination: 'http://sites.middlebury.edu/dla/events/category/davis-digital-pedagogy-zoom-session/',
8082
description: 'Funded with a generous grant from the Davis Educational Foundation, the Davis Digital Pedagogy Zoom Sessions help Middlebury College faculty develop digital innovations in their pedagogy, with a particular focus on student research and thesis work.'
8183
},
8284
{
83-
shortcut: 'dcrmmss',
85+
shortcut: 'go/dcrmmss',
8486
destination: 'http://rbms.info/files/dcrm/dcrmmss/DCRMMSS.pdf',
8587
description: 'DESCRIPTIVE\nCATALOGING\nOF RARE\nMATERIALS\n(MANUSCRIPTS)'
8688
},
8789
{
88-
shortcut: 'Daviscatalog',
90+
shortcut: 'go/Daviscatalog',
8991
destination: 'http://www.middlebury.edu/academics/lib',
9092
description: 'Davis Library Catalog'
9193
},
9294
{
93-
shortcut: 'EdgarDaCat',
95+
shortcut: 'go/EdgarDaCat',
9496
destination: 'https://drive.google.com/file/d/15DO379QeprvQfXa6K6utdyFkqDaOJBt5/view?usp=sharing',
9597
description: ''
9698
},
9799
{
98-
shortcut: 'ecosymposium',
100+
shortcut: 'go/ecosymposium',
99101
destination: 'https://sites.google.com/site/middrscs/green-news-at-midd/ecoentrepreneurshipandleadershipthegrowinginfluenceofinspiredenvironmentalists',
100102
description: 'January student symposium exploring Eco Entrepreneurship and Leadership: The Growing Influence of Inspired Environmentalists. Five eco innovators will share their secrets of success and help you find your niche in the growing green economy!'
101103
},
102104
{
103-
shortcut: 'edstest',
105+
shortcut: 'go/edstest',
104106
destination: 'https://discovery.ebsco.com/',
105107
description: 'TEST EDS instance\nhttps://search.ebscohost.com/login.aspx?custid=s8864408&groupid=test&profid=eds&authtype=ip,uid'
106108
},
107109
{
108-
shortcut: 'exploremidd',
110+
shortcut: 'go/exploremidd',
109111
destination: 'https://www.google.com/maps/d/u/0/edit?mid=1Ivo5SE_M0uO-FCOxHGjcWTZttE9-hsie&usp=sharing',
110112
description: 'links to Middbox\'s Google MyMaps'
111113
}
112-
] %}
114+
] %}
115+
116+
{% block layout_header %}
117+
{% include 'partials/app-header.twig' with {
118+
title: 'GO',
119+
items: [
120+
{
121+
text: 'GOtionary',
122+
active: true
123+
},
124+
{
125+
text: 'Search Shortcuts',
126+
}
127+
]
128+
} %}
129+
{% endblock %}
130+
131+
{% set page_header = {
132+
title: 'GOtionary',
133+
breadcrumb: [
134+
{
135+
text: 'Middlebury'
136+
},
137+
{
138+
text: 'GO'
139+
}
140+
]
141+
} %}
142+
143+
{% block content %}
144+
<div class="go-search-results">
145+
{# {% include 'partials/pagination.twig' %} #}
146+
<form class="d-flex">
147+
<label for="page-list" class="label pr-2">Go to:</label>
148+
<span class="form-control__prefix">
149+
<select id="page-list" name="page-list" type="text" class="form-control js-charges">
150+
<option value="#" selected="">#</option>
151+
<option value="A">A</option>
152+
<option value="B">B</option>
153+
<option value="C">C</option>
154+
<option value="D">D</option>
155+
<option value="E">E</option>
156+
<option value="F">F</option>
157+
<option value="G">G</option>
158+
<option value="H">H</option>
159+
<option value="I">I</option>
160+
<option value="J">J</option>
161+
<option value="K">K</option>
162+
<option value="L">L</option>
163+
<option value="M">M</option>
164+
<option value="N">N</option>
165+
<option value="O">O</option>
166+
<option value="P">P</option>
167+
<option value="Q">Q</option>
168+
<option value="R">R</option>
169+
<option value="S">S</option>
170+
<option value="T">T</option>
171+
<option value="U">U</option>
172+
<option value="V">V</option>
173+
<option value="W">W</option>
174+
<option value="X">X</option>
175+
<option value="Y">Y</option>
176+
<option value="Z">Z</option>
177+
</select>
178+
</span>
179+
<input type="submit" value="Go" class="button button--primary d-block d-md-inline-block ml-3">
180+
</form>
181+
<h2 class="mt-7">#</h2>
182+
<ul class="shortcut-list__list row mt-5 mb-7">
183+
{% for item in go_data %}
184+
185+
<li class="shortcut-list__item">
186+
187+
<article class="shortcut-list__box clearfix" aria-labelledby="midd-story-label-{{loop.index}}">
188+
<div class="shortcut-list__header">
189+
<h3 class="mb-1" id="midd-story-label-{{loop.index}}">
190+
<a class="shortcut-list__link" href="#">
191+
{{item.shortcut}}
192+
</a>
193+
</h3>
194+
<div class="shortcut-list__header-links">
195+
<a href="#" class="f2 link-underline" style="color:#0d395f">View</a>
196+
<a href="#" class="f2 link-underline ml-1" style="color:#0d395f">Report</a>
197+
</div>
198+
</div>
199+
{% if item.description %}
200+
<p class="link-list__info">
201+
{{ (item.description|length) > 200
202+
? (item.description|slice(0, 200)) ~ '...<a class="link-underline">read more</a>'
203+
: item.description }}
204+
</p>
205+
{% endif %}
206+
</article>
207+
208+
</li>
209+
{% endfor %}
210+
211+
</ul>
212+
213+
{% endblock %}

src/templates/go-home.twig

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,11 @@
118118
title: 'GO',
119119
items: [
120120
{
121-
text: 'All Shortcuts'
121+
text: 'GOtionary'
122122
},
123123
{
124-
text: 'Search Shortcuts'
124+
text: 'Search Shortcuts',
125+
active: true
125126
}
126127
]
127128
} %}
@@ -134,7 +135,7 @@
134135
text: 'Middlebury'
135136
},
136137
{
137-
text: 'Search Shortcuts'
138+
text: 'GO'
138139
}
139140
]
140141
} %}
@@ -177,25 +178,16 @@
177178
{{item.shortcut}}
178179
</a>
179180
</h3>
180-
{# <a class="status-report__icon" style="color:#0d395f">
181-
<span class="sr-only">More info</span>
182-
{% include 'partials/icon.twig' with {
183-
name: 'info',
184-
class: 'f5'
185-
} %}
186-
</a> #}
187-
<ul class="shortcut-list__header-links">
188-
<a class="f2 link-underline" style="color:#0d395f">
189-
View
190-
</a>
191-
<a class="f2 link-underline ml-1" style="color:#0d395f">
192-
Report
193-
</a>
194-
</ul>
181+
<div class="shortcut-list__header-links">
182+
<a href="#" class="f2 link-underline" style="color:#0d395f">View</a>
183+
<a href="#" class="f2 link-underline ml-1" style="color:#0d395f">Report</a>
184+
</div>
195185
</div>
196186
{% if item.description %}
197187
<p class="link-list__info">
198-
{{ item.description }}
188+
{{ (item.description|length) > 200
189+
? (item.description|slice(0, 200)) ~ '...<a class="link-underline">read more</a>'
190+
: item.description }}
199191
</p>
200192
{% endif %}
201193
</article>

0 commit comments

Comments
 (0)