@asd20/ui 3.2.1008 → 3.2.1009
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/atoms/icons/Asd20EmailSvg.vue +1 -1
- package/src/components/atoms/icons/Asd20GroupAltSvg.vue +6 -6
- package/src/components/organisms/Asd20PageFooter/index.vue +30 -3
- package/src/data/page-queries/campus-page-query-result.json +1 -1
- package/src/data/page-queries/digest-page-query-result.json +1 -1
- package/src/data/page-queries/filelist-page-query-result.json +1 -1
- package/src/data/page-queries/home-page-query-result.json +1 -1
- package/src/data/page-queries/landing-page-query-result.json +1 -1
- package/src/data/page-queries/sublanding-page-query-result.json +1 -1
package/package.json
CHANGED
|
@@ -62,21 +62,21 @@
|
|
|
62
62
|
|
|
63
63
|
<!-- Person (body and head, clearly defined) -->
|
|
64
64
|
<!-- Head -->
|
|
65
|
-
<circle cx="
|
|
65
|
+
<circle cx="17" cy="10" r="2" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
66
66
|
<!-- Body -->
|
|
67
|
-
<rect x="
|
|
67
|
+
<rect x="13.5" y="13" width="7" height="8" rx="1.3" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
68
68
|
|
|
69
69
|
<!-- Person (body and head, clearly defined) -->
|
|
70
70
|
<!-- Head -->
|
|
71
|
-
<circle cx="
|
|
71
|
+
<circle cx="24" cy="7.5" r="1.75" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
72
72
|
<!-- Body -->
|
|
73
|
-
<rect x="
|
|
73
|
+
<rect x="21" y="10.5" width="6" height="7" rx="1.3" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
|
|
74
74
|
|
|
75
75
|
<!-- Person (body and head, clearly defined) -->
|
|
76
76
|
<!-- Head -->
|
|
77
|
-
<circle cx="
|
|
77
|
+
<circle cx="10" cy="13" r="2.5" class="fill" fill="currentColor"/>
|
|
78
78
|
<!-- Body -->
|
|
79
|
-
<rect x="
|
|
79
|
+
<rect x="6" y="16" width="9" height="10" rx="1.3" class="fill" fill="currentColor"/>
|
|
80
80
|
|
|
81
81
|
</g>
|
|
82
82
|
</template>
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
<asd20-button
|
|
59
59
|
v-if="
|
|
60
60
|
adminEmail &&
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
administrator &&
|
|
62
|
+
organization.title !== 'Academy District 20'
|
|
63
63
|
"
|
|
64
64
|
class="principal"
|
|
65
65
|
:link="`mailto:${adminEmail}`"
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
? `Administrator: ${administrator}`
|
|
69
69
|
: `Principal: ${administrator}`
|
|
70
70
|
"
|
|
71
|
-
icon="
|
|
71
|
+
icon="group-alt"
|
|
72
72
|
size="md"
|
|
73
73
|
horizontal
|
|
74
74
|
transparent
|
|
@@ -128,6 +128,17 @@
|
|
|
128
128
|
{{ organization.address.city }}, {{ organization.address.state }}
|
|
129
129
|
{{ organization.address.zip }}
|
|
130
130
|
</asd20-button>
|
|
131
|
+
<asd20-button
|
|
132
|
+
:link="organization.title === 'Academy District 20' ? `https://www.asd20.org/help-desk/` : `mailto:${contactEmail}`"
|
|
133
|
+
label="Contact Us"
|
|
134
|
+
icon="email"
|
|
135
|
+
size="md"
|
|
136
|
+
class="contact-us"
|
|
137
|
+
horizontal
|
|
138
|
+
transparent
|
|
139
|
+
expanded
|
|
140
|
+
reversed
|
|
141
|
+
/>
|
|
131
142
|
</div>
|
|
132
143
|
|
|
133
144
|
<asd20-social-menu :socialLinks="socialLinks" />
|
|
@@ -228,6 +239,22 @@ export default {
|
|
|
228
239
|
mapOrganizationSubtitle() {
|
|
229
240
|
return organizationLevel(this.organization.title)
|
|
230
241
|
},
|
|
242
|
+
contactEmail() {
|
|
243
|
+
if (!this.organization?.website) return ''
|
|
244
|
+
|
|
245
|
+
try {
|
|
246
|
+
// Parse the URL
|
|
247
|
+
const url = new URL(this.organization.website)
|
|
248
|
+
const hostname = url.hostname
|
|
249
|
+
|
|
250
|
+
// Grab just the first part before ".asd20.org"
|
|
251
|
+
const [subdomain] = hostname.split(".asd20.org")
|
|
252
|
+
|
|
253
|
+
return `${subdomain}@asd20.org`
|
|
254
|
+
} catch (e) {
|
|
255
|
+
return ''
|
|
256
|
+
}
|
|
257
|
+
},
|
|
231
258
|
currentYear() {
|
|
232
259
|
return new Date().getFullYear()
|
|
233
260
|
},
|