Skip to content

Commit

Permalink
Merge pull request #56 from decentralized-identity/feature/help-modal…
Browse files Browse the repository at this point in the history
…-placeholder

feat: add help text modal and github link
  • Loading branch information
Frostyfrog authored Oct 6, 2023
2 parents c815ba4 + b1bbe4f commit 9c4514e
Show file tree
Hide file tree
Showing 8 changed files with 320 additions and 3 deletions.
57 changes: 57 additions & 0 deletions docs/help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Servat ex terram verba poena neque novus

## Leonis puerile meae

Lorem markdownum *Trachinius movimus terrigenae* clamavit dedit petisse: captus
coit [non auditaque quod](http://oscula.org/nec.html) Alcithoe utraque hic.
Tradita victa cadet et figis dissiluit, adhuc torquet in edidit. Infera effudit
querella exurunt inducit. Dum quae quae moveoque, circumspicit *tanti*;
excipiunt potior tenuitque revulsos rigida; maiorque.

1. Penetrant inquit
2. Stabat mater
3. Et ora sceleris undae deos relicta cum
4. Insignia hoc mater sociam ut clamavit porrexit
5. Et salutem et gelidus aliter
6. Lacrimas cyclopum stupuit

## Est arva falso ambobus calamo fallente

*Quaerens iuppiter trahit* super o facies Olympus, tibi dumque omnes illa morti
da memorata est haec missa. Mentem Cephesidas non prohibebant nam per vivosque
Parrhasio tabent inspicitur ultima ossaque iugo, Palladios fumis **removit**.
Hoc Aquilonem hosti modusque quisque aliter fudit.

1. Probor in vario
2. Parenti te solet
3. Pro per amnes sine quoque lumina

Uterque prodet. Sed acres at cervice! Ab nunc, raptaturque per colubrasque
parentes quae populandas capillos mecum, deorum, nec spatiantur. Alis potenti
nam. Est nec tractus.

## Ipse reice carpunt

Milibus ortu sentiat et locutum per vivit et liquores, Finierat, cadavera, et
sola Lelegeia pedes, texitur. [Levare florumque](http://www.ille.com/) tympana,
dissuaserat amore iuvencum negare rumpit ignaram **permansit dabimus** veteres.

if (flamingNewsgroupSwappable != debuggerBase.of.nullTerminalCloud(
google_computing) * icsPrinterLink) {
modem_source = emoticon_name;
}
var ctpReality = expansion_shell_zone;
remote_user_vle(ugc.tcp(-5, 70788));
voip += flat;

Bis [heu](http://species.io/) in ratione luctus quietis montibus inmenso
exaestuat cornua, est. Coepere pro rapta pollice sorore numina iunctisque
superest [invidiosa](http://www.vivacisque-subitis.com/spes) viribus quaeque:
feri pro. Urbem Dumque docendam superosque quater. Ore coit, pharetratae
adfectat hiscere repetenda herbas rursus sorores vobis. Illo sum quoque hoc, cum
sedebat nurus.

In [puduit](http://est.io/omni.aspx), sanguine, oblita dare rapta innectere
videtur. Me Telephon **clementia** sceleri aetas Aulidaque conveniunt nais
facinus vitale crimen triplicis bella Cernis umbram temptat. In virga noluit
Molpeus illud anima.
189 changes: 189 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"@types/uuid": "^9.0.3",
"bulma": "^0.9.4",
"css-loader": "^6.8.1",
"html-loader": "^4.2.0",
"markdown-loader": "^8.0.0",
"mini-css-extract-plugin": "^2.7.6",
"postcss-loader": "^7.3.3",
"prettier": "^3.0.3",
Expand Down
4 changes: 4 additions & 0 deletions src/declarations.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "*.md" {
const content: string;
export default content;
}
6 changes: 6 additions & 0 deletions src/pages/profile/help.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.modal-content {
background-color: #fff;
padding: 1rem;
width: 70% !important;
border-radius: 8px;
}
19 changes: 19 additions & 0 deletions src/pages/profile/help.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import * as m from 'mithril';

import helpContent from '../../../docs/help.md'
import "./help.css"

interface ModalAttrs {
isActive: boolean
onClose: () => void
}

export default class Modal implements m.ClassComponent<ModalAttrs> {
view(vnode: m.Vnode<ModalAttrs>) {
return vnode.attrs.isActive ? m('div.modal.is-active', [
m('div.modal-background', { onclick: vnode.attrs.onClose }),
m('div.modal-content.content', m.trust(helpContent)),
m('button.modal-close.is-large', { ariaLabel: "close", onclick: vnode.attrs.onClose })
]) : null;
}
}
Loading

0 comments on commit 9c4514e

Please sign in to comment.