Compare commits

...

2 Commits

Author SHA1 Message Date
Antonio De Lucreziis 20e2075352 fix: updated placeholders of markdown+latex editors
continuous-integration/drone/push Build is passing Details
9 months ago
Antonio De Lucreziis 7bb688d490 poster: aggiunto pdf del poster 9 months ago

@ -9,7 +9,7 @@ type Props = {
} }
export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => { export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => {
placeholder ??= 'Scrivi qualcosa...' placeholder ??= 'Scrivi qualcosa in markdown e latex...'
const editorRef = useRef<HTMLTextAreaElement>(null) const editorRef = useRef<HTMLTextAreaElement>(null)
@ -41,7 +41,7 @@ export const MarkdownEditor = ({ placeholder, source, setSource }: Props) => {
<div class="preview"> <div class="preview">
<div class="label">Preview</div> <div class="label">Preview</div>
<div class="preview-content"> <div class="preview-content">
{source.trim().length ? <Markdown source={source} /> : <div class="placeholder">{placeholder}</div>} {source.trim().length ? <Markdown source={source} /> : <div class="placeholder">Qui comparirà la preview di ciò che scrivi...</div>}
</div> </div>
</div> </div>
</div> </div>

@ -49,7 +49,7 @@ const CreateProblem = ({}) => {
</div> </div>
<div class="col"> <div class="col">
<label>Testo</label> <label>Testo</label>
<MarkdownEditor placeholder="Scrivi un nuovo problema..." {...{ source, setSource }} /> <MarkdownEditor placeholder="Scrivi un nuovo problema in markdown e latex..." {...{ source, setSource }} />
</div> </div>
<button onClick={handleCreateProblem}>Aggiungi Problema</button> <button onClick={handleCreateProblem}>Aggiungi Problema</button>
</div> </div>

@ -117,7 +117,7 @@ export const ProblemPage = ({ id }: RouteProps) => {
/> />
</div> </div>
<MarkdownEditor <MarkdownEditor
placeholder="Modifica testo del problema..." placeholder="Modifica testo del problema in markdown e latex..."
source={modifiedProblemSource} source={modifiedProblemSource}
setSource={setModifiedProblemSource} setSource={setModifiedProblemSource}
/> />
@ -176,7 +176,7 @@ export const ProblemPage = ({ id }: RouteProps) => {
<> <>
<hr /> <hr />
<div class="subtitle">Invia una soluzione al problema</div> <div class="subtitle">Invia una soluzione al problema</div>
<MarkdownEditor placeholder="Scrivi una soluzione al problema..." {...{ source, setSource }} /> <MarkdownEditor placeholder="Scrivi una soluzione al problema in markdown e latex..." {...{ source, setSource }} />
<button onClick={sendSolution}>Invia Soluzione</button> <button onClick={sendSolution}>Invia Soluzione</button>
<p class="icon-text"> <p class="icon-text">
<span class="material-symbols-outlined">warning</span> <span class="material-symbols-outlined">warning</span>

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save