<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Dev Shot on Medium]]></title>
        <description><![CDATA[Stories by Dev Shot on Medium]]></description>
        <link>https://medium.com/@devshot-coffee?source=rss-717ccfb349f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*2hDbLfKVWeU0EvhdhlwIeA.png</url>
            <title>Stories by Dev Shot on Medium</title>
            <link>https://medium.com/@devshot-coffee?source=rss-717ccfb349f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 10:18:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devshot-coffee/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Gorgeous Order Summary Component in HTML and CSS]]></title>
            <link>https://devshot-coffee.medium.com/gorgeous-order-summary-component-in-html-and-css-87d093e799be?source=rss-717ccfb349f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/87d093e799be</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Dev Shot]]></dc:creator>
            <pubDate>Wed, 22 Sep 2021 05:34:42 GMT</pubDate>
            <atom:updated>2021-09-22T17:17:00.943Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTXSla-CiBH4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTXSla-CiBH4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTXSla-CiBH4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/e50c3a92f0dacded43d6aa9a320a9d0e/href">https://medium.com/media/e50c3a92f0dacded43d6aa9a320a9d0e/href</a></iframe><p>CSS can be overwhelming at times and 80% of the web developers out there find CSS to be very complicated at times.</p><p>Well, guess what? It ain’t that much of a complication once you get a hold of the basics and that’s exactly what we’re gonna do today.</p><blockquote>Note: This project is a challenge from <a href="https://www.frontendmentor.io/challenges/order-summary-component-QlPmajDUj">Frontend Mentor</a>. The built project’s source code is stored in a <a href="https://github.com/devshot-dotcom/order-summary-component">github repository</a>.</blockquote><p><strong>This is what the final build looks like: </strong><a href="https://devshot-dotcom.github.io/order-summary-component/"><strong>https://devshot-dotcom.github.io/order-summary-component/</strong></a></p><h3>Let’s get started</h3><p>The first thing that we’re gonna roll at is to create an empty index.html file and set up it’s &lt;head&gt; tag with some metadata such as the</p><pre>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot; /&gt;</pre><p>This meta tag is as much necessary for a responsive web design as food for us. Next we’re going to create two folders called images and cssand fill up the former one with <a href="https://github.com/devshot-dotcom/order-summary-component/tree/main/images">these</a> from the repository.</p><h3>Normalize.css</h3><p><a href="https://necolas.github.io/normalize.css/">Normalize.css</a> is an NPM module that provides a CSS file that, quite literally,</p><blockquote>“makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing”.</blockquote><p>Either you can download the <a href="https://github.com/devshot-dotcom/order-summary-component/blob/main/css/normalize.css">CSS file</a> from our repository or install the module yourself, however, the later would require an LTS version of <a href="https://nodejs.org/en/download/">node.js </a>installed on your device.</p><p>To get started, initialize an empty node.js project using</p><pre>npm init -y</pre><p>This will initialize a default node.js project and you can find a package.json file in the project’s root directory. Now run the command</p><pre>npm install normalize.css</pre><p>This will create a node_modules folder in the root folder of your project and you can find the normalize.css file somewhere in this folder.</p><h3>Root Styles</h3><p>Create a new root-style.css file in the css directory and paste these CSS rules in it</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/93c889db17e405d3df0d80eddeeb5fdd/href">https://medium.com/media/93c889db17e405d3df0d80eddeeb5fdd/href</a></iframe><p>Firstly, we’re using <a href="https://fonts.google.com/specimen/Red+Hat+Display">Red Hat Display</a> font from Google Fonts, then we’re creating a whole lot of color shades and storing them in their respective CSS custom properties / variables.</p><p>This allows us to create a color scheme and use the semantic css variables rather than using the raw color names.</p><h4>Naming Convention</h4><p>Then we’re going for some text configuration which is just some font weights and sizes but, the fun part is where we declare the general sizing properties. After a ton of research and consistent scaling difficulty across many different applications, our team figured out the naming convention (smaller, small, normal, large, larger) to be the best working naming convention up-to-date.</p><p>It is as such because you can store whatever you want in the smaller variable and then keep on increasing it as much as you desire without the constant thought of what would happen if I have to increase all these sizes. The same won’t be the case with a variable named --sizing-1rem .</p><h4>Styled Components</h4><p>Before jumping into the world of HTML, we’re writing the CSS of some elements that we’re gonna use, this would give us the ability to have better-looking default HTML elements and we won’t waste our time styling these components later on.</p><p>One thing worth noticing here is the box-shadow , the reason why would be because we’re using CSS variables inside the box-shadow property. Let me break it down for you</p><pre>box-shadow: 0 var(--size-smaller) var(--size-normal) var(--alt-shadow-color);</pre><p>The syntax of box-shadow property goes like</p><pre>box-shadow: x y blur spread color</pre><p>Here,</p><ul><li><strong>x</strong> — The x-offset of the box shadow, 0 means the shadow won’t get tilted on either of the x-axis.</li><li><strong>y </strong>— The y-offset of the box shadow, we’re using a variable to indicate this size.</li><li><strong>blur</strong> — The blur radius of the shadow, we’re blurring the shadow so it gets a nice spread of the color and note that this blur is slightly more than the y-offset which means that the blurred shadow will cover up about the whole button.</li><li><strong>spread</strong> — Think of it as a number of how thick the shadow should be (Which it actually is but, slightly different), we’re ignoring it cuz the default spread-radius works best in most use-cases.</li><li><strong>color </strong>— Very obvious, let’s just quit here.</li></ul><h3>Modular CSS</h3><p>Most web applications use module bundlers and / or package managers to bundle up their static assets such as CSS and images. That’s a perfect way to choose for a large application but, for this challenge, we’re just gonna import other CSS files into a single file that’s embedded within the HTML.</p><pre>/* style.css */</pre><pre>@import &quot;normalize.css&quot;;                       <br>@import &quot;root-style.css&quot;</pre><p>This will make the server return a single CSS file which already has 2 other CSS files within it, decreasing the HTTP requests from the browser by 2.</p><h3>Semantic HTML Markup</h3><p>We’re using HTML5’s semantic elements to ensure a better user experience and SEO management.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/674f731e5bf8326670dd30b023f86a88/href">https://medium.com/media/674f731e5bf8326670dd30b023f86a88/href</a></iframe><p>Note that we’re using our styled component classes as default HTML elements and using undefined (for now) CSS classes for layout management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*vM0qHw9U8k4oF4r3MWJMRw.png" /><figcaption>Styled components without a layout design</figcaption></figure><p>If you’re following correctly, this is what your browser would display right now.</p><p>To fix this, let’s start adding some layout rules in our style.css file. The first element to style is the .viewport which is just a wrapper for the &lt;body&gt; element.</p><p>Following are the styles for the viewport element</p><pre>.viewport {                         <br>    width: 100vw;<br>    height: 100vh;                         <br>    display: grid;                         <br>    place-items: center;                         <br>    padding: var(--size-larger);                         <br>    background: var(--background-color)                                                     url(https://medium.com/&quot;../images/pattern-background-mobile.svg&quot;) center top no-repeat;                                             background-size: contain;<br>}                                               </pre><pre>@media (min-width: 768px) {                         <br>    .viewport {                           <br>        background: var(--background-color)                                    url(https://medium.com/&quot;../images/pattern-background-desktop.svg&quot;) center top no-    repeat;                           <br>        background-size: contain;                         <br>    }                       <br>}</pre><p>This alone makes the build looks very much better than before</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*0raa601kv1V-KekZqTQioQ.png" /><figcaption>A little grid did something very big</figcaption></figure><p>Now, let’s add the styles for the &lt;article&gt; element, the container for all this summary content.</p><pre>article {                         <br>max-width: 375px;                         <br>border-radius: var(--size-normal);                         background: var(--tertiary-color);                         <br>box-shadow: 0 var(--size-largest) var(--size-largest) var(--shadow-color);                       <br>}                                               </pre><pre>.article__cover {                         <br>height: 12rem;                         <br>background: url(https://medium.com/&quot;../images/illustration-hero.svg&quot;) center center no-repeat;                         <br>background-size: cover;                         <br>border-radius: var(--size-normal) var(--size-normal) 0 0;                       }                                               </pre><pre>.article__content {                         <br>padding: var(--size-larger);                       <br>}                                               </pre><pre>.article__content &gt; * {                         <br>margin: 0;                         <br>text-align: center;                         <br>margin-top: var(--size-larger);                       <br>}                                               </pre><pre>.article__content &gt; *:first-child {                         <br>margin: 0;                       <br>}                                               </pre><pre>@media (min-width: 768px) {                         .article__content &gt; *:first-child {                           margin-top: var(--size-larger);                         <br>}                       <br>}</pre><p>These styles fix the maximum width of the article, set its background, shadow, and also the cover image of the article. The result looks like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*3xTJn32zUcH3uTGWuVvBUw.png" /><figcaption>Life is getting better and better</figcaption></figure><p>Next up we just need to set up the card that displays the total cost and the buttons at the very bottom, this would do it</p><pre>.card {                         <br>background: var(--color-on-background);                         padding: var(--size-normal);                         <br>border-radius: var(--size-small);                         <br>display: flex;                         <br>flex-wrap: nowrap;                         <br>justify-content: center;                         <br>align-items: center;                       <br>}                                               </pre><pre>.w-25 {                         <br>width: 25%;                       <br>}                                               </pre><pre>.w-50 {                         <br>width: 50%;                       <br>}                                               </pre><pre>.icon#music {                         <br>background: url(https://medium.com/&quot;../images/icon-music.svg&quot;) center center no-repeat;                         background-size: contain;                       <br>}                                               </pre><pre>.col-text {                         <br>display: flex;                         <br>align-items: start;                         <br>flex-direction: column;                         <br>gap: var(--size-smallest);                       <br>}                                               </pre><pre>.col-buttons {                         <br>display: flex;                         <br>flex-direction: column;                         <br>gap: var(--size-smaller);                       <br>}</pre><p>After this, the build is finished and the final product looks pretty aesthetic (in my opinion)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*IcvYYa7vfKZFvoTyBYvlZA.png" /><figcaption>Order Summary Component</figcaption></figure><p>If you have any questions, please ask in the comment section down below and don’t forget to clap if you read it through. Peace out 👌. Stay tuned for more cuz we, at devshot, are gonna take you to the moon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87d093e799be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Article I Just Stole But Actually Not]]></title>
            <link>https://devshot-coffee.medium.com/an-article-i-just-stole-but-actually-not-12458723b7c2?source=rss-717ccfb349f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/12458723b7c2</guid>
            <category><![CDATA[seo-services]]></category>
            <category><![CDATA[article-writing]]></category>
            <category><![CDATA[seo]]></category>
            <category><![CDATA[article-rewriter]]></category>
            <category><![CDATA[articles]]></category>
            <dc:creator><![CDATA[Dev Shot]]></dc:creator>
            <pubDate>Fri, 30 Jul 2021 15:41:39 GMT</pubDate>
            <atom:updated>2021-07-30T15:41:39.743Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FrW16dg8boUo%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DrW16dg8boUo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FrW16dg8boUo%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/10184dfb66d8220e0af82ba06dac2a57/href">https://medium.com/media/10184dfb66d8220e0af82ba06dac2a57/href</a></iframe><p>Article rewriting, paraphrasing, spinning, synonymizing, I’m not sure if that last one’s even a word but, it all refers to the same thing and that’s to make someone else’s article your own by replacing keywords with their synonyms which gives you the ability to have unlimited, plagiarism-free, instant articles of your own.</p><blockquote>Why would anyone need a rewriter/paraphraser?</blockquote><p>We’re not talking about the traditional paraphrasing where content from other author’s books is used. At the time of writing this script there are 160 billion websites and at least 600 million of these are blogs and I don’t even wanna count how many articles these blogs would contribute, since I suck at maths, and making unique, Search-Engine-Friendly articles at this rate is quite impossible for an average human being. That’s where article rewriting paraphrasing and blah blah blah comes into play and there are a ton of different tools that automate this process that’s not so easy otherwise and all it takes is a few clicks.</p><p>I personally use the spinning/paraphrasing tool of this website called <a href="https://www.seohelpify.com/article-rewriter">SEO Helpify</a>, yeah, what the hell is that name, cuz of a couple of reasons; <br>— Its straight forward.<br> — It’s not pumped with ads.<br> —It has a dark mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D6nwQu-RjH5y5uOTuqXnPA.png" /><figcaption>SEO Helpify’s article rewriter.</figcaption></figure><p>All you gotta do is copy that article your mouth watered about and paste it in the text box and then click the big red submit button and it’ll generate a plagiarism-free, unique, SEO-friendly article with a shit ton of grammar mistakes. Arguably, that’s how Artificial Intelligence works these days, hope that changes soon and we get rid of our ugly jobs, if you know what I mean.</p><h3>Utilizing Grammarly for Maximized Efficiency.</h3><p>Now to fix this, you’ll need an extension called grammarly, visit your browser’s add-ons store and add the grammarly extension to your browser, wait for the extension to open up it’s homepage and then press activate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xNS2gX6wNWhyulg6f2UqAw.png" /><figcaption>Activating grammarly can help with grammar everywhere.</figcaption></figure><p>Now for the fun part, if it all worked nice and clean you can click on the rewritten article on SEO Helpify and grammarly will start doing its thing and mark all the problems whether they’re grammatical errors or spelling mistakes. Copy this article once you’re finished and use it anywhere you want, easy as that.</p><p>If you liked this blog post and want to see more relevant content then please share as much as you can and subscribe to our <a href="https://www.youtube.com/channel/UCYCAUsfy9JybOT-DvdTV_sA">youtube channel</a> cuz we, at Devshot, are gonna take you to the moon!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12458723b7c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Android app design, logo & colour palette]]></title>
            <link>https://devshot-coffee.medium.com/android-app-design-logo-colour-palette-22b81a697ce2?source=rss-717ccfb349f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/22b81a697ce2</guid>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[colors]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[logo-design]]></category>
            <dc:creator><![CDATA[Dev Shot]]></dc:creator>
            <pubDate>Tue, 04 May 2021 04:59:43 GMT</pubDate>
            <atom:updated>2021-05-04T04:59:43.991Z</atom:updated>
            <content:encoded><![CDATA[<iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEusO290tl08%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEusO290tl08&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEusO290tl08%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/60ed6d53be5e11e0b7901fe7d3d4ffc0/href">https://medium.com/media/60ed6d53be5e11e0b7901fe7d3d4ffc0/href</a></iframe><p>As we moved on from the web and found peace with android, came forward the need to share our experience so that you can learn from our mistakes.</p><h3>I hate long intros, lets get to work!</h3><p>What’s the first thing you’d do when you’re thinking of developing an app? Eat some burgers, maybe? Ofc, that’s exactly what me and my team does when we’re stuck so get yourself a burger, then think about the name of your app…</p><blockquote>Well in our case, we literally when to google and translated prayer times to Arabic and found out Salah Tawqit, well, sounds great.</blockquote><h3>How about the colour scheme, or theme, or shades, bruh?</h3><p>That’s kinda easy, just google “Cool Colour Theme Generator” or just go to <a href="https://coolors.co/">coolors </a>and generate one, its that simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jUyuANxdgsuQsRTZxIpBNA.png" /><figcaption>Photo by Snipping Tool on Windows, yep</figcaption></figure><h3>But how am I gonna design it? On a paper? 🤮 Use Figma</h3><p>Now what the coffee is <a href="https://figma.com/">figma</a>, well its a freemium design tool, yeah, freemium. What that means is that Figma is free for nobody but the lone wolves and it has a desktop app and it’s a vector graphics editor. Oof, that means you can design logos, edit vectors, and make youtube thumbnails for free! *poor wallet noises*</p><p>Enough with the lame jokes, Figma actually lets you design pretty cool user interfaces with interaction use-cases, aka use-case prototyping. Lets learn by doing and not by talking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6UXzb4t2QekDGnLmINg3w.png" /><figcaption>Now that’s a part of its <a href="https://figma.com/">homepage</a></figcaption></figure><p>We’re not pros at figma nor do we wanna be, we just chill, eat the burger, have a shot of espresso, and code. But this guy, he’s awesome!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F4W4LvJnNegA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D4W4LvJnNegA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F4W4LvJnNegA%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0ffdb193384105227c67970cbad30eaf/href">https://medium.com/media/0ffdb193384105227c67970cbad30eaf/href</a></iframe><p>Once you get the hang of <strong>figma</strong>, it’s kind of easy to make designs and interfaces, but, how about Logo Making?</p><h3>Make yourself a logo, don’t you dare pay a freelancer or any “generator”</h3><p>It’s really easy, trust me on this one, there are so many sites that provide free vector icons, repeat after me, free vector icons. Now bear in mind you need a vector, that’s a file that ends in <strong>.svg, </strong>although there are other vector file formats, SVG stands for Scalable Vector Graphics, that’s what we need.</p><p>Now this site, <a href="https://flaticon.com/">flaticon</a> is my choice when it comes to downloading free vectors, just get yourself an SVG that suits your suit (I couldn’t find a better one), we’ll edit its colours and size quite easily in figma.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GGiLIjaBwXv5-0gEcQBgAg.png" /><figcaption>Download a free vector from <a href="https://flaticon.com/">flaticon</a></figcaption></figure><p>Now just copy this vector to figma, and we can humiliate it all we want. On the left hand side in figma, you’ll see the layers of your vector, select the layer you want to edit, hold down CTRL/CMD and click on a layer, now you can change its colour, adjust its size, or even reduce it to atoms using the deleting snap.</p><h3>Finale</h3><p>Well, we designed our app using these techniques and ended up with the following two pages, the user can horizontally scroll between these two, isn’t that great?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*ZU1V8FXKxvbJjLicNHG2rw.png" /><figcaption>Salah Tawqit (v2) Home Activity</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22b81a697ce2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>