-
-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
351 additions
and
333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.fluid { | ||
animation: updown 1.5s ease-in-out infinite alternate; | ||
} | ||
|
||
@keyframes updown { | ||
from { | ||
transform: translateY(0px); | ||
} | ||
to { | ||
transform: translateY(10px); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
"use client"; | ||
import React, { useState } from "react"; | ||
// import { Linkedin, Facebook, Twitter, Instagram } from "lucide-react"; | ||
import { ButtonLong } from "../buttons/index"; | ||
|
||
const Newsletter: React.FC = () => { | ||
const [subscriberEmail, setSubscriberEmail] = useState(""); | ||
|
||
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => { | ||
// const { name , value } = e.target ; | ||
setSubscriberEmail(e.target.value); | ||
}; | ||
|
||
const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => { | ||
e.preventDefault(); | ||
console.log("clicked subscribe button "); | ||
|
||
// endpoint for appwrite backend | ||
}; | ||
|
||
return ( | ||
<div className="w-full md:w-3/4 mx-auto flex flex-col justify-center items-center gap-6 px-4 md:px-16 py-8"> | ||
<h4 className="text-xs md:text-lg uppercase">Newsletter</h4> | ||
<h2 className="text-xs md:text-xl uppercase text-primary-light text-center"> | ||
Sign up for latest updates and offers | ||
</h2> | ||
<form onSubmit={handleSubmit} className="w-full flex flex-col gap-4 md:flex-row"> | ||
<input | ||
onChange={handleChange} | ||
name="subscriberEmail" | ||
type="text" | ||
placeholder="Email Address" | ||
className="w-full bg-white text-black border border-black py-1 px-3 rounded" | ||
/> | ||
<ButtonLong type="submit" size="normal"> | ||
Subscribe | ||
</ButtonLong> | ||
</form> | ||
<h5 className="text-xs md:text-base text-gray-300 text-center"> | ||
Will be used in accordance with our policy | ||
</h5> | ||
{/* <div className="flex gap-6"> | ||
<Linkedin size={20} /> | ||
<Facebook size={20} /> | ||
<Twitter size={20} /> | ||
<Instagram size={20} /> | ||
</div> */} | ||
</div> | ||
); | ||
}; | ||
|
||
export default Newsletter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.