finish mainpage of the site
This commit is contained in:
@@ -30,8 +30,17 @@
|
||||
[=textimage_text-]
|
||||
Template all the things. Any Sitix file can be a template; the \[?] opening phrase indicates that (for whatever reason) the file shouldn't be rendered normally,
|
||||
but still may be included in other files - for configuration, templating, or even modular elements!
|
||||
[/]
|
||||
[=textimage_source-][^baseurl]/res/default.html.png[/]
|
||||
[^textimage]
|
||||
[/][=textimage_source-][^baseurl]/res/default.html.png[/][^textimage]
|
||||
[=textimage_text-]
|
||||
Sitix is a universal preprocessor. HTML? Of course. CSS? Yep! JavaScript? Certainly! Sitix will template and preprocess anything, whether it be a nice simple HTML file or a hand-edited GIF
|
||||
from 1998. Say goodbye to annoying configuration discrepancies between CSS and HTML and JavaScript - just throw your shared config in a config.stx file and let Sitix do the rest!
|
||||
[/][=textimage_source-][^baseurl]/res/lato.css.png[/][^textimage]
|
||||
<div class="text scrolly" style="font-size: 2em;">
|
||||
No more restrictive project structures, irritating configuration files, or <b>magic</b>. Goodbye Ruby, "blog-awareness", difficult configuration, and bulky outputs.
|
||||
Sitix renders <b>what you want, when you want it,</b> and doesn't ask questions.
|
||||
</div>
|
||||
<div class="text plug">
|
||||
Like what you see? <a href="[^baseurl]/pages/install">install Sitix</a> and start building modern websites now!
|
||||
</div>
|
||||
[/]
|
||||
[#templates/default.html]
|
||||
@@ -1,5 +1,8 @@
|
||||
[?]
|
||||
|
||||
[=textimage-text ]
|
||||
[=textimage-image ]
|
||||
|
||||
[=textimage-]
|
||||
<div class="textimage scrolly">
|
||||
<div class="textimage-text">[^textimage_text]</div>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
[!]
|
||||
[=isLinked]
|
||||
[=title About]
|
||||
[=content-]
|
||||
About
|
||||
<div class="text">
|
||||
About Page (TODO)
|
||||
</div>
|
||||
[/]
|
||||
[#templates/default.html]
|
||||
14
site/pages/install.html
Normal file
14
site/pages/install.html
Normal file
@@ -0,0 +1,14 @@
|
||||
[!]
|
||||
[=title Install Sitix]
|
||||
[=content-]
|
||||
<div class="text">
|
||||
At the moment, Sitix has no prebuilt binaries; I hope to include RPM/DEB packages in the next release.<br>To install it, you'll need to clone
|
||||
<a href="https://github.com/LinuxRocks2000/sitix-rewrite">the Github repository</a>, run <code>./build.sh</code>, and (assuming the build completes successfully)
|
||||
copy the generated <code>sitix</code> binary to some PATH-accessible location (<code>/usr/bin</code> is a good bet). Sitix requires a C++20-compatible
|
||||
G++ installation; it has no other dependencies. Sitix is theoretically cross-compilable to Windows, but I have no intention of ever officially supporting Windows.
|
||||
</div>
|
||||
<div class="text">
|
||||
Once you've got Sitix installed, see <a href="[^baseurl]/pages/usage">Usage</a>.
|
||||
</div>
|
||||
[/]
|
||||
[#templates/default.html]
|
||||
17
site/pages/todo.html
Normal file
17
site/pages/todo.html
Normal file
@@ -0,0 +1,17 @@
|
||||
[!]
|
||||
[=title Todo]
|
||||
[=content-]
|
||||
<div class="text">
|
||||
Sitix is still a pretty young piece of software, so if there's a missing feature that isn't on this list, don't hesitate to submit a feature request on <a href="https://github.com/LinuxRocks2000/sitix-rewrite/issues">the issues page</a>.
|
||||
Alternatively, you could just write it yourself! This TODO list is mostly for my memory, but I would love codebase contributions to get some things crossed off.
|
||||
</div>
|
||||
<div class="text">
|
||||
<ul>
|
||||
<li>Markdown support with an @-directive</li>
|
||||
<li>Code cleaning (need to fix memory management especially)</li>
|
||||
<li>Make config less hack (move from \[i config] to \[i exists], and create empty objects on global with -c)</li>
|
||||
<li>Add an unpack/ghost operator so setting objects to other objects works (something like \[=ghostingName-] \[%ghostedObject] \[/])</li>
|
||||
</ul>
|
||||
</div>
|
||||
[/]
|
||||
[#templates/default.html]
|
||||
BIN
site/res/forloop-example.png
Normal file
BIN
site/res/forloop-example.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
BIN
site/res/lato.css.png
Normal file
BIN
site/res/lato.css.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
@@ -1,13 +1,6 @@
|
||||
[!][@on minify]
|
||||
/* Sitix script for the Lato font-face declarations. My editor shows numerous syntax errors; this is because it does not support Sitix scripting. */
|
||||
[#config.stx]
|
||||
@font-face {
|
||||
font-family: Lato;
|
||||
src: url("[^baseurl]/res/lato/Lato-Italic.ttf");
|
||||
font-weight: normal;
|
||||
font-style: italic, oblique;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Lato;
|
||||
src: url("[^baseurl]/res/lato/Lato-Bold.ttf");
|
||||
@@ -19,7 +12,14 @@
|
||||
font-family: Lato;
|
||||
src: url("[^baseurl]/res/lato/Lato-BoldItalic.ttf");
|
||||
font-weight: bold;
|
||||
font-style: italic, oblique;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Lato;
|
||||
src: url("[^baseurl]/res/lato/Lato-Italic.ttf");
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
||||
@@ -25,6 +25,11 @@ img {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#nav > div > a {
|
||||
margin-left: 20px;
|
||||
margin-right: 20px;
|
||||
}
|
||||
|
||||
#nav > a {
|
||||
top: 0px;
|
||||
position: absolute;
|
||||
@@ -50,6 +55,7 @@ div.text {
|
||||
grid-template-areas: 'top top top'
|
||||
'line1 line2 line3';
|
||||
margin-top: 50px;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
}
|
||||
|
||||
#bottom > div:first-child {
|
||||
@@ -58,12 +64,12 @@ div.text {
|
||||
}
|
||||
|
||||
#bottom > div:first-child > a {
|
||||
display: inline-block;
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
#bottom > div:first-child > span {
|
||||
transform: translateY(-1em);
|
||||
margin-left: auto;
|
||||
margin-right: 0px;
|
||||
display: inline-block;
|
||||
width: 2em;
|
||||
transform: translateY(0.5em);
|
||||
}
|
||||
|
||||
#bottom > div:first-child > a > img {
|
||||
@@ -71,7 +77,11 @@ div.text {
|
||||
}
|
||||
|
||||
#bottom > div:first-child > * {
|
||||
margin: 10px;
|
||||
margin-bottom: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
#bottom > div:first-child > span {
|
||||
}
|
||||
|
||||
a {
|
||||
@@ -83,8 +93,14 @@ a:hover {
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
#main {
|
||||
body {
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
#bottom {
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.text.scrolly {
|
||||
@@ -174,6 +190,7 @@ div.toptext {
|
||||
display: flex;
|
||||
padding-left: 10vw;
|
||||
padding-right: 10vw;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.textimage > .textimage-text {
|
||||
@@ -186,15 +203,32 @@ div.toptext {
|
||||
flex-direction: row-reverse;
|
||||
}
|
||||
|
||||
.textimage.scrolly:nth-child(2n + 1) {
|
||||
transform: translateX(100vw);
|
||||
}
|
||||
|
||||
.textimage.scrolly {
|
||||
justify-content: space-between;
|
||||
width: 200vw;
|
||||
transform: translate(-50vw);
|
||||
width: 0px;
|
||||
overflow: hidden;
|
||||
transition: width 5s, transform 5s;
|
||||
transition: width 2s, transform 2s, padding 2s;
|
||||
box-sizing: border-box;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.textimage.scrolly.scrolly-entered {
|
||||
width: auto;
|
||||
width: 100vw;
|
||||
transform: none;
|
||||
}
|
||||
padding-left: 10vw;
|
||||
padding-right: 10vw;
|
||||
}
|
||||
|
||||
.plug {
|
||||
text-align: center;
|
||||
font-size: 3em;
|
||||
}
|
||||
|
||||
code {
|
||||
background-color: #000044;
|
||||
color: white;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<head>
|
||||
<link rel="stylesheet" href="[^baseurl]/res/main.css">
|
||||
<link rel="stylesheet" href="[^baseurl]/res/lato/lato.css">
|
||||
<link rel="icon" href="[^baseurl]/res/sitix.svg">
|
||||
<title>Sitix |
|
||||
[i exists title]
|
||||
[^title]
|
||||
@@ -30,19 +31,34 @@
|
||||
<div id="bottom">
|
||||
<div>
|
||||
<a href="[^baseurl]"><img src="[^baseurl]/res/sitix-large.png" /></a>
|
||||
<span>Sitix by Tyler Clarke</span>
|
||||
<span>Sitix by Tyler Clarke</span><br>
|
||||
</div>
|
||||
<div>
|
||||
Links
|
||||
<b>Shameless Plugs</b><br>
|
||||
<a href="https://swaous.asuscomm.com">Tyler Clarke's personal site</a><br>
|
||||
<a href="https://linuxrocks2000.github.io/">Tyler Clarke's (old) webcomic/blog/personal site</a><br>
|
||||
<a href="https://avrahamsociety.org/">The Avraham Society (first site to be officially generated with Sitix)</a><br>
|
||||
<a href="https://linuxrocks2000.github.io/not-art-gallery">The Not Art Gallery</a>
|
||||
</div>
|
||||
<div>
|
||||
More Links
|
||||
<b>Places in This Site</b><br>
|
||||
<a href="[^baseurl]">Home</a><br>
|
||||
[f pages i]
|
||||
<a href="[^baseurl]/pages/[^i.filename]">[^i.title]</a><br>
|
||||
[/]
|
||||
</div>
|
||||
<div>
|
||||
Information
|
||||
<b>Information</b><br>
|
||||
Sitix (including this website) is <a href="https://opensource.org/osd">open-source</a> <a href="https://www.fsf.org/about/">Free Software</a> protected by <a href="https://www.gnu.org/licenses/gpl-3.0.en.html">GNU GPLv3</a>.
|
||||
Looking to contribute? The source code for this website is hosted on <a href="https://github.com/LinuxRocks2000/sitix-website">Github</a>, as is
|
||||
<a href="https://github.com/LinuxRocks2000/sitix-rewrite">Sitix itself</a>.<br>
|
||||
Sitix is still young and probably buggy; if you have issues, submit a bug report at <a href="https://github.com/LinuxRocks2000/sitix-rewrite/issues">
|
||||
the issues page
|
||||
</a> or contact me at <a href="mailto:plupy44@gmail.com">plupy44@gmail.com</a> (github issue preferred).<br>
|
||||
If you want to contribute, but don't know where to start, see <a href="[^baseurl]/pages/todo">The Todo List</a>.
|
||||
</div>
|
||||
</div>
|
||||
<div id="actualbottom">Site designed by Tyler Clarke and built with Sitix.</div>
|
||||
<div id="actualbottom">Site designed by Tyler Clarke and built with Sitix. This page uses the <a href="https://www.latofonts.com/lato-free-fonts/">Lato fonts</a>.</div>
|
||||
<script src="[^baseurl]/res/main.js"></script>
|
||||
<script src="[^baseurl]/res/scrolly.js"></script>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user