Skip to content

Commit

Permalink
Merge pull request #69 from ahmed-sudani/Rounded-scroll-button
Browse files Browse the repository at this point in the history
add rounded scroll button
  • Loading branch information
jsvigneshkanna authored Oct 19, 2022
2 parents c07dec4 + 8eeabaf commit 7b05444
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tailwind_components/buttons/collection.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import test from "./test_file";
import test1 from "./test1_file";
import see_more1 from './see_more1'
import downloadnow from './download_now1.jsx'
import see_more1 from "./see_more1";
import downloadnow from "./download_now1.jsx";
import deleteButton from "./delete_button";
import cardWithButton from "./card_with_button_button1";
import settingButton from "./rectangle_setting";


import roundedScrollButton from "./rounded_scroll_button";

const buttonCollections = [
{componentName: "button2", component: test1},
{componentName: "See more button", component: see_more1},
{componentName: "Card with button", component: cardWithButton},
{componentName: "Delete button", component: deleteButton},
{componentName: "Download now button", component: downloadnow},
{ componentName: "Setting button", component: settingButton },
{componentName: "Setting button", component: settingButton},
{componentName: "Rounded scroll button", component: roundedScrollButton},
];

export default buttonCollections;
29 changes: 29 additions & 0 deletions tailwind_components/buttons/rounded_scroll_button.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { stripIndent } from "react-codepen-prefill-embed";

const roundedScrollButton = stripIndent`<div class="bg-gray-50">
<div class="mx-auto max-w-7xl py-12 px-4 sm:px-6 lg:flex lg:items-center lg:justify-between lg:py-16 lg:px-8">
<h2 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
<span class="block">Ready to dive in?</span>
<span class="block text-indigo-600">Start your free trial today.</span>
</h2>
<div class="mt-8 flex lg:mt-0 lg:flex-shrink-0">
<div class="inline-flex rounded-full border-2 border-black hover:border-gray-300">
<a
href="#"
class="inline-flex flex-col items-center justify-center rounded-full border border-transparent font-bold gap-1 w-28 h-28 hover:bg-gray-200 text-base text-xs">
<span class="mx-2">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="4" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3" />
</svg>
</span>
<div>Scroll</div>
</a>
</div>
</div>
</div>
</div>
</div>`;

export default roundedScrollButton;

1 comment on commit 7b05444

@vercel
Copy link

@vercel vercel bot commented on 7b05444 Oct 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.