Skip to content

Commit

Permalink
Update text and styles
Browse files Browse the repository at this point in the history
  • Loading branch information
slowe committed Sep 12, 2024
1 parent a92287d commit bda483d
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<header>
<div class="b1-bg">
<div class="holder padded" style="text-align:center;">
<a href="https://open-innovations.org/"><svg width="80" height="80" overflow="auto" viewBox="-32 -32 64 64" xmlns="http://www.w3.org/2000/svg"><mask id="oi-person"><path d="m-32-32h64v64h-12v-24a4 4 0 0 0 -4 -4h-8a4 4 0 0 0 -4 4v24h-36zm44 27m-8 0a8 8 0 1 0 16 0 8 8 0 1 0-16 0" fill="#fff"></path></mask><g id="oi-logo" fill="#E6007C"><circle r="32" mask="url(#oi-person)"></circle></g></svg></a>
<a href="https://open-innovations.org/"><svg width="80" height="80" overflow="auto" viewBox="-32 -32 64 64" xmlns="http://www.w3.org/2000/svg"><mask id="oi-person"><path d="m-32-32h64v64h-12v-24a4 4 0 0 0 -4 -4h-8a4 4 0 0 0 -4 4v24h-36zm44 27m-8 0a8 8 0 1 0 16 0 8 8 0 1 0-16 0" fill="#fff"></path></mask><g id="oi-logo" fill="#1DD3A7"><circle r="32" mask="url(#oi-person)"></circle></g></svg></a>
<h1>CSV Editor<span class="v"></span></h1>
</div>
</div>
Expand All @@ -41,24 +41,26 @@ <h1>CSV Editor<span class="v"></span></h1>
<h2>Features</h2>
<ul>
<li>Basic CSV viewer/editor</li>
<li>Lightweight - <span class="size-total">??</span>kB required to view a CSV compared to 1.88MB (gzipped) for <a href="https://www.getgrist.com/csv-viewer/">Grist CSV Viewer</a></li>
<li>Lightweight - <span class="size-total">??</span>kB required to view a CSV compared to 7.5MB (1.88MB gzipped) for <a href="https://www.getgrist.com/csv-viewer/">Grist CSV Viewer</a></li>
<li>Progressive enhancement</li>
<li>Open source</li>
<li>Easy to install</li>
<li>Self-hostable</li>
<li>No tracking analytics</li>
</ul>
<p>With just two lines of code, users will be able to open CSVs in a basic viewer/editor.</p>
<ol>
<li>Add anywhere
<pre>&lt;script src="<a href="oi.csv.js">oi.csv.js</a>"&gt;&lt;/script&gt;</pre>
</li>
<li>Add anywhere
<pre>&lt;a href="<a href="test-data.csv">test-data.csv</a>" data-oi-csv=""&gt;View CSV&lt;/a&gt;</pre>
</li>
<li>Done!</li>
</ol>
<p>The initial load (<a href="oi.csv.js">oi.csv.js</a>) is <span class="size-initial">??</span>kB. Only if someone clicks one of the links is the main script loaded (a further <span class="size-editor">??</span>kB). By using standard anchor tags, if Javascript is disabled - or fails due to network issues - people will still get the CSV.</p>
<div class="b5-bg padded padded-bottom">
<p>With just two lines of code, users will be able to open CSVs in a basic viewer/editor.</p>
<ol>
<li>Add anywhere
<pre>&lt;script src="<a href="oi.csv.js">oi.csv.js</a>"&gt;&lt;/script&gt;</pre>
</li>
<li>Add anywhere
<pre>&lt;a href="<a href="test-data.csv">test-data.csv</a>" data-oi-csv=""&gt;View CSV&lt;/a&gt;</pre>
</li>
<li>Done!</li>
</ol>
</div>
<p>The initial load (<a href="oi.csv.js">oi.csv.js</a>) is <span class="size-initial">??</span>kB. We only load the rest of the code - a further <span class="size-editor">??</span>kB - if someone starts viewing a CSV. By using standard anchor tags, if Javascript is disabled - or fails due to network issues - people will still get the CSV.</p>
<p>Try it by clicking <a href="test-data.csv" data-oi-csv>View CSV</a>.</p>
</div>
</div>
Expand Down

0 comments on commit bda483d

Please sign in to comment.