mirror of
https://github.com/LCE-Hub/piston.git
synced 2026-07-18 00:07:22 +00:00
feat: deeplink support
This commit is contained in:
parent
92872aeffe
commit
2299f9c4be
|
|
@ -218,6 +218,10 @@ function App() {
|
||||||
<h2 className="mc-title">{selectedItem.name} <span className="mc-version">v{selectedItem.version}</span></h2>
|
<h2 className="mc-title">{selectedItem.name} <span className="mc-version">v{selectedItem.version}</span></h2>
|
||||||
<p className="mc-author">by <strong>{selectedItem.author}</strong></p>
|
<p className="mc-author">by <strong>{selectedItem.author}</strong></p>
|
||||||
|
|
||||||
|
<a href={`emerald://workshop/${selectedItem.id}?normal`} target="_blank" rel="noreferrer" className="mc-button" style={{ backgroundColor: '#2e7d32', color: 'white', display: 'inline-flex', alignItems: 'center', gap: '0.5rem', textDecoration: 'none', marginBottom: '1rem' }}>
|
||||||
|
Open in Emerald
|
||||||
|
</a>
|
||||||
|
|
||||||
<div className="mc-description">
|
<div className="mc-description">
|
||||||
{selectedItem.description}
|
{selectedItem.description}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue