JSFiddle - React, Tailwind, and code Playground

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Link Saver</title>
<style>
body {
  font-family: sans-serif;
  background-color: #f4f7f6;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 800px;
  background: white;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h1 {
  color: #007bff;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.input-group input, .input-group select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

#saveButton {
  width: 100%;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#saveButton:hover {
  background-color: #0056b3;
}

.link-item {
  display: flex;
  align-items: center;
  padding: 15px;
  margin-top: 15px;
  background-color: #e9ecef;
  border-radius: 8px;
  border-left: 5px solid #007bff;
}

.link-content {
  flex-grow: 1;
}

.link-content h3 {
  margin: 0 0 5px 0;
  font-size: 1.2em;
}

.link-content p {
  margin: 0;
  color: #555;
}

.link-content .meta {
  font-size: 0.9em;
  color: #777;
  margin-top: 5px;
}

.link-icon {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  margin-right: 15px;
  object-fit: cover;
  background-color: #ccc;
}

a.link-url {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}
</style>
</head>
<body>
  <div class="container">
    <h1>Link Saver</h1>
    <p>Enter a URL and select a category and tags.</p>
    <div...