<?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 Connie Tran on Medium]]></title>
        <description><![CDATA[Stories by Connie Tran on Medium]]></description>
        <link>https://medium.com/@connietrandev?source=rss-703b8f0aa391------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*C_SZUw4kMiVv2htL</url>
            <title>Stories by Connie Tran on Medium</title>
            <link>https://medium.com/@connietrandev?source=rss-703b8f0aa391------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 12:37:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@connietrandev/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[Simple Tips for Writing Great HTML & CSS]]></title>
            <link>https://medium.com/mintbean-io/simple-tips-for-writing-great-html-css-23a82c1abe78?source=rss-703b8f0aa391------2</link>
            <guid isPermaLink="false">https://medium.com/p/23a82c1abe78</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Connie Tran]]></dc:creator>
            <pubDate>Mon, 05 Jul 2021 03:25:16 GMT</pubDate>
            <atom:updated>2021-07-05T03:25:16.896Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Stack of books titled “Stunning CSS” and “Javascript &amp; JQuery”" src="https://cdn-images-1.medium.com/max/1024/1*ktUiN4HuCz_nkRrL96xfFg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@kobuagency">@kobuagency</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Mintbean.io hosted its first Learn-a-bit challenge, focusing on learning one bit of code at a time.</p><p>Here are some mind blowing-ly simple tips for writing great HTML &amp; CSS from our first challenge that you can implement in no time.</p><h3>Select classes in your CSS, not HTML elements</h3><p>Ever wonder why a &lt;button&gt; HTML element has a class of .button? For example:</p><pre>&lt;button class=”button”&gt;</pre><p>You’ve probably also seen:</p><pre>&lt;header class=”header”&gt;</pre><p>The selectors in your CSS should be selecting by the .header class, not the &lt;header&gt; HTML element. So, why do this?</p><p>If you select the &lt;header&gt; HTML element in your CSS, this will style every &lt;header&gt; HTML element. But as you add different types of headers, selecting by &lt;header&gt; no longer becomes scaleable.</p><p>For example, you could have an article header vs. site header. You’ll want to style these by specific classes: .article_header and .site_header.</p><p>Another disadvantage when you select by tag rather than class is that your HTML markup can’t change. Your style is tightly coupled to your DOM, and any change increases the risk of breaking things.</p><p>Of course with every rule, there are exceptions. You’ll want to select by tag for global font styles, default colors, and CSS resets.</p><p>For more advantages on decoupling your CSS and HTML (and the exceptions too), check out why: <a href="https://frontstuff.io/you-need-to-stop-targeting-tags-in-css">You Need to Stop Targeting Tags in CSS</a></p><h3>display: none actually hides an element from the DOM</h3><p>As part of our first Mintbean Learn-a-bit challenge, we had to create a collapsing navbar where the menu buttons become the classic “hamburger” menu icon on mobile.</p><p>Generally, the most accepted method and best approach is to have the “hamburger” menu icon inline in the navbar on desktop but set it to display: none.</p><p>display: none actually hides the element from the DOM and removes it from the normal flow of the page. display: none also keeps it from taking up space and affecting other elements being rendered.</p><p>In contrast, visibility: hidden leaves the element in the normal flow of the page such that it still occupies space but is not displayed.</p><p>If you want the element to have a transition or fade-in effect when becoming visible, use opacity: 0. But this also keeps the element in the flow of the document.</p><p>For more on the difference between display, visibility, and opacity, check out: <a href="https://magnusbenoni.com/difference-between-display-visibility-opacity/">Hiding an Element with CSS: Display vs Visibility vs Opacity</a></p><h3>Use an HTML entity for a hamburger icon</h3><p>To create a hamburger icon, you <em>could</em> code up an svg, import an entire icon font library, or (painfully) build one out of CSS.</p><p>But the quickest and neatest way to render the “hamburger” icon is with the HTML entity code: &amp;#9776;</p><p>Example HTML:</p><pre>&lt;span class=&quot;navigation__hamburger&quot;&gt;&amp;#9776;&lt;/span&gt;</pre><p>Using CSS pseudo-elements does give you the advantage of being able to animate the hamburger icon, but using the &amp;#9776; HTML entity:</p><ul><li>Requires no HTTP requests,</li><li>Is scalable for high density screens,</li><li>Can be manipulated with CSS, and</li><li>Is so simple it’s mind blowing.</li></ul><p>Just make sure your document is using the UTF-8 character set (which is probably already is) by placing a meta tag in the &lt;head&gt; of the page.</p><pre>&lt;meta charset=&quot;UTF-8&quot; /&gt;</pre><p>And before creating your next icon from scratch, check out <a href="https://copypastecharacter.com/">Copy Paste Character</a> (especially the “Graphic shapes” section) for a library of HTML characters you can just copy and paste.</p><h3>How to build your own homemade Bootstrap grid</h3><p>Everyone knows the 12-column Bootstrap grid. But how do you code up your own from scratch?</p><p>The simple answer: Create a &lt;div class=&quot;container&quot;&gt; and set margin: 0 auto.</p><p>But what happens if you’ve got elements like your navbar that go full width, but you want your content to stay on a grid?</p><p>Easy: Place your content in the &lt;div class=&quot;container&quot;&gt; but style your .nav to be full width. Here’s an example — note the classes for the first 2 HTML elements:</p><pre>&lt;nav class=&quot;nav&quot;&gt;<br>    &lt;div class=&quot;container&quot;&gt;<br>        &lt;img<br>            class=&quot;logo&quot;<br>            src=&quot;./images/learnabit-logo.png&quot;<br>            alt=&quot;learn-a-bit logo&quot;<br>        /&gt;<br>        &lt;div class=&quot;hamburger&quot;&gt;&amp;#9776;&lt;/div&gt;<br>        &lt;ul class=&quot;nav__list&quot;&gt;<br>          &lt;li class=&quot;nav__item&quot;&gt;<br>            &lt;a class=&quot;nav__link&quot; href=&quot;#&quot;&gt;Intro&lt;/a&gt;<br>          &lt;/li&gt;<br>          &lt;li class=&quot;nav__item&quot;&gt;<br>            &lt;a class=&quot;nav__link&quot; href=&quot;#&quot;&gt;About&lt;/a&gt;<br>          &lt;/li&gt;<br>        &lt;/ul&gt;<br>    &lt;/div&gt;<br> &lt;/nav&gt;</pre><p>You can target your .nav class to be full width. But everything in &lt;div class=&quot;container&quot;&gt; stays on your grid.</p><p>If you want to know the order you should list your CSS properties and why you should link your font in HTML rather than CSS, check out the <a href="https://github.com/Mintbean/Learn-a-bit/blob/main/Feedback/challenge01-feedback.md">feedback doc</a> from the first Mintbean Learn-a-bit challenge on Github for more fundamental concepts and best practices.</p><h3>Join Mintbean’s next Learn-a-bit challenge</h3><p>Learn-a-bit is a great way for beginners to have fun casual challenges that are focused on the fundamentals of coding in HTML, CSS, and Javascript.</p><p>There is no pressure, it is not a competition. But it does offer practice in the fundamentals that are overlooked in favor of bloated libraries and plugins.</p><p>If you want to participate in the next Learn-a-bit challenge, check out <a href="https://mintbean.io/">Mintbean.io</a>.</p><p>Special thanks goes to <a href="https://github.com/emsad87">Emsad Ahmetašević</a>, <a href="https://github.com/Jalcantara88">Julio Alcantara</a>, and <a href="https://github.com/ChrisDiPiero">Chris DiPiero</a> for putting the Learn-a-bit challenge together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23a82c1abe78" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mintbean-io/simple-tips-for-writing-great-html-css-23a82c1abe78">Simple Tips for Writing Great HTML &amp; CSS</a> was originally published in <a href="https://medium.com/mintbean-io">Mintbean.io</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Customize your Terminal Prompt with VSCode]]></title>
            <link>https://medium.com/mintbean-io/how-to-customize-your-terminal-prompt-with-vscode-6c045e73d200?source=rss-703b8f0aa391------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c045e73d200</guid>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[scripting]]></category>
            <category><![CDATA[bash]]></category>
            <dc:creator><![CDATA[Connie Tran]]></dc:creator>
            <pubDate>Tue, 11 May 2021 15:55:59 GMT</pubDate>
            <atom:updated>2021-06-03T20:05:02.706Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How to Customize Your Terminal Prompt with VSCode</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cXcqa4DHYbYZGK3CetV1Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@goran_ivos">Goran Ivos</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Some simple color changes to your Terminal prompt can make things like your working directory pop.</p><p>Read on if you want to give your Terminal prompt and integrated terminal in Visual Studio Code some custom colors so it looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lELmV2UBfuhW10JHlpAG9Q.png" /></figure><h3>Quick disclaimer: bash vs. zsh</h3><p>The steps I show work for bash as opposed to another terminal shell like zsh. If these steps work for you with zsh or another shell, please do let me know, and I can edit this article to include.</p><h3>This tutorial isn’t just for VSCode.</h3><p>You might have come across articles on how to customize the integrated terminal in Visual Studio Code.</p><p>The problem is that if you change the terminal in VSCode, this doesn’t change the prompt in your actual Terminal application on macOS.</p><p>Follow this tutorial if you want to change BOTH the Terminal and integrated terminal in VSCode.</p><h3>Step 1: Choose your colors</h3><p>The first thing you’ll want to do is choose what your final prompt is going to look like.</p><p>It turns out the syntax for changing anything in the terminal is not human-readable. Just to get the customized prompt I showed above, the final syntax turned out like this:</p><pre>export PS1=&quot;\[\e[0;34m\]\u\[\e[0;32m\]@\[\e[0;36m\]\w \[\e[0;37m\]\@ \[\e[0;35m\]$ \[\e[0m\]&quot;</pre><p>Crazy, right?</p><p>So you’ll want to use a prompt generator site that spits out the script for you. You’ll find a number of these if you search for them. For bash, I used this <a href="https://scriptim.github.io/bash-prompt-generator/">bash prompt generator</a> by Scriptim.</p><p>Most of these prompt generators give you a list of prompt elements like your hostname (your machine’s name, eg, Connies-Macbook-Pro) or your username (what you use to log in to your machine, eg, connietran) that you can choose to display in your prompt (aka everything before the $).</p><p>These generators also usually give you the option of entering custom characters like ~ or ? or spaces that you can insert between elements.</p><p>Then drag and drop the elements in the order you’d like and customize the color of each element by clicking on that specific element.</p><p>If you play around with one of these generators, you’ll get the hang of it.</p><figure><img alt="List of prompt elements from the Scriptim bash prompt generator." src="https://cdn-images-1.medium.com/max/413/1*aMUZ9wXXS7qQR92sQxve2Q.png" /><figcaption>List of prompt elements from the <a href="https://scriptim.github.io/bash-prompt-generator/">Scriptim</a> bash prompt generator.</figcaption></figure><h3>Step 2: Update your .bash_profile</h3><p>Now that you’ve generated the final script, go to your user home directory by opening up Terminal and entering cd ~.</p><p>Enter ls -la to list all of the files in your user home directory. The -a flag in -la shows hidden files including your.bash_profile file.</p><p>.bash_profile is a configuration file for the bash shell that’s invoked every time you open a new terminal shell. Every time a new shell is loaded, ~/.bash_profile is loaded and all of the code contained within is executed.</p><p>If .bash_profile doesn’t exist, you can create one by entering:</p><pre>touch .bash_profile </pre><p>Open .bash_profile file in Visual Studio Code to edit it by entering:</p><pre>code .bash_profile</pre><p>Instead of struggling to exit vi or Vim or any other terminal-based text editor, just use Visual Studio Code to edit the file. Mind blown.</p><p>Paste the prompt script you generated into .bash_profile and save the file in VSCode. Make sure you include the variable export PS1= . For example, here’s what my .bash_profile file looks like:</p><figure><img alt="Final .bash_profile file" src="https://cdn-images-1.medium.com/max/1024/1*YxT1d9id0-dgyRjpfoGBXw.png" /></figure><p>Here’s my final .bash_profile:</p><pre>export PS1=&quot;\[\e[0;34m\]\u\[\e[0;32m\]@\[\e[0;36m\]\w \[\e[0;37m\]\@ \[\e[0;35m\]$ \[\e[0m\]&quot;</pre><pre>echo &quot;HI C0NNIE&quot;</pre><p>Close and restart your Terminal and VSCode to see the changes to your prompt in both applications.</p><p>While you’re in .bash_profile you can do other simple things like echo “Your string here&quot;which will print a string whenever you start a new shell. I’ve put in echo &quot;HI C0NNIE&quot; at the end of my .bash_profile so I’m greeted everything time I start a new shell. Voila.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lELmV2UBfuhW10JHlpAG9Q.png" /><figcaption>My new customized Terminal</figcaption></figure><figure><img alt="Final integrated terminal in VSCode with customized colors" src="https://cdn-images-1.medium.com/max/1024/1*0-8b3ahYxhzjc5Jg8L7Mtw.png" /><figcaption>The integrated terminal in VSCode reflects the same settings as my Terminal prompt</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c045e73d200" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mintbean-io/how-to-customize-your-terminal-prompt-with-vscode-6c045e73d200">How to Customize your Terminal Prompt with VSCode</a> was originally published in <a href="https://medium.com/mintbean-io">Mintbean.io</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>