Skip to content

Commit

Permalink
add step to add ip to twitter/x name
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-tucker committed Aug 25, 2024
1 parent 5013d11 commit 120f943
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default function HomepageForm() {
const [twitterUsername, setTwitterUsername] = useState("");
const [clickedFollowStory, setClickedFollowStory] = useState(false);
const [clickedJoinTelegram, setClickedJoinTelegram] = useState(false);
const [clickedAddIp, setClickedAddIp] = useState(false);
const [finished, setFinished] = useState(false);
const [loading, setLoading] = useState(false);

Expand Down Expand Up @@ -122,6 +123,23 @@ export default function HomepageForm() {

<div className="flex items-center gap-[10px]">
<p className="min-w-[60px] font-bold">Step 2</p>
<button
type="button"
className={`w-full py-2 px-4 border ${
clickedAddIp ? "bg-black text-white" : "border-gray-300"
} rounded-md`}
onClick={() => {
window.open("https://twitter.com/", "_blank");
setClickedAddIp(true);
}}
disabled={clickedAddIp}
>
Add ꧁IP꧂ to your Twitter/X name
</button>
</div>

<div className="flex items-center gap-[10px]">
<p className="min-w-[60px] font-bold">Step 3</p>
<button
type="button"
className={`w-full py-2 px-4 border ${
Expand All @@ -138,7 +156,7 @@ export default function HomepageForm() {
</button>
</div>
<div className="flex items-center gap-[10px]">
<p className="min-w-[60px] font-bold">Step 3</p>
<p className="min-w-[60px] font-bold">Step 4</p>
<button
type="button"
className={`w-full py-2 px-4 border ${
Expand All @@ -157,7 +175,7 @@ export default function HomepageForm() {
</button>
</div>
<div className="flex items-center gap-[10px]">
<p className="min-w-[60px] font-bold">Step 4</p>
<p className="min-w-[60px] font-bold">Step 5</p>
<button
type="button"
className={`w-full py-2 px-4 border ${
Expand Down Expand Up @@ -185,6 +203,7 @@ export default function HomepageForm() {
twitterUsername &&
clickedFollowStory &&
clickedJoinTelegram &&
clickedAddIp &&
!finished && (
<button
onClick={handleSubmit}
Expand Down

0 comments on commit 120f943

Please sign in to comment.