Advertisement
ruesha

tab embed

Aug 12th, 2021
3,425
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. <body>
  2. <link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@800&display=swap" rel="stylesheet"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Gaegu:wght@400;700&family=Mali:wght@400;600;700&display=swap" rel="stylesheet"><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=Gamja+Flower&display=swap" rel="stylesheet"><head><script src="//ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script><link href="//fonts.googleapis.com/css?family=Work+Sans" rel="stylesheet"><script src="https://static.tumblr.com/2pnwama/DLppehqvd/feathericons.js"></script><script src="https://dl.dropbox.com/s/vyffmps0ly6ikf4/glenplayer06.js"></script>
  3. </body>
  4. <style>
  5.  
  6. @font-face { font-family: lovely; src: url(https://dl.dropbox.com/s/xde2bkhiie1bm8r/LovelyRegular.ttf); }
  7. </style>
  8. <style>
  9. /* this centers everything and also controls how big the image is */
  10. #contain {
  11. max-width: 195px; /* controls how big the image can get at max */
  12. margin: 0 auto; /* centers the image */
  13. position: relative; /* so the links are properly spaced */
  14. }
  15.  
  16. /* holds the image */
  17. #wow {
  18. max-width: 110%; /* no clue i think i put this here out of habit */
  19. position: relative; /* so that i can change the z index */
  20. z-index: 5; /* puts the image in front of the links */
  21. background:white;
  22. border-width:7px;
  23. border-style:solid;
  24. border-image: url("https://media.discordapp.net/attachments/826854899013648384/839700444375810078/tumblr_inline_o98n9dbCl61u2r0ws_540_1_2.png") 8 fill round;
  25. }
  26.  
  27. /* overall link css */
  28. #links {
  29. text-decoration:none;
  30. font-family: lovely, cursive;
  31. text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000, 0 0;
  32. color: white;
  33. font-size: 2em;
  34. position: absolute; /* so i can put the links under the image */
  35. width: 150px; /* controls how wide the links are */
  36. top: 50%; /* centering */
  37. transform: translateY(-50%); /* centering */
  38. left: 45%; /* peek out from behind the image */
  39. z-index: 1; /* habit i think */
  40. }
  41. /* css for each link */
  42. #links a {
  43. text-decoration:none;
  44. display: block; /* so they aren't side by side*/
  45. margin-bottom: 9px; /* spaces them out */
  46. background: #FFDEE5;
  47. padding: 5px;
  48. border: 1px solid white;
  49. transition: all 0.5s ease;
  50. }
  51.  
  52. /* when the links are hovered */
  53. #links a:hover {
  54. transform: translateX(122px); /* makes them pop out */
  55. transition: all 0.5s ease;
  56. }
  57.  
  58. /* the last link */
  59. #links a:last-child {
  60. text-decoration:none;
  61. margin-bottom: 0px; /* so the last link doesn't have extra space */
  62. }
  63. /* whooooo boy this is how i tried to make it mobile friendly... you'll probably have to mess with this in order to change it for your specific image and text so this'll probably require some code knowledge beforehand */
  64. @media (max-width: 475px) {
  65. #contain {
  66. max-width: 250px;
  67. }
  68. #links {
  69. width: 150px;
  70. left: 50%;
  71. font-size: 2em;
  72. }
  73. #links a {
  74. margin-bottom: 12px;
  75. }
  76. #links a:hover {
  77. transform: translateX(90px);
  78. }
  79. }
  80. @media (max-width: 375px) {
  81. #contain {
  82. max-width: 200px;
  83. }
  84. #links {
  85. width: 120px;
  86. left: 50%;
  87. font-size: 1.75em;
  88. }
  89. #links a {
  90. margin-bottom: 8px;
  91. }
  92. #links a:hover {
  93. transform: translateX(75px);
  94. }
  95. }
  96. </style>
  97. </head>
  98. <body>
  99. <div id="contain">
  100. <div id="wow">
  101. <img src="https://cdn.discordapp.com/attachments/851155413831254076/875519607673356378/2-2.gif"
  102. style="display:block;" width="100%" height="auto">
  103. </div>
  104. <div id="links">
  105. <a href="/#home">home</a>
  106. <a href="/#me">me</a>
  107. <a href="/#rules">rules</a>
  108. <a href="/#music">loves</a>
  109. </div>
  110. </div>
  111. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement