Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 492

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 62k
Author
Asked: November 25, 20242024-11-25T11:23:08+00:00 2024-11-25T11:23:08+00:00

Vortex – Blogs built faster than Lewis Hamilton Drives

  • 62k

Vortex is an open-source library that allows you to build themeable, modular and responsive blogs with just a few lines of code!

Let's build a cool blog with Vortex!

Step 1: Install & Import Vortex

Inside your React project directory, install Vortex by running either of the following:

npm i @hydralite/vortex # or yarn add @hydralite/vortex # or pnpm i @hydralite/vortex 
Enter fullscreen mode Exit fullscreen mode

Now that we've installed Vortex, let's import it.

We can do so by importing the Blog component directly from the Vortex library and it's stylesheet.

import "@hydralite/vortex/dist/style.css"; import Blog from "@hydralite/vortex"; 
Enter fullscreen mode Exit fullscreen mode

Step 2: Initializing Our Blog Component

import "@hydralite/vortex/dist/style.css"; import Blog from "@hydralite/vortex";  function App() {   return (     <div>       <Blog />     </div>   ); }  export default App; 
Enter fullscreen mode Exit fullscreen mode

From now onwards, we'll be focusing primarily on the Blog component for readability purposes.

Step 3: Choose a layout

The first step to building your blog is to choose a layout. There are 3 in-built layouts bundled-in with Vortex.

To understand more about each layout, check out the layout guide.

For now, we'll be choosing the default layout.

<Blog     {/* You can also use Hashnode or DevTO instead  */}     layout = "Default" /> 
Enter fullscreen mode Exit fullscreen mode

Step 4: Add some content

It's time to add some content to our blog!

Vortex supports markdown content, so let's give it some to display!

const content = ` Everything's supported - a [link](https://example.com), some `inline` content, **bold** text, <ins>underlined text</ins>, and even a codeblock with syntax highlighting:  You can specify the language of the codeblock after the backticks (which need to be escaped). ```js console.log("Here's some JavaScript code!"); console.log("it works inside the codeblock!"); ```  ### Images ![image](https://images.ctfassets.net/hrltx12pl8hq/7JnR6tVVwDyUM8Cbci3GtJ/bf74366cff2ba271471725d0b0ef418c/shutterstock_376532611-og.jpg)  ### Tweet Embeds  Below is a tweet embed: [tweet](https://twitter.com/elonmusk/status/1470157804304572420?s=20)  ### GitHub Gist Embeds  Here's a GitHub gist: [gist](https://gist.github.com/getify/2b53198906d320abe650)  ### CodePen Embeds [codepen embed](https://codepen.io/alvaromontoro/pen/vYexLGV) `; 
Enter fullscreen mode Exit fullscreen mode

Now that we've written up some content – let's pass it into the blog!

<Blog layout="Default" content={content} /> 
Enter fullscreen mode Exit fullscreen mode

Step 5: Add headers

It's time to spice up our blog with a banner, a title, a subtitle, and maybe even a category!

<Blog   layout="Default"   content={content}   header={{     title: "Here is my title",     subtitle: "Here's a subtitle",     image: {       src: "https://images.pexels.com/photos/10437856/pexels-photo-10437856.jpeg?auto=compress&cs=tinysrgb&fit=crop&fp-y=0.53&h=500&sharp=20&w=1400",       borderRadius: "20px",     },     category: {       title: "Development & Testing",     },   }} /> 
Enter fullscreen mode Exit fullscreen mode

Step 6: Insert metadata

Let's insert some metadata into our article, like the author, and the date when it was published!

<Blog     layout = "Default"     content = {content}     header = {{...}}     author = {{             name: 'Look! It's me!',             avatar: 'https://avatars.githubusercontent.com/u/63039748?v=4'     }}     date = '12 December, 2021' /> 
Enter fullscreen mode Exit fullscreen mode

Step 7: Add reactions

For more details on this step, check out our reactions guide.

<Blog     layout = "Default"     content = {content}     header = {{...}}     author = {{             name: 'Look! It's me!',             avatar: 'https://avatars.githubusercontent.com/u/63039748?v=4'     }}     date = '12 December, 2021'     reactions = {{         onClick: () => {},         reactions: [             {                 name: 'Heart',                 emote: '❤',                 upvotes: 2             },             {                 name: 'Thumbs Up',                 emote: '👍',                 upvotes: 10             }         ]     }} /> 
Enter fullscreen mode Exit fullscreen mode

Step 8: Make it your own

To finish up, let's customize your blog! Follow the customization and themes documentation for more information.

We need your help

What do you think about Vortex? Do let me know, I'm curious and would love your feedback!

If you'd like to support us, an upvote at our Product Hunt page and a star on our GitHub repository would be incredible.

javascriptlibraryreactwebdev
  • 0 0 Answers
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 1k
  • Popular
  • Answers
  • Author

    How to ensure that all the routes on my Symfony ...

    • 0 Answers
  • Author

    Insights into Forms in Flask

    • 0 Answers
  • Author

    Kick Start Your Next Project With Holo Theme

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.