Design system.
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

46 satır
1.1 KiB

  1. import * as React from 'react';
  2. export const Brand = ({
  3. platform,
  4. version,
  5. }) => {
  6. switch (platform) {
  7. case 'react':
  8. return (
  9. <span className="relative font-headings block lowercase leading-none">
  10. <span className="relative -top-2 text-3xl font-semibold">
  11. Tesseract
  12. </span>
  13. {' '}
  14. <span className="absolute left-4 top-4 font-semibold">
  15. Web
  16. </span>
  17. {' '}
  18. <span className="ml-1 font-semibold relative text-lg -top-2">
  19. <span className="sr-only">(</span>
  20. React
  21. <span className="sr-only">)</span>
  22. </span>
  23. {version && (
  24. <>
  25. {' '}
  26. <span className="absolute right-0 top-4 font-black text-xs">
  27. v.{version}
  28. </span>
  29. </>
  30. )}
  31. </span>
  32. );
  33. default:
  34. break;
  35. }
  36. return (
  37. <span className="relative font-headings block lowercase leading-none">
  38. <span className="text-3xl font-semibold">
  39. Tesseract
  40. </span>
  41. </span>
  42. )
  43. };