<?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: Anargyros Stylidis</title>
    <description>The latest articles on DEV Community by Anargyros Stylidis (@astylidis).</description>
    <link>https://dev.to/astylidis</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%2F512372%2Feaaaa377-292b-4191-9aa5-4f05f6117317.jpg</url>
      <title>DEV Community: Anargyros Stylidis</title>
      <link>https://dev.to/astylidis</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/astylidis"/>
    <language>en</language>
    <item>
      <title>Simple and nice Accordion with framer-motion</title>
      <dc:creator>Anargyros Stylidis</dc:creator>
      <pubDate>Thu, 19 Aug 2021 13:51:50 +0000</pubDate>
      <link>https://dev.to/astylidis/simple-and-nice-accordion-with-framer-motion-l2l</link>
      <guid>https://dev.to/astylidis/simple-and-nice-accordion-with-framer-motion-l2l</guid>
      <description>&lt;h1&gt;
  
  
  React Accordion
&lt;/h1&gt;

&lt;p&gt;I have found different accordion examples to be pretty boring and with little code you can bring more life to accordions!&lt;/p&gt;

&lt;p&gt;We are using framer motion library and also use Tailwind for styling.&lt;br&gt;&lt;br&gt;
&lt;code&gt;npm install tailwind framer-motion&lt;br&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Below is the whole code for the accordion. Just copy and paste it and you have a lively accordion to use on your website!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useState } from "react";
import { motion, AnimatePresence } from "framer-motion";

const Accordion = ({ question, answer }) =&amp;gt; {

  const [isOpen, setIsOpen] = useState(false);

  return (
    &amp;lt;motion.div&amp;gt;
      &amp;lt;AnimatePresence&amp;gt;
        &amp;lt;motion.div
          key="question"
          className="rounded-tr-md relative z-20  rounded-br-md shadow-sm px-1 py-2 bg-blue-200 cursor-pointer font-open border-l-2 border-yellow-500"
          onClick={() =&amp;gt; setIsOpen(!isOpen)}
        &amp;gt;
          &amp;lt;motion.div className="text-gray-800 font-bold ml-1"&amp;gt;
            Do you like animations?
          &amp;lt;/motion.div&amp;gt;
        &amp;lt;/motion.div&amp;gt;

        {isOpen &amp;amp;&amp;amp; (
          &amp;lt;motion.div
            key="answer"
            initial={{ opacity: 0 }}
            animate={{
              opacity: 1,
              transition: {
                duration: 0.5,
              },
            }}
            exit={{ opacity: 0 }}
            className="p-2 text-lg text-gray-700 border-l border-b border-gray-300"
          &amp;gt;
            Yes, I love them!
          &amp;lt;/motion.div&amp;gt;
        )}
      &amp;lt;/AnimatePresence&amp;gt;
    &amp;lt;/motion.div&amp;gt;
  );
};

export default Accordion;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it! Simple yet really nice.&lt;/p&gt;

&lt;p&gt;Stay around for more free code, drop a follow on twitter where you can ask me any questions and get free resources!&lt;br&gt;
&lt;a href="https://twitter.com/AStylidis"&gt;AStylidis&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My personal website:&lt;br&gt;
&lt;a href="https://stylidis.io"&gt;Anargyros Stylidis - Web Developer&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>css</category>
      <category>nextjs</category>
      <category>framermotion</category>
    </item>
    <item>
      <title>Free web dev resources/links</title>
      <dc:creator>Anargyros Stylidis</dc:creator>
      <pubDate>Tue, 10 Aug 2021 13:13:10 +0000</pubDate>
      <link>https://dev.to/astylidis/free-web-dev-resources-links-10fe</link>
      <guid>https://dev.to/astylidis/free-web-dev-resources-links-10fe</guid>
      <description>&lt;h1&gt;
  
  
  Free resources and links for web developers.
&lt;/h1&gt;

&lt;p&gt;Hey, I thought I would share some of my bookmarked sites with free content for all of web developers around here. I use many of them and they saved me a lot of time.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. React Slideshow&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/react-slideshow-image"&gt;https://www.npmjs.com/package/react-slideshow-image&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Simple slideshow for React with straightforward implementation. I've used it before on some of my projects. Looks good and can be customised.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Ionicons. Free open-source icons&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ionic.io/ionicons"&gt;https://ionic.io/ionicons&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Beautiful icons to use on your projects. Many different icons for a lot of uses and even some logos too. One of the best icons websites in a sea of many.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Haikei. Patterns generator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://app.haikei.app/"&gt;https://app.haikei.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Useful pattern generator for backgrounds and shapes. Customise to your own needs and then download in PNG or SVG.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. CSS Gradients&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://cssgradient.io/"&gt;https://cssgradient.io/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A great website to generate your CSS gradients. Pick colors, degrees and more then the code gets generated just below for you to use!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Free for devs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://free-for.dev"&gt;https://free-for.dev&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Last but not least, a websites with TONS of free resources. From BaaS to hosting and more. This website is a goldmine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That's it for now, I hope there's people who find this useful.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;My personal website:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stylidis.io"&gt;https://stylidis.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Drop a follow on Twitter and connect with me!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/AStylidis"&gt;https://twitter.com/AStylidis&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>css</category>
      <category>html</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Simple React Dropdown</title>
      <dc:creator>Anargyros Stylidis</dc:creator>
      <pubDate>Sat, 07 Aug 2021 09:49:28 +0000</pubDate>
      <link>https://dev.to/astylidis/simple-react-dropdown-846</link>
      <guid>https://dev.to/astylidis/simple-react-dropdown-846</guid>
      <description>&lt;p&gt;Just a simple dropdown menu that I am using in my project. I wanted to share it with you all because a lot of dropdown examples I searched for had some small issues.&lt;/p&gt;

&lt;p&gt;I am using framer-motion library for the animations and it is a NextJS project. I am also using Tailwind for the styles. You can of course remove these, but since it's a famous stack to work with I decided to share the whole code as it is.&lt;/p&gt;

&lt;p&gt;Feel free to copy and paste into your own projects!&lt;/p&gt;

&lt;p&gt;Let's start with the imports:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { useState } from "react";
import { motion } from "framer-motion";
import Link from "next/link";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Just copy and paste the following code and everything works fine!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const Dropdown = () =&amp;gt; {
  const [shown, setShown] = useState(false);

  const showMenu = {
    enter: {
      opacity: 1,
      y: 0,
      display: "block",
    },
    exit: {
      y: -5,
      opacity: 0,
      transition: {
        duration: 0.3,
      },
      transitionEnd: {
        display: "none",
      },
    },
  };
  return (
    &amp;lt;motion.div
      onHoverStart={() =&amp;gt; setShown(true)}
      onHoverEnd={() =&amp;gt; setShown(false)}
    &amp;gt;
      &amp;lt;span className="cursor-pointer"&amp;gt;Sections&amp;lt;/span&amp;gt;
      &amp;lt;motion.ul
        variants={showMenu}
        initial="exit"
        animate={shown ? "enter" : "exit"}
        className="absolute bg-white mt-1 border border-blue-strong border-opacity-50 rounded-sm p-2"
      &amp;gt;
        &amp;lt;Link href="/introduction"&amp;gt;
          &amp;lt;motion.li
            whileHover={{
              color: "#FFB703",
              x: 2,
            }}
            className="cursor-pointer p-1 text-blue-primary"
          &amp;gt;
            Introduction
          &amp;lt;/motion.li&amp;gt;
        &amp;lt;/Link&amp;gt;

        &amp;lt;Link href="/html"&amp;gt;
          &amp;lt;motion.li
            whileHover={{
              color: "#FFB703",
              x: 2,
            }}
            className="cursor-pointer p-1 text-blue-primary"
          &amp;gt;
            HTML
          &amp;lt;/motion.li&amp;gt;
        &amp;lt;/Link&amp;gt;

        &amp;lt;motion.li
          whileHover={{
            color: "#FFB703",
            x: 2,
          }}
          className="cursor-pointer p-1 text-blue-primary"
        &amp;gt;
          CSS
        &amp;lt;/motion.li&amp;gt;
        &amp;lt;motion.li
          whileHover={{
            color: "#FFB703",
            x: 2,
          }}
          className="cursor-pointer p-1 text-blue-primary"
        &amp;gt;
          JAVASCRIPT
        &amp;lt;/motion.li&amp;gt;
      &amp;lt;/motion.ul&amp;gt;
    &amp;lt;/motion.div&amp;gt;
  );
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you'd like take a look at my website:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stylidis.io"&gt;https://stylidis.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or hit the follow on twitter:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/AStylidis"&gt;https://twitter.com/AStylidis&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>framermotion</category>
      <category>css</category>
    </item>
    <item>
      <title>My personal website</title>
      <dc:creator>Anargyros Stylidis</dc:creator>
      <pubDate>Wed, 04 Aug 2021 10:35:01 +0000</pubDate>
      <link>https://dev.to/astylidis/my-personal-website-28mj</link>
      <guid>https://dev.to/astylidis/my-personal-website-28mj</guid>
      <description>&lt;h1&gt;
  
  
  Web developer from Greece
&lt;/h1&gt;

&lt;p&gt;Hey y'all, wanted to share my personal website here with all of you.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://stylidis.io"&gt;Stylidis.io&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I've been building it for nearly 2 months. The main reason it took so long is because I changed my mind over how things should look and flow.&lt;/p&gt;

&lt;p&gt;I used NextJS paired with Tailwind. They really make for a great combo. Animations are all framer-motion. I searched the web for resources like some artworks and ideas.&lt;/p&gt;

&lt;h2&gt;
  
  
  Web developer roadmap
&lt;/h2&gt;

&lt;p&gt;I am a self taught developer, I started learning HTML a year ago, June 2020. When I made my first portfolio I used to search blogs and posts like this one to get inspiration. That's the reason I made this post, maybe someone like me sees this and gets inspired to continue.&lt;/p&gt;

&lt;p&gt;I have also started working on a new project which is going to be an "opinionated frontend roadmap". It's gonna follow the steps I did to be able to build websites. It's gonna be 100% beginner friendly and a long read. My way of giving bad to the community and only the first of a lot of helper projects I am thinking of doing.&lt;/p&gt;

&lt;h3&gt;
  
  
  More to come..
&lt;/h3&gt;

&lt;p&gt;Thanks a lot if you read through this, if you wanna connect follow me on Twitter:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://twitter.com/AStylidis"&gt;@AStylidis&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'll make sure to follow back! I can also answer questions for HTML, CSS, Javascript, React, Next. &lt;/p&gt;

</description>
      <category>webdev</category>
      <category>portfolio</category>
      <category>freelance</category>
      <category>nextjs</category>
    </item>
  </channel>
</rss>
