{"id":267,"date":"2024-05-16T17:35:21","date_gmt":"2024-05-16T17:35:21","guid":{"rendered":"https:\/\/mehndibytifa.com\/blog\/?page_id=267"},"modified":"2024-05-17T13:25:27","modified_gmt":"2024-05-17T13:25:27","slug":"small-business-website-revisited","status":"publish","type":"page","link":"https:\/\/mehndibytifa.com\/blog\/small-business-website-revisited\/","title":{"rendered":"Small Business Website &#8211; Revisited"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"423\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1024x423.png\" alt=\"\" class=\"wp-image-269\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1024x423.png 1024w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-300x124.png 300w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-768x317.png 768w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1536x634.png 1536w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image.png 1871w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Summary of changes<\/h3>\n\n\n\n<p>As part of a campaign to bring customers back to the high street, a non-e-commerce site, for Spokes and Saddles, was required to be designed to increase the awareness and improve trade. The site is to be used as a marketing tool to encourage people to visit the store premises in person. The site contains all the relevant information customers may need to learn more about the business such as location details, contact details, and any images to help visualise what the store is offering.<\/p>\n\n\n\n<p>Of course, there is always scope for improvement, thus, some updates have been made to improve the site&#8217;s purpose. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h4 class=\"wp-block-heading\">1. Page Header &#8211; Logo<\/h4>\n\n\n\n<p>The initial logo in the header included text in an image, as can be seen below:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"156\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/header_logo.png\" alt=\"\" class=\"wp-image-270\" style=\"width:801px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/header_logo.png 725w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/header_logo-300x65.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/figure>\n\n\n\n<p>Using text in images has several drawbacks, for instance, it reduces accessibility; those who are visually impaired that rely on screen-readers will not be able to hear the content that is conveyed in the images. Additionally, it can lower search engine rankings and reduce visibility in search results as the text  within images is not indexed by search engines, hence negatively impact website&#8217;s SEO performance.<\/p>\n\n\n\n<p>In the revisited version of the site, the text is now not part of the image but separate to the business&#8217; logo, as you can see below: <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"422\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1-1024x422.png\" alt=\"\" class=\"wp-image-271\" style=\"width:677px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1-1024x422.png 1024w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1-300x124.png 300w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1-768x316.png 768w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1-1536x633.png 1536w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-1.png 1934w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">2. Line spacing &#8211; especially the Contact Us page<\/h4>\n\n\n\n<p>In the initial design, the contact-us page on the site had ineffective line heights, although there were headings and body text, there was no visual hierarchy. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"691\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-2-1024x691.png\" alt=\"\" class=\"wp-image-273\" style=\"width:587px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-2-1024x691.png 1024w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-2-300x202.png 300w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-2-768x518.png 768w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-2-1536x1036.png 1536w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-2.png 1806w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>In order to enhance readability, visual hierarchy, accessibility, whilst maintaining aesthetics and managing whitespace effectively, the line height between the headers and the body text has been changed in the redesigned version of the contact-us page. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"655\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-3-1024x655.png\" alt=\"\" class=\"wp-image-274\" style=\"width:580px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-3-1024x655.png 1024w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-3-300x192.png 300w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-3-768x491.png 768w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-3-1536x983.png 1536w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-3.png 1624w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">3. Code and Style improvements<\/h4>\n\n\n\n<p>After the initial design of the site, I was made to realise that there were some issues with the markup semantics. I was not using the <strong><code><strong>&lt;section&gt;<\/strong><\/code><\/strong> and the <strong><strong><code>&lt;heading&gt;<\/code><\/strong> <\/strong>tag accurately. I was unaware of the difference between the <strong><code><strong>&lt;section&gt;<\/strong><\/code> <\/strong>and <strong><code><strong>&lt;div&gt;<\/strong><\/code> <\/strong>tag, hence I was using them both interchangeably without much thought. I have learnt that the <strong><code><strong>&lt;section&gt;<\/strong><\/code><\/strong> should have and appropriate <strong><code>&lt;heading&gt;<\/code><\/strong> level. <code><strong>&lt;section&gt;<\/strong><\/code> is used to define semantically meaningful sections of content, while <code><strong>&lt;div&gt;<\/strong><\/code> is a generic container used for grouping content for styling or scripting purposes. It&#8217;s generally recommended to use <code><strong>&lt;section&gt;<\/strong><\/code> when appropriate to enhance the semantic structure of your HTML document, while<strong> <code>&lt;div&gt;<\/code><\/strong> can be used for more generic grouping and styling needs.<\/p>\n\n\n\n<p>For the revisited version, I ensured to use the appropriate HTML semantics to maintain clean and clear code. <\/p>\n\n\n\n<p>Additionally, for the CSS, I tried to reduce as much code as I could using the shorthand box model properties. An example is shown below:<\/p>\n\n\n\n<div class=\"wp-block-group alignwide is-content-justification-center is-nowrap is-layout-flex wp-container-core-group-is-layout-23441af8 wp-block-group-is-layout-flex\">\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"506\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-5.png\" alt=\"\" class=\"wp-image-276\" style=\"width:367px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-5.png 631w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-5-300x241.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"636\" height=\"457\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-6.png\" alt=\"\" class=\"wp-image-277\" style=\"width:411px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-6.png 636w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-6-300x216.png 300w\" sizes=\"auto, (max-width: 636px) 100vw, 636px\" \/><\/figure>\n<\/div>\n\n\n\n<p>Rather than doing <code><strong>padding-bottom:<\/strong><\/code> and <code><strong>padding-bottom:<\/strong><\/code> (as shown in the left image), I have used just <code><strong>padding:<\/strong><\/code> (as shown in the right image), which has the same purpose. Using shorthand box model properties allows conciseness of code and makes it much easier to read. It is much more efficient as it means file sizes are smaller due to the less amount of code that needs to be downloaded by the browser. <\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">4. Site Modularity and 404 Error Page<\/h4>\n\n\n\n<p>In the revisited version of the site for Spokes and Saddles, I have made the site modular, this means that the website is broken into smaller, self-contained modules or components. I have done this by creating <code><strong>.php<\/strong><\/code> includes files. <\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"522\" height=\"408\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-8.png\" alt=\"\" class=\"wp-image-280\" style=\"width:376px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-8.png 522w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/image-8-300x234.png 300w\" sizes=\"auto, (max-width: 522px) 100vw, 522px\" \/><\/figure>\n\n\n\n<p>Having these components helps make it easier to update these pieces of information without having to repeat writing out the code for each<strong> <code>.html<\/code><\/strong><code> <\/code>file. <\/p>\n\n\n\n<p>Lastly, a custom 404 error page has been designed and implemented for the Spokes and Saddles website in this revised version. If the user somehow ends up on a page that does not exist, then the image below is what they will see rather than the system default error page. This helps improve user experience as it helps users who encounter broken links or mistyped URLs to navigate back to the main website easily. It provides a more user-friendly experience than the default browser error message, which may confuse or frustrate users.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"566\" src=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-16-at-17.30.16_dd2a100e-1024x566.jpg\" alt=\"\" class=\"wp-image-281\" style=\"width:658px;height:auto\" srcset=\"https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-16-at-17.30.16_dd2a100e-1024x566.jpg 1024w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-16-at-17.30.16_dd2a100e-300x166.jpg 300w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-16-at-17.30.16_dd2a100e-768x425.jpg 768w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-16-at-17.30.16_dd2a100e-1536x849.jpg 1536w, https:\/\/mehndibytifa.com\/blog\/wp-content\/uploads\/2024\/05\/WhatsApp-Image-2024-05-16-at-17.30.16_dd2a100e.jpg 1599w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>It allows to maintain brand consistency and reinforce the website&#8217;s design and messaging, even when users encounter errors. This helps to maintain a professional and cohesive user experience across the website.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-a89b3969 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/mehndibytifa.com\/blog\/coursework\/\">Go back to Coursework page<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Summary of changes As part of a campaign to bring customers back to the high street, a non-e-commerce site, for Spokes and Saddles, was required to be designed to increase the awareness and improve trade. The site is to be used as a marketing tool to encourage people to visit the store premises in person. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-267","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/pages\/267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/comments?post=267"}],"version-history":[{"count":8,"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/pages\/267\/revisions"}],"predecessor-version":[{"id":288,"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/pages\/267\/revisions\/288"}],"wp:attachment":[{"href":"https:\/\/mehndibytifa.com\/blog\/wp-json\/wp\/v2\/media?parent=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}