پیشنمایش زنده
کد HTML
<div
class="card bg-[#212121] rounded-[15px] text-white font-monospace text-sm flex flex-col gap-[5px] w-fit px-[25px] py-[25px]"
>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">1</p>
<p class="code">
<span class="text-[#ff79c6]">public static object</span>
<span class="text-[#50fa7b]">GetPersonalInfo</span
><span class="text-[#8be9fd]">()</span>
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">2</p>
<p class="code"><span class="text-[#8be9fd]">{</span></p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">3</p>
<p class="code ml-[30px]"><span class="text-[#ff79c6]">return new</span></p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">4</p>
<p class="code ml-[30px]"><span class="text-[#50fa7b]">{</span></p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">5</p>
<p class="code ml-[60px]">
Nickname <span class="text-[#ff79c6]">=</span>
<span class="text-[#f1fa8c]">"kameHame HA"</span>,
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">6</p>
<p class="code ml-[60px]">
Hobbies <span class="text-[#ff79c6]">= new</span>
<span class="text-[#8be9fd] italic">List</span><<span
class="type text-[#ff79c6]"
></span
>>
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">7</p>
<p class="code ml-[90px]">
<span class="text-[#bd93f9]">{</span>
<span class="text-[#f1fa8c]"
>"Coding"<span class="text-white">,</span> "Building simple
electronics"<span class="text-white">,</span> "3D Printing"</span
>
<span class="text-[#bd93f9]">}</span>,
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">8</p>
<p class="code ml-[60px]">
Languages <span class="text-[#ff79c6]">= new</span>
<span class="text-[#8be9fd] italic">List</span><<span
class="type text-[#ff79c6]"
></span
>>
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">9</p>
<p class="code ml-[90px]">
<span class="text-[#bd93f9]">{</span>
<span class="text-[#f1fa8c]"
>"Polish (native)"<span class="text-white">,</span> "English B2+"</span
>
<span class="text-[#bd93f9]">}</span>,
</p>
<p></p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">10</p>
<p class="code ml-[60px]">Bio <span class="text-[#ff79c6]">=</span></p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">11</p>
<p class="code ml-[90px]">
<span class="text-[#f1fa8c]">"I create stuff, every time"</span>
<span class="text-[#ff79c6]">+</span>
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">12</p>
<p class="code ml-[90px]">
<span class="text-[#f1fa8c]"
>"from the scratch just to learn sht new"</span
>
</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">13</p>
<p class="code ml-[30px]"><span class="text-[#50fa7b]">}</span>;</p>
</div>
<div class="line flex gap-[15px]">
<p class="number text-white/20 w-[20px] text-right">14</p>
<p class="code"><span class="text-[#8be9fd]">}</span></p>
</div>
</div>
کد CSS
/* ! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com */*,::after,::before{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}::after,::before{--tw-content:''}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.ml-\[30px\]{margin-left:30px}.ml-\[60px\]{margin-left:60px}.ml-\[90px\]{margin-left:90px}.flex{display:flex}.w-\[20px\]{width:20px}.w-fit{width:-moz-fit-content;width:fit-content}.flex-col{flex-direction:column}.gap-\[15px\]{gap:15px}.gap-\[5px\]{gap:5px}.rounded-\[15px\]{border-radius:15px}.bg-\[\#212121\]{--tw-bg-opacity:1;background-color:rgb(33 33 33 / var(--tw-bg-opacity, 1))}.px-\[25px\]{padding-left:25px;padding-right:25px}.py-\[25px\]{padding-top:25px;padding-bottom:25px}.text-right{text-align:right}.text-sm{font-size:0.875rem;line-height:1.25rem}.italic{font-style:italic}.text-\[\#50fa7b\]{--tw-text-opacity:1;color:rgb(80 250 123 / var(--tw-text-opacity, 1))}.text-\[\#8be9fd\]{--tw-text-opacity:1;color:rgb(139 233 253 / var(--tw-text-opacity, 1))}.text-\[\#bd93f9\]{--tw-text-opacity:1;color:rgb(189 147 249 / var(--tw-text-opacity, 1))}.text-\[\#f1fa8c\]{--tw-text-opacity:1;color:rgb(241 250 140 / var(--tw-text-opacity, 1))}.text-\[\#ff79c6\]{--tw-text-opacity:1;color:rgb(255 121 198 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-white\/20{color:rgb(255 255 255 / 0.2)}