码桶

发现社区成员的开源项目

早晚圈 / meeting 公开
main
meeting/src/styles.ts
styles.ts6.9 KB
export const GLOBAL_STYLES = `
:root {
  --bg-primary: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-border: rgba(226, 232, 240, 0.95);
  --accent-indigo: #4f46e5;
  --accent-purple: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  --text-main: #0f172a;
  --text-muted: #475569;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-circle-1 {
  position: absolute;
  top: -10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255,255,255,0) 70%);
  filter: blur(80px);
}

.glow-circle-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(255,255,255,0) 70%);
  filter: blur(90px);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem;
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
}

.header {
  text-align: center;
  margin-bottom: 2rem;
}

.title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.5;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 0px; /* 0 圆角 */
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 12px 32px -8px rgba(79, 70, 229, 0.1);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.textarea-wrapper {
  position: relative;
}

.meeting-textarea {
  width: 100%;
  min-height: 160px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0px; /* 0 圆角 */
  padding: 1rem;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: all 0.2s ease;
}

.meeting-textarea:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.meeting-textarea::placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
}

/* 所有按钮使用 0 圆角 */
.btn-primary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 0px; /* 0 圆角 */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 6px 18px -3px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -3px rgba(79, 70, 229, 0.45);
  opacity: 0.96;
}

.btn-primary:active {
  transform: translateY(0);
}

.nice-slug-badge {
  font-family: "Impact", "SF Mono", "Fira Code", "Arial Black", monospace;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.85rem 0;
  display: inline-block;
}

.copy-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px; /* 0 圆角 */
  padding: 0.5rem 0.85rem;
  margin: 1.15rem 0;
  gap: 0.75rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.copy-url {
  flex: 1;
  font-family: "Impact", "SF Mono", monospace;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.9rem;
  border-radius: 0px; /* 0 圆角 */
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #92400e;
  border-radius: 0px; /* 0 圆角 */
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1.15rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0px; /* 0 圆角 */
  text-decoration: none;
  color: #0f172a;
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

.history-item:hover {
  background: #f8fafc;
  border-color: rgba(79, 70, 229, 0.35);
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.06);
}

.history-slug {
  font-family: "Impact", "SF Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--accent-indigo);
}

footer {
  text-align: center;
  padding: 1.75rem 0;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 弹窗及列表操作按钮 */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-sm {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.65rem;
  border-radius: 0px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sm:hover {
  background: var(--accent-indigo);
  color: #ffffff;
  border-color: var(--accent-indigo);
}

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 0px;
  padding: 1.75rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.qr-code-img {
  width: 200px;
  height: 200px;
  margin: 1.25rem auto;
  border: 1px solid #e2e8f0;
  padding: 0.5rem;
  background: #ffffff;
  display: block;
}
`;