Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
mugendi committed May 2, 2024
1 parent 446c896 commit c1934be
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 41 deletions.
22 changes: 4 additions & 18 deletions examples/css/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,26 @@
* https://opensource.org/licenses/MIT
*/

#container {
display: flex;
justify-content: space-between;
}

#submit-data {
margin-top: 10px;
}

.column {
width: 54.5%;
}
.column + .column {
width: 45%;
}

.border {
border: 1px solid #eee;
padding: 10px;
}

pre {
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.hidden {
display: none;
}

h4 {
border-bottom: 1px solid #eee;
padding-bottom: 5px;
margin: 2px 0 10px;
color: #666;
code[class*='language-'],
pre[class*='language-'] {
font-size: calc(1.2vw );
}

span.token {
Expand Down
53 changes: 30 additions & 23 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,49 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Basic Elements</title>
<link rel="stylesheet" href="/examples/css/examples.css" />

<link
rel="stylesheet"
href="https://cdn.statically.io/gh/jgthms/bulma/main/css/bulma.min.css"
/>

<link rel="stylesheet" href="/examples/css/javascript-theme.css" />
<link rel="stylesheet" href="/examples/css/json-theme.css" />
<link rel="stylesheet" href="/examples/css/examples.css" />
</head>
<body>
<div id="container">
<div class="column">
<section class="section p-2">
<div id="container-container">
<div class="columns">
<div class="column">
<div class="border">
<h4>Form</h4>
<div id="form"></div>
</div>

<div class="border">
<h4>Form</h4>
<div id="form"></div>
</div>

<div id="submit-data" class="border">
<h4>Response</h4>
<pre class="language-json"><code class="language-json">
<div id="submit-data" class="border">
<h4>Response</h4>
<pre class="language-json"><code class="language-json">
// Press "Submit" above to show response
</code></pre>
</div>
</div>
<div class="column">
<div class="border">
<h4>Code</h4>
<div id="code" class="line-numbers">
<pre><code class="language-javascript"></code></pre>
</div>
</div>
<div class="column">
<div class="border">
<h4>Code</h4>
<div id="code" class="line-numbers">
<pre><code class="language-javascript"></code></pre>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</body>


<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js" ></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/9000.0.1/prism.min.js"></script>

<script src="../build/svelte-former.js"></script>
<script src="/examples/js/examples/basic.js"></script>
<script src="/examples/js/examples/basic.js"></script>
<script src="/examples/js/code.js"></script>

</html>

0 comments on commit c1934be

Please sign in to comment.