پیش‌نمایش زنده
کد HTML
<div class="post-card">
  <textarea placeholder="What's on your mind?"></textarea>
  <hr>
  <div id="first" class="button-row">
    <button class="upload">
      Upload
    </button>
    <button class="live-video">
      Live Video
    </button>
    <button class="life-event">
      Life Event
    </button>
  </div>
  <div id="second" class="button-row">
    <button class="people">
      People
    </button>
    <button class="location">
      Location
    </button>
    <button class="feeling">
      Feeling
    </button>
  </div>
  <button class="post">Post</button>
</div>
کد CSS
.post-card {
  width: 260px;
  height: 340px;
  background: #e4e4e4;
  box-shadow: 10px 10px 20px #afafaf, 
              -10px -10px 20px #ffffff;
  padding: 10px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.post-card textarea {
  resize: none;
  width: 100%;
  height: 40%;
  padding: 5px;
  font-family: Sans-serif;
  font-size: 16px;
  background-color: transparent;
  border: none;
  color: #fff;
}

hr {
  border: 1px solid #464646;
  width: 100%;
  border-radius: 10em;
}

.button-row {
  margin-top: 7px;
  margin-bottom: 3px;
}

.button-row button {
  border-radius: 10px;
  border: none;
  width: 77px;
  height: 58px;
  font-family: Sans-serif;
  color: #fff;
  box-shadow: 0px 4px 4px #bdbdbd;
  transition: all 0.3s ease-in-out;
}

.button-row button:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.25);
}

.upload {
  font-size: 14px;
  background: linear-gradient(180deg, #b8b50a 0%, #ef4949 100%);
}

.feeling {
  font-size: 14px;
  background: linear-gradient(180deg, #31c300 0%, #ab7811 100%);
}

.life-event {
  font-size: 13.7px;
  background: linear-gradient(180deg, #ff1024 0%, #ffb34a 100%);
}

.people {
  font-size: 13.5px;
  background: linear-gradient(180deg, #0095b7 0%, #5012ba 100%);
}

.location {
  font-size: 14px;
  background: linear-gradient(180deg, #c329c9 0%, #2b5dff 100%);
}

.live-video {
  font-size: 13.8px;
  background: linear-gradient(180deg, #c800ff 0%, #ff076a 51%, #ff6c6c 100%);
}

.post {
  width: 100%;
  padding: 10px;
  margin-top: 7px;
  border: none;
  border-radius: 11px;
  font-size: 18px;
  font-family: Sans-serif;
  color: #fff;
  background-size: 200% 100%;
  background-image: linear-gradient(145deg, #ff00e1, #0000ff, #00d9ff);
  transition: 0.3s ease-out;
}

.post:hover {
  background-position: 99%;
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06