<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vijaya Kumar</title>
    <description>The latest articles on DEV Community by Vijaya Kumar (@vulchivijay).</description>
    <link>https://dev.to/vulchivijay</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F689995%2F479836d9-e562-4d39-89ff-84e402b8eb06.jpeg</url>
      <title>DEV Community: Vijaya Kumar</title>
      <link>https://dev.to/vulchivijay</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vulchivijay"/>
    <language>en</language>
    <item>
      <title>Design chrome new tab your own by building a simple chrome extension with HTML, CSS, JS and some open API's</title>
      <dc:creator>Vijaya Kumar</dc:creator>
      <pubDate>Sat, 18 Sep 2021 07:07:07 +0000</pubDate>
      <link>https://dev.to/vulchivijay/design-chrome-new-tab-your-own-by-building-a-simple-chrome-extension-with-html-css-js-and-some-open-api-s-lge</link>
      <guid>https://dev.to/vulchivijay/design-chrome-new-tab-your-own-by-building-a-simple-chrome-extension-with-html-css-js-and-some-open-api-s-lge</guid>
      <description>&lt;p&gt;Today, I want to share how to design chrome new tab with simple steps. Minimal configuration with basic knowledge of HTML, CSS and JavaScript and JSON.&lt;/p&gt;

&lt;p&gt;I hope I'm able to help anyone who wants or needs to design their own chrome extension Here I am going to share how to design new tab. Like this we can create awesome chrome extensions.&lt;/p&gt;

&lt;p&gt;Create a root folder inside that add new file name it manifest.json&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "name": "New Tab",
  "description": "Replace new tab page with a personal dashboard time, weather, quotes, and inspiration.",
  "version": "1.0",
  "manifest_version": 3,
  "background": {
    "service_worker": "background.js"
  },
  "permissions": ["storage", "activeTab", "scripting"],
  "chrome_url_overrides": { "newtab": "index.html" }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  How to add our source code to chrome browser as extension?
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Open chrome browser go to settings page.&lt;/li&gt;
&lt;li&gt;Select extensions link from left panel.&lt;/li&gt;
&lt;li&gt;Turn On developer mode right top corner in extension page.&lt;/li&gt;
&lt;li&gt;Click Load unpacked button and select your root folder which we created at beginning.&lt;/li&gt;
&lt;li&gt;Turn off developer mode. Open new tab to see your design based on your HTML, CSS and JavaScript.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Write your own HTML, CSS and JavaScript and design your new tab as you like.&lt;/p&gt;

&lt;p&gt;Note: We are storing data in chrome.storage method which we can access later wherever we need.&lt;/p&gt;

&lt;p&gt;For reference I am sharing my design code [inprogress repo] link: &lt;a href="https://github.com/vulchivijay/chrome-extension-newtab"&gt;https://github.com/vulchivijay/chrome-extension-newtab&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--m7-Tdf1Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kfrp8oys9fk3pocnpg9c.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--m7-Tdf1Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kfrp8oys9fk3pocnpg9c.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JlMT2Uck--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m4ahcn1ddx4juuwt27s8.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JlMT2Uck--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m4ahcn1ddx4juuwt27s8.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>chromeextension</category>
      <category>newtab</category>
      <category>chromestore</category>
      <category>chromenewtab</category>
    </item>
    <item>
      <title>Build a React accordion widget in 2 minutes</title>
      <dc:creator>Vijaya Kumar</dc:creator>
      <pubDate>Sat, 18 Sep 2021 03:59:11 +0000</pubDate>
      <link>https://dev.to/vulchivijay/build-a-react-accordion-widget-4kad</link>
      <guid>https://dev.to/vulchivijay/build-a-react-accordion-widget-4kad</guid>
      <description>&lt;p&gt;This is my first post in dev community. Today, I want to share build simple plain accordion using react. This section is really important section of an app or a website, since you have an opportunity to have important questions and answers about your services/product or even your industry and rank better organically in Google.&lt;/p&gt;

&lt;p&gt;I hope I'm able to help anyone who wants or needs to build an accordion section for their website or their app.&lt;/p&gt;

&lt;p&gt;I'm leaving the URL of the code and styles at the end of the article and also a working demo if you want to check it out.&lt;/p&gt;

&lt;p&gt;We will use React useState hooks. Which is enough to accomplish the accordion implementation.&lt;/p&gt;

&lt;p&gt;Simple Click event,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
  const [active, setActive] = useState(-1);
  const accordian = [
    {
      title: 'Accordion 1',
      paras: [
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget.',
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget.',
      ],
    },
    {
      title: 'Accordion 2',
      paras: [
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget.',
      ],
    },
    {
      title: 'Accordion 3',
      paras: [
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget.',
        'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse malesuada lacus ex, sit amet blandit leo lobortis eget.',
      ],
    },
  ];

  const handleClick = (index) =&amp;gt; {
    if (index === active) setActive(-1);
    else setActive(index);
  };
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we have the DOM rendering part of the code using an onClick and ternary operators, like so&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ul className="accordian"&amp;gt;
        {accordian.map((item, index) =&amp;gt; {
          return (
            &amp;lt;li
              key={index}
              onClick={() =&amp;gt; handleClick(index)}
              className={index === active ? 'active' : ''}
            &amp;gt;
              &amp;lt;div className="accordian-title"&amp;gt;{item.title}&amp;lt;/div&amp;gt;
              &amp;lt;div className="accordian-content"&amp;gt;
                {item.paras.map((para) =&amp;gt; {
                  return &amp;lt;p&amp;gt;{para}&amp;lt;/p&amp;gt;;
                })}
              &amp;lt;/div&amp;gt;
            &amp;lt;/li&amp;gt;
          );
        })}
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--dPjqWQ0---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8iy29rkz1z21i15n6b4i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--dPjqWQ0---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8iy29rkz1z21i15n6b4i.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;demo link: &lt;a href="https://stackblitz.com/edit/react-u5w7ex"&gt;https://stackblitz.com/edit/react-u5w7ex&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>accordion</category>
      <category>usestate</category>
    </item>
  </channel>
</rss>
