پیشنمایش زنده
کد HTML
<div
class="card max-w-[90%] min-h-fit max-h-[50%] w-[300px] h-[200px] sm:w-[500px] sm:h-[400px] rounded-xl bg-gray-800 shadow-md"
>
<div class="h-[32px] rounded-t-xl bg-gray-900 flex items-center px-2 gap-2">
<div class="flex items-center gap-1">
<span
class="w-[10px] h-[10px] bg-red-500 hover:bg-red-400 rounded-full cursor-pointer"
></span>
<span
class="w-[10px] h-[10px] bg-yellow-500 hover:bg-yellow-400 rounded-full cursor-pointer"
></span>
<span
class="w-[10px] h-[10px] bg-green-500 hover:bg-green-400 rounded-full cursor-pointer"
></span>
</div>
<p class="text-white">root@debian: ~</p>
</div>
<div class="p-2">
<p class="text-gray-300">
<span class="text-white">root@debian:~$</span> ls /
</p>
<div class="grid grid-cols-4 gap-x-2">
<p class="text-gray-300">bin</p>
<p class="text-gray-300">dev</p>
<p class="text-gray-300">home</p>
<p class="text-gray-300">lib32</p>
<p class="text-gray-300">libx32</p>
<p class="text-gray-300">media</p>
<p class="text-gray-300">opt</p>
<p class="text-gray-300">root</p>
<p class="text-gray-300">sbin</p>
<p class="text-gray-300">srv</p>
<p class="text-gray-300">tmp</p>
<p class="text-gray-300">var</p>
<p class="text-gray-300">boot</p>
<p class="text-gray-300">etc</p>
<p class="text-gray-300">lib</p>
<p class="text-gray-300">lib64</p>
<p class="text-gray-300">lost+found</p>
<p class="text-gray-300">mnt</p>
<p class="text-gray-300">proc</p>
<p class="text-gray-300">run</p>
<p class="text-gray-300">snap</p>
<p class="text-gray-300">sys</p>
<p class="text-gray-300">usr</p>
</div>
</div>
<div class="p-2 flex items-center gap-2">
<p class="text-gray-300">
<span class="text-white">root@debian:~$</span>
</p>
<span class="w-[10px] h-[15px] bg-white opacity-0 animate-pulse"></span>
</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}.flex{display:flex}.grid{display:grid}.h-\[10px\]{height:10px}.h-\[15px\]{height:15px}.h-\[200px\]{height:200px}.h-\[32px\]{height:32px}.max-h-\[50\%\]{max-height:50%}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.w-\[10px\]{width:10px}.w-\[300px\]{width:300px}.max-w-\[90\%\]{max-width:90%}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite}.cursor-pointer{cursor:pointer}.grid-cols-4{grid-template-columns:repeat(4, minmax(0, 1fr))}.items-center{align-items:center}.gap-1{gap:0.25rem}.gap-2{gap:0.5rem}.gap-x-2{column-gap:0.5rem}.rounded-full{border-radius:9999px}.rounded-xl{border-radius:0.75rem}.rounded-t-xl{border-top-left-radius:0.75rem;border-top-right-radius:0.75rem}.bg-gray-800{--tw-bg-opacity:1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity:1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity:1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity:1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.p-2{padding:0.5rem}.px-2{padding-left:0.5rem;padding-right:0.5rem}.text-gray-300{--tw-text-opacity:1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.shadow-md{--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.hover\:bg-green-400:hover{--tw-bg-opacity:1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.hover\:bg-red-400:hover{--tw-bg-opacity:1;background-color:rgb(248 113 113 / var(--tw-bg-opacity, 1))}.hover\:bg-yellow-400:hover{--tw-bg-opacity:1;background-color:rgb(250 204 21 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\:h-\[400px\]{height:400px}.sm\:w-\[500px\]{width:500px}}