Skip to content

Commit 2f3fd8d

Browse files
authored
Merge pull request realstoman#15 from NangialaiStoman/download-file-and-ui-updates
Web Accessibility, Download Resume and UI Updates
2 parents ded96e8 + be1e95f commit 2f3fd8d

File tree

10 files changed

+16997
-54
lines changed

10 files changed

+16997
-54
lines changed

package-lock.json

Lines changed: 16915 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

src/components/ThemeSwitcher.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<a href="#" @click.prevent="toggleTheme">
2+
<a href="#" @click.prevent="toggleTheme" aria-label="Theme Switcher">
33
<i
44
v-if="theme === 'light'"
55
data-feather="moon"

src/components/about/AboutCounter.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
:autoinit="true"
1515
@finished="alert(`Counting finished!`)"
1616
class="text-4xl font-bold text-secondary-dark dark:text-secondary-light mb-2"
17+
aria-label="About Status Counter"
1718
/>
1819
<span
1920
class="block text-md text-ternary-dark dark:text-ternary-light"

src/components/home/Banner.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
</p>
1717
<div class="flex justify-center sm:block">
1818
<a
19-
href="#"
20-
class="flex justify-center items-center w-36 sm:w-48 mt-12 mb-6 sm:mb-0 text-lg border border-indigo-200 dark:border-ternary-dark py-2.5 sm:py-3 shadow-lg rounded-xl bg-indigo-50 hover:bg-indigo-500 text-gray-500 hover:text-white"
19+
download="Stoman-Resume.pdf"
20+
href="/files/Stoman-Resume.pdf"
21+
class="flex justify-center items-center w-36 sm:w-48 mt-12 mb-6 sm:mb-0 text-lg border border-indigo-200 dark:border-ternary-dark py-2.5 sm:py-3 shadow-lg rounded-xl bg-indigo-50 focus:ring-1 focus:ring-indigo-900 hover:bg-indigo-500 text-gray-500 hover:text-white"
22+
aria-label="Download Resume"
2123
>
2224
<i
2325
data-feather="arrow-down-circle"

src/components/project/ProjectsGrid.vue

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
:key="project.id"
2222
to="/projects/single-project"
2323
class="rounded-3xl shadow-lg hover:shadow-xl cursor-pointer mb-10 sm:mb-0 bg-secondary-light dark:bg-ternary-dark"
24+
aria-label="Single Project"
2425
>
2526
<div>
2627
<img
@@ -46,12 +47,12 @@
4647

4748
<!-- Load more projects button start -->
4849
<div class="mt-10 sm:mt-20 flex justify-center">
49-
<button
50-
class="flex items-center px-6 py-3 rounded-xl shadow-lg hover:shadow-xl bg-indigo-500 hover:bg-indigo-600 text-white text-lg sm:text-xl font-medium"
50+
<router-link
51+
to="/projects"
52+
class="flex items-center px-6 py-3 rounded-xl shadow-lg hover:shadow-xl bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 text-white text-lg sm:text-xl font-medium"
53+
aria-label="More Projects"
54+
>More Projects</router-link
5155
>
52-
<i data-feather="refresh-cw" class="w-5 mr-3"></i>
53-
<span>Load More</span>
54-
</button>
5556
</div>
5657
<!-- Load more projects button end -->
5758
</section>

src/components/project/SingleProjectInfo.vue

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@
1111
About Client
1212
</p>
1313
<ul class="leading-loose">
14-
<li class="text-ternary-dark dark:text-ternary-light">
15-
<span>Name: </span>
16-
Kabul Company Ltd
17-
</li>
18-
<li class="text-ternary-dark dark:text-ternary-light">
19-
<span>Services: </span>
20-
UI Design & Frontend Development
21-
</li>
22-
<li class="text-ternary-dark dark:text-ternary-light">
23-
<span>Website: </span>
24-
<a href="#">https://kabul.com</a>
25-
</li>
26-
<li class="text-ternary-dark dark:text-ternary-light">
27-
<span>Phone: </span>
28-
+93 7888 888 88
14+
<li
15+
v-for="info in companyInfos"
16+
:key="info"
17+
class="text-ternary-dark dark:text-ternary-light"
18+
>
19+
<span>{{ info.title }}: </span>
20+
<a
21+
href="#"
22+
:class="
23+
info.title == 'Website' || info.title == 'Phone'
24+
? 'hover:underline cursor-pointer'
25+
: ''
26+
"
27+
aria-label="Project Webiste and Phone"
28+
>{{ info.details }}</a
29+
>
2930
</li>
3031
</ul>
3132
</div>
@@ -73,6 +74,7 @@
7374
:key="social.id"
7475
:href="social.url"
7576
target="__blank"
77+
aria-label="Share Project"
7678
class="bg-ternary-light dark:bg-ternary-dark text-gray-400 hover:text-primary-dark dark:hover:text-primary-light p-2 rounded-lg shadow-sm"
7779
><i :data-feather="social.icon" class="w-5 h-5"></i
7880
></a>
@@ -108,6 +110,28 @@ import feather from 'feather-icons';
108110
export default {
109111
data() {
110112
return {
113+
companyInfos: [
114+
{
115+
id: 1,
116+
title: 'Name',
117+
details: 'Company Ltd',
118+
},
119+
{
120+
id: 2,
121+
title: 'Services',
122+
details: 'UI Design & Frontend Development',
123+
},
124+
{
125+
id: 3,
126+
title: 'Website',
127+
details: 'https://company.com',
128+
},
129+
{
130+
id: 4,
131+
title: 'Phone',
132+
details: '555 8888 888',
133+
},
134+
],
111135
technlogies: [
112136
{
113137
title: 'Tools & Technologies',

src/components/shared/Footer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<a
3838
href="https://stoman.me"
3939
target="__blank"
40-
class="text-secondary-dark dark:text-secondary-light font-medium uppercase"
40+
class="text-secondary-dark dark:text-secondary-light font-medium uppercase hover:underline"
4141
>Stoman</a
4242
>
4343
</div>

src/components/shared/Header.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313
v-if="theme === 'light'"
1414
src="../../assets/images/logo-dark.svg"
1515
class="w-36"
16-
alt=""
16+
alt="Dark Logo"
1717
/>
1818
<img
1919
v-else
2020
src="../../assets/images/logo-light.svg"
2121
class="w-36"
22-
alt=""
22+
alt="Light Logo"
2323
/>
2424
</router-link>
2525
</div>
@@ -39,6 +39,7 @@
3939
@click="isOpen = !isOpen"
4040
type="buttom"
4141
class="focus:outline-none"
42+
aria-label="Humberger Menu"
4243
>
4344
<svg
4445
xmlns="http://www.w3.org/2000/svg"
@@ -71,16 +72,19 @@
7172
<router-link
7273
to="/projects"
7374
class="block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2"
75+
aria-label="Projects"
7476
>Projects</router-link
7577
>
7678
<router-link
7779
to="/about"
7880
class="block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2 border-t-2 pt-3 sm:pt-2 sm:border-t-0 border-primary-light dark:border-secondary-dark"
81+
aria-label="About Me"
7982
>About Me</router-link
8083
>
8184
<router-link
8285
to="/contact"
8386
class="block text-left text-lg font-medium text-primary-dark dark:text-ternary-light hover:text-secondary-dark dark:hover:text-secondary-light sm:mx-4 mb-2 sm:py-2 border-t-2 pt-3 sm:pt-2 sm:border-t-0 border-primary-light dark:border-secondary-dark"
87+
aria-label="Contact"
8488
>Contact</router-link
8589
>
8690
<div
@@ -89,6 +93,7 @@
8993
<button
9094
class="sm:hidden block text-left text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-md px-4 py-2 mt-2"
9195
@click="showModal()"
96+
aria-label="Hire Me Button"
9297
>
9398
Hire Me
9499
</button>
@@ -105,6 +110,7 @@
105110
<button
106111
class="text-md font-medium bg-indigo-500 hover:bg-indigo-600 text-white shadow-sm rounded-lg px-5 py-2.5"
107112
@click="showModal()"
113+
aria-label="Hire Me Button"
108114
>
109115
Hire Me
110116
</button>
@@ -192,7 +198,7 @@
192198
name="subject"
193199
type="text"
194200
required=""
195-
aria-label="Subject"
201+
aria-label="Project Category"
196202
>
197203
<option
198204
v-for="category in categories"
@@ -210,14 +216,16 @@
210216
name="message"
211217
cols="14"
212218
rows="6"
219+
aria-label="Details"
213220
placeholder="Project description"
214221
></textarea>
215222
</div>
216223

217224
<div class="mt-6">
218225
<button
219-
class="px-6 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 rounded-lg"
226+
class="px-6 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 rounded-lg focus:ring-1 focus:ring-indigo-900"
220227
type="submit"
228+
aria-label="Submit Request"
221229
>
222230
Send Request
223231
</button>
@@ -228,8 +236,9 @@
228236
class="modal-footer py-3 px-5 border0-t text-right"
229237
>
230238
<button
231-
class="px-6 py-2 bg-indigo-400 hover:bg-indigo-500 rounded-lg font-bold text-primary-light"
239+
class="px-6 py-2 bg-indigo-400 hover:bg-indigo-500 rounded-lg font-bold text-primary-light focus:ring-1 focus:ring-indigo-900"
232240
@click="showModal()"
241+
aria-label="Close Modal"
233242
>
234243
Close
235244
</button>

src/views/Contact.vue

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,15 @@
7272
name="message"
7373
cols="14"
7474
rows="6"
75+
aria-label="Message"
7576
></textarea>
7677
</div>
7778

7879
<div class="mt-6">
7980
<button
80-
class="px-4 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 rounded-lg"
81+
class="px-4 py-2.5 text-white font-medium tracking-wider bg-indigo-500 hover:bg-indigo-600 focus:ring-1 focus:ring-indigo-900 rounded-lg"
8182
type="submit"
83+
aria-label="Send Message"
8284
>
8385
Send Message
8486
</button>
@@ -106,11 +108,19 @@
106108
:data-feather="contact.icon"
107109
class="w-5 text-gray-500 dark:text-gray-400 mr-4"
108110
></i>
109-
<p
111+
<a
112+
href="#"
110113
class="text-lg mb-4 text-ternary-dark dark:text-ternary-light"
114+
:class="
115+
contact.icon === 'mail' ||
116+
contact.icon === 'phone'
117+
? 'hover:underline cursor-pointer'
118+
: ''
119+
"
120+
aria-label="Website and Phone"
111121
>
112122
{{ contact.name }}
113-
</p>
123+
</a>
114124
</li>
115125
</ul>
116126
</div>
@@ -128,17 +138,17 @@ export default {
128138
contacts: [
129139
{
130140
id: 1,
131-
name: 'Wazir Akbar Khan, Kabul, Afghanistan',
141+
name: 'Your Address, Your City, Your Country',
132142
icon: 'map-pin',
133143
},
134144
{
135145
id: 2,
136-
name: 'email@example.com',
146+
name: 'email@domain.com',
137147
icon: 'mail',
138148
},
139149
{
140150
id: 3,
141-
name: '+93 7888 888 88',
151+
name: '555 8888 888',
142152
icon: 'phone',
143153
},
144154
],

0 commit comments

Comments
 (0)