Skip to content

Commit

Permalink
add promo
Browse files Browse the repository at this point in the history
  • Loading branch information
Frenziecodes committed Jun 25, 2023
1 parent af8ad7b commit 8ff5784
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 24 deletions.
32 changes: 9 additions & 23 deletions src/components/AdvertBanner.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import React, { useState } from 'react';
import NameCheapPromo from '../images/NameCheap.png'; // change the advert to this image
const trackingLink = 'https://namecheap.pxf.io/c/4427884/1130495/5618';

function AdvertBanner() {
const [isBannerVisible, setBannerVisible] = useState(true);
Expand All @@ -12,30 +14,14 @@ function AdvertBanner() {
}

return (
<div className="alert alert-dismissible fade show items-center justify-between rounded-sm mb-1 bg-blue-800 py-4 px-6 text-center text-white md:flex md:text-left">
<div className="mb-4 flex flex-wrap items-center justify-center md:mb-0 md:justify-start">
<span className="mr-2 h-5 w-5">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="2"
stroke="currentColor" className="text-white">
<path strokeLinecap="round" strokeLinejoin="round"
d="M15.362 5.214A8.252 8.252 0 0112 21 8.25 8.25 0 016.038 7.048 8.287 8.287 0 009 9.6a8.983 8.983 0 013.361-6.867 8.21 8.21 0 003 2.48z" />
<path strokeLinecap="round" strokeLinejoin="round"
d="M12 18a3.75 3.75 0 00.495-7.467 5.99 5.99 0 00-1.925 3.546 5.974 5.974 0 01-2.133-1A3.75 3.75 0 0012 18z" />
</svg>
</span>
<strong className="mr-1">Advertise with us!</strong> Reach Your Target Audience with Our Advertising Opportunities
</div>
<div className="flex items-center justify-center">
<a
className="mr-4 inline-block rounded bg-neutral-50 px-6 pt-2.5 pb-2 text-xs font-medium uppercase leading-normal text-neutral-800 shadow-[0_4px_9px_-4px_rgba(251,251,251,0.05)] transition duration-150 ease-in-out hover:bg-blue-900 hover:text-white hover:shadow-[0_8px_9px_-4px_rgba(203,203,203,0.05),0_4px_18px_0_rgba(203,203,203,0.05)] focus:bg-neutral-100 focus:shadow-[0_8px_9px_-4px_rgba(203,203,203,0.05),0_4px_18px_0_rgba(203,203,203,0.05)] focus:outline-none focus:ring-0 active:bg-neutral-200 active:shadow-[0_8px_9px_-4px_rgba(203,203,203,0.05),0_4px_18px_0_rgba(203,203,203,0.05)] dark:shadow-[0_4px_9px_-4px_rgba(251,251,251,0.05)] dark:hover:shadow-[0_8px_9px_-4px_rgba(251,251,251,0.1),0_4px_18px_0_rgba(251,251,251,0.05)] dark:focus:shadow-[0_8px_9px_-4px_rgba(251,251,251,0.1),0_4px_18px_0_rgba(251,251,251,0.05)] dark:active:shadow-[0_8px_9px_-4px_rgba(251,251,251,0.1),0_4px_18px_0_rgba(251,251,251,0.05)]"
href="https://forms.gle/ss6yhtQcRdVSSenW6" role="button" data-te-ripple-init data-te-ripple-color="light"
>
Get Started
<div className="alert alert-dismissible fade show justify-between rounded-sm mb-1 bg-blue-900 text-center text-white md:flex md:text-left">
<div className="relative w-full">
<a href={trackingLink}>
<img src={NameCheapPromo} alt="Advertise with us" className="w-full h-12 md:h-20" />
</a>
<a href="#" className="text-white" onClick={handleDismissBanner} aria-label="Close">
<span className="[&>svg]:h-6 [&>svg]:w-6">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="2"
stroke="currentColor">
<a href="#" className="absolute top-0 right-0 text-white" onClick={handleDismissBanner} aria-label="Close">
<span className="[&>svg]:h-4 [&>svg]:w-4">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth="2" stroke="currentColor">
<path strokeLinecap="round" strokeLinejoin="round" d="M6 18L18 6M6 6l12 12" />
</svg>
</span>
Expand Down
Binary file added src/images/NameCheap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/pages/ViewProject.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function ViewProject() {
</div>
</div>
) : (
<div className="{`${h} p-[20px]`} mt-20 Context">
<div className="{`${h} p-[20px]`} mt-16 Context">
<AdvertBanner />
<div className="flex flex-col md:flex-row justify-center items-center space-x-4">
<input
Expand Down

1 comment on commit 8ff5784

@vercel
Copy link

@vercel vercel bot commented on 8ff5784 Jun 25, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

projest – ./

projest.vercel.app
projest-lewisushindi.vercel.app
projest-git-master-lewisushindi.vercel.app

Please sign in to comment.