index.tsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import React from "react";
  2. import { HiHeart } from "react-icons/hi";
  3. import styled from "styled-components";
  4. const StyledText = styled.span`
  5. white-space: nowrap;
  6. opacity: 0;
  7. width: 0px;
  8. transition: 0.2s;
  9. font-weight: 600;
  10. `;
  11. const StyledSupportButton = styled.a`
  12. position: fixed;
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. color: white;
  17. right: 15px;
  18. bottom: 15px;
  19. border-radius: 50%;
  20. width: 24px;
  21. padding: 8px;
  22. height: 24px;
  23. background: ${({ theme }) => theme.DANGER};
  24. transition: all 0.5s;
  25. overflow: hidden;
  26. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
  27. 0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07), 0 16px 32px rgba(0, 0, 0, 0.07),
  28. 0 32px 64px rgba(0, 0, 0, 0.07);
  29. opacity: 0.7;
  30. box-sizing: content-box !important;
  31. &:hover {
  32. width: 180px;
  33. border-radius: 6px;
  34. ${StyledText} {
  35. opacity: 1;
  36. width: fit-content;
  37. margin-right: 8px;
  38. }
  39. }
  40. `;
  41. export const SupportButton = () => {
  42. return (
  43. <StyledSupportButton href="https://github.com/sponsors/AykutSarac" target="_blank" rel="me">
  44. <StyledText>Support JSON Crack</StyledText>
  45. <HiHeart size={25} />
  46. </StyledSupportButton>
  47. );
  48. };