-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
557 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>HoloEasy</title> | ||
<link rel="preconnect" href="https://rsms.me/" /> | ||
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" /> | ||
|
||
<style> | ||
:root { | ||
font-family: Inter, sans-serif; | ||
font-feature-settings: "liga" 1, "calt" 1; /* fix for Chrome */ | ||
} | ||
@supports (font-variation-settings: normal) { | ||
:root { | ||
font-family: InterVariable, sans-serif; | ||
} | ||
} | ||
</style> | ||
|
||
<!-- For stability in production, it's recommended that you hardcode the latest version in the CDN link. --> | ||
|
||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/franken-ui/dist/css/core.min.css" | ||
/> | ||
|
||
<script> | ||
const htmlElement = document.documentElement; | ||
|
||
if ( | ||
localStorage.getItem("mode") === "dark" || | ||
(!("mode" in localStorage) && | ||
window.matchMedia("(prefers-color-scheme: dark)").matches) | ||
) { | ||
htmlElement.classList.add("dark"); | ||
} else { | ||
htmlElement.classList.remove("dark"); | ||
} | ||
|
||
htmlElement.classList.add( | ||
localStorage.getItem("theme") || "uk-theme-zinc" | ||
); | ||
</script> | ||
|
||
<script | ||
type="module" | ||
src="https://unpkg.com/franken-ui/dist/js/core.iife.js" | ||
></script> | ||
<script | ||
type="module" | ||
src="https://unpkg.com/franken-ui/dist/js/icon.iife.js" | ||
></script> | ||
|
||
<!-- Includi il tema Funky di PrismJS --> | ||
<link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-twilight.min.css" rel="stylesheet" /> | ||
|
||
<!-- PrismJS JavaScript --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/prism.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-java.min.js"></script> | ||
|
||
<style> | ||
/* Imposta una dimensione del font più piccola per il codice evidenziato */ | ||
pre[class*="language-"], code[class*="language-"] { | ||
font-size: 12px; /* Cambia 12px con la dimensione che preferisci */ | ||
} | ||
</style> | ||
</head> | ||
<body class="bg-background text-foreground"> | ||
<!-- START CODING HERE --> | ||
<div class="uk-flex uk-flex-wrap uk-flex-wrap-around"> | ||
<div class="uk-width-1-5"> | ||
|
||
<!-- THEME SWITCHER --> | ||
<div class="uk-inline uk-margin-top uk-margin-small-bottom"> | ||
<button | ||
class="uk-icon-button uk-icon-button-small uk-icon-button-outline" | ||
> | ||
<uk-icon icon="palette" uk-cloak></uk-icon> | ||
</button> | ||
<div | ||
class="uk-card uk-card-body uk-card-default uk-drop uk-width-large" | ||
uk-drop="mode: click; offset: 8; pos: bottom-center" | ||
> | ||
<div class="uk-card-title uk-margin-medium-bottom">Customize</div> | ||
<uk-theme-switcher></uk-theme-switcher> | ||
</div> | ||
</div> | ||
<!-- END THEME SWITCHER--> | ||
<div class=""> | ||
<ul class="uk-nav-default" uk-nav> | ||
<li class="uk-parent"> | ||
<a href="#">Prologue <span uk-nav-parent-icon></span></a> | ||
<ul class="uk-nav-sub"> | ||
<li><a href="../">Introduction</a></li> | ||
<li><a href="#">Changelog</a></li> | ||
</ul> | ||
</li> | ||
<li class="uk-parent"> | ||
<a href="#">Getting Started <span uk-nav-parent-icon></span></a> | ||
<ul class="uk-nav-sub"> | ||
<li><a href="../installation">Installation</a></li> | ||
<li class="uk-active"><a href="">Hello World</a></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="uk-width-3-5"> | ||
|
||
<div class="uk-section"> | ||
<div class="uk-container"> | ||
<h1 class="uk-h1">Hello World</h1> | ||
<p class="uk-text-lead uk-paragraph"> | ||
Your first hologram. | ||
</p> | ||
|
||
|
||
<h2 class="uk-h2 uk-margin-medium">Start programming</h2> | ||
|
||
|
||
<p class="uk-paragraph"> | ||
<strong>1.</strong> Register HoloEasy api. | ||
</p> | ||
|
||
<div class="uk-paragraph"> | ||
<pre><code class="language-java">HoloEasy.bind(org.bukkit.plugin.Plugin);</code></pre> | ||
</div> | ||
|
||
<p class="uk-paragraph"> | ||
<strong>2.</strong> Define your first Hologram class. | ||
</p> | ||
|
||
<div class="uk-paragraph"> | ||
<pre><code class="language-java">public class HelloWorldHologram extends Hologram { | ||
|
||
ITextLine line = textLine("Hello World"); | ||
|
||
public HelloWorldHologram(@NotNull Location location) { | ||
super(location); | ||
} | ||
|
||
}</code></pre> | ||
</div> | ||
|
||
|
||
<p class="uk-paragraph"> | ||
<strong>3.</strong> Now spawn a hologram. | ||
</p> | ||
|
||
<div class="uk-paragraph"> | ||
<pre><code class="language-java">HelloWorldHologram hologram = new HelloWorldHologram(location); | ||
hologram.show();</code></pre> | ||
</div> | ||
|
||
<p class="uk-paragraph"> | ||
<strong>4.</strong> Once you’re done, you may now proceed <a class="uk-link" href="">creating your first hologram</a>. | ||
</p> | ||
|
||
|
||
|
||
<!-- GRADLE--> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
<!-- END --> | ||
</body> | ||
</html> |
Oops, something went wrong.