@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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.1008",
8
+ "version": "3.2.1009",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -9,7 +9,7 @@
9
9
  </template> -->
10
10
 
11
11
  <template>
12
- <g>
12
+ <g transform="translate(3,1)">
13
13
  <rect x="5" y="8" width="18" height="14" rx="2" class="line" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"></rect>
14
14
 
15
15
  <path
@@ -62,21 +62,21 @@
62
62
 
63
63
  <!-- Person (body and head, clearly defined) -->
64
64
  <!-- Head -->
65
- <circle cx="6.5" cy="15.5" r="2" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
65
+ <circle cx="17" cy="10" r="2" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
66
66
  <!-- Body -->
67
- <rect x="3" y="19" width="7" height="8" rx="1.3" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
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="23.5" cy="15.5" r="2" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
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="20" y="19" width="7" height="8" rx="1.3" class="line" stroke="currentColor" stroke-width="1" fill="none"/>
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="15" cy="9" r="2.5" class="fill" fill="currentColor"/>
77
+ <circle cx="10" cy="13" r="2.5" class="fill" fill="currentColor"/>
78
78
  <!-- Body -->
79
- <rect x="10.5" y="12" width="9" height="10" rx="1.3" class="fill" fill="currentColor"/>
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
- administrator &&
62
- organization.title !== 'Academy District 20'
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="email"
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
  },
@@ -390,7 +390,7 @@
390
390
  "primaryColor": "",
391
391
  "secondaryColor": "",
392
392
  "twitter": "",
393
- "website": "",
393
+ "website": "https://dcchigh.asd20.org",
394
394
  "yearFounded": null,
395
395
  "mainMenuItems": [{
396
396
  "id": "de039f50-3742-11ea-a71e-a93d820ffeff",
@@ -153,7 +153,7 @@
153
153
  "primaryColor": "",
154
154
  "secondaryColor": "",
155
155
  "twitter": "",
156
- "website": "",
156
+ "website": "https://dcchigh.asd20.org",
157
157
  "yearFounded": null,
158
158
  "mainMenuItems": [{
159
159
  "id": "de039f50-3742-11ea-a71e-a93d820ffeff",
@@ -78,7 +78,7 @@
78
78
  "primaryColor": "",
79
79
  "secondaryColor": "",
80
80
  "twitter": "",
81
- "website": "",
81
+ "website": "https://dcchigh.asd20.org",
82
82
  "yearFounded": null,
83
83
  "mainMenuItems": [{
84
84
  "id": "de039f50-3742-11ea-a71e-a93d820ffeff",
@@ -537,7 +537,7 @@
537
537
  "primaryColor": "",
538
538
  "secondaryColor": "",
539
539
  "twitter": "",
540
- "website": "",
540
+ "website": "https://www.asd20.org",
541
541
  "yearFounded": null,
542
542
  "mainMenuItems": [{
543
543
  "id": "de039f50-3742-11ea-a71e-a93d820ffeff",
@@ -736,7 +736,7 @@
736
736
  "primaryColor": "",
737
737
  "secondaryColor": "",
738
738
  "twitter": "",
739
- "website": "",
739
+ "website": "https://www.asd20.org",
740
740
  "yearFounded": null,
741
741
  "mainMenuItems": [{
742
742
  "id": "de039f50-3742-11ea-a71e-a93d820ffeff",
@@ -709,7 +709,7 @@
709
709
  "primaryColor": "",
710
710
  "secondaryColor": "",
711
711
  "twitter": "",
712
- "website": "",
712
+ "website": "https://dcchigh.asd20.org",
713
713
  "yearFounded": null,
714
714
  "mainMenuItems": [{
715
715
  "id": "de039f50-3742-11ea-a71e-a93d820ffeff",