init: HejYou Language Learning App (React + Vite)
React SPA with Vite, Directus backend, canvas-confetti. Includes Dockerfile (multi-stage Node → nginx) for Coolify deployment. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
77
src/components/NewWordTextCard.css
Normal file
77
src/components/NewWordTextCard.css
Normal file
@@ -0,0 +1,77 @@
|
||||
.nwt-input-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
background: #fff;
|
||||
border: 1px solid #D4B896;
|
||||
border-radius: 12px;
|
||||
padding: 4px 6px 4px 12px;
|
||||
transition: border-color 0.2s;
|
||||
}
|
||||
|
||||
.nwt-input-row.nwt-wrong {
|
||||
border-color: #c0826a;
|
||||
}
|
||||
|
||||
.nwt-input {
|
||||
flex: 1;
|
||||
border: none;
|
||||
outline: none;
|
||||
background: transparent;
|
||||
font-family: 'Lora', Georgia, serif;
|
||||
font-size: 16px;
|
||||
color: #4A3728;
|
||||
padding: 6px 0;
|
||||
}
|
||||
|
||||
.nwt-input::placeholder {
|
||||
color: rgba(74, 55, 40, 0.3);
|
||||
}
|
||||
|
||||
.nwt-submit-btn {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 8px;
|
||||
background: #7A5C3A;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #F5EFE6;
|
||||
flex-shrink: 0;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.nwt-submit-btn:hover { background: #4A3728; }
|
||||
|
||||
.nwt-feedback {
|
||||
font-size: 12px;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.nwt-wrong-text { color: #a05a3a; }
|
||||
|
||||
.nwt-success-bar {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: #EDE0CE;
|
||||
border: 0.5px solid #D4B896;
|
||||
border-radius: 12px;
|
||||
padding: 12px 16px;
|
||||
}
|
||||
|
||||
.nwt-success-left {
|
||||
font-size: 13px;
|
||||
font-weight: 700;
|
||||
color: #4A3728;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
}
|
||||
|
||||
.nwt-success-right {
|
||||
font-size: 12px;
|
||||
color: #8C7A65;
|
||||
font-family: 'Nunito', sans-serif;
|
||||
}
|
||||
Reference in New Issue
Block a user