Açıklama Yok

config.js 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. 'use strict';
  2. const autoHeightHtml0 = `<p style="font-weight: 400;font-style: normal;font-size: 21px;line-height: 1.58;letter-spacing: -.003em;">Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. <span style="background-color: transparent !important;background-image: linear-gradient(to bottom, rgba(146, 249, 190, 1), rgba(146, 249, 190, 1));">If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn't only tag the piece with "moving". I’d also use the tags "pets", "marriage", "career change", and "travel tips".</span></p>`;
  3. const autoHeightHtml1 = `Tags are great for describing the essence of your story in a single word or phrase, but stories are rarely about a single thing. If I pen a story about moving across the country to start a new job in a car with my husband, two cats, a dog, and a tarantula, I wouldn’t only tag the piece with "moving".`;
  4. const style0 = `
  5. p {
  6. padding: 50px;
  7. box-sizing: border-box;
  8. }
  9. `;
  10. const style1 = `
  11. p {
  12. font-size: 12px !important;
  13. box-sizing: border-box;
  14. }
  15. `;
  16. const inlineBodyStyle = `
  17. body {
  18. display: inline-block;
  19. }
  20. `;
  21. const autoHeightScript = `
  22. var styleElement = document.createElement('style');
  23. styleElement.innerHTML = '${style1.replace(/\'/g, "\\'").replace(/\n/g, '\\n')}';
  24. document.head.appendChild(styleElement);
  25. document.body.style.background = 'cornflowerblue';
  26. `;
  27. const autoWidthHtml0 = `
  28. <html>
  29. <head>
  30. <meta name="viewport" content="target-densitydpi=device-dpi, initial-scale=1.0, user-scalable=no" />
  31. </head>
  32. <p class="localStyle" style="display: inline;background-color: transparent !important;background-image: linear-gradient(to bottom, rgba(146, 249, 190, 1), rgba(146, 249, 190, 1));font-style: normal;zoom:1;font-size: 21px;line-height: 1.58;letter-spacing: -.003em;">hey</p>
  33. </html>
  34. `;
  35. const autoWidthHtml1 = `
  36. <p style="display: inline;background-color: transparent !important;">easy</p>
  37. `;
  38. const autoWidthScript = `
  39. var styleElement = document.createElement('style');
  40. styleElement.innerHTML = '${style1.replace(/\'/g, "\\'").replace(/\n/g, '\\n')}';
  41. document.head.appendChild(styleElement);
  42. `;
  43. export {
  44. autoHeightHtml0,
  45. autoHeightHtml1,
  46. style0,
  47. autoHeightScript,
  48. autoWidthHtml0,
  49. autoWidthHtml1,
  50. autoWidthScript,
  51. inlineBodyStyle
  52. };