diff --git a/dist/favicon.png b/dist/favicon.png new file mode 100644 index 0000000..509ce50 Binary files /dev/null and b/dist/favicon.png differ diff --git a/dist/ratfe.css b/dist/ratfe.css new file mode 100644 index 0000000..6cb2d32 --- /dev/null +++ b/dist/ratfe.css @@ -0,0 +1,136 @@ +body +{ + font-family: Arial, Helvetica, sans-serif; + background-color: #f2f2f2; +} + +#display-wrapper +{ + display: flex; + justify-content: center; + +} + +#display +{ + overflow: hidden; + background-color: #ffffff; + width: 1000px; + border-radius: 5px; + border: 1pxnn solid #bababa; + box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3); +} + +#navbar +{ + display: flex; + align-items: center; + border-bottom: 2px solid #cacaca; +} + +#navbar img +{ + display: inline-block; + margin: 2px 2px 2px 8px; +} + +#navbar span.info +{ + margin-left: 15px; + color: #202020; + font-variant: small-caps; + font-size: 28px; +} + +#navbar-right +{ + padding-right: 8px; +} + +.alignend +{ + flex: 1; + display: flex; + flex-direction: column; + justify-content: flex-end; + align-items: flex-end; +} + +div#content +{ + display: flex; +} + +div#content main +{ + flex: 1; +} + +div#content aside +{ + width: 180px; + max-width: 200px; + background-color: #fcfcfc; +} + +#leftbar +{ + border-right: 1px solid #cacaca; +} + +#rightbar +{ + border-left: 1px solid #cacaca; +} + +/* Posts */ +.status +{ + display: flex; + margin: 5px; +} + +.status:not(:last-child) +{ + border-bottom: 2px dotted #cacaca; +} + +.status .profile-picture +{ + display: inline-block; +} + +.status .status-info +{ + flex: 1; + display: flex; + padding: 5px; + flex-direction: column; +} + +.status .instance-info +{ + font-style: italic; + text-decoration: none; + margin: 0 3px; +} + +.status .poster-stats +{ + display: flex; +} + +.status .username +{ + font-weight: bold; +} + +.status .status-content +{ + margin: 2px 0 0 0; +} + +.status-visibility +{ + color: #808080; +} diff --git a/dist/ratfe_logo.png b/dist/ratfe_logo.png new file mode 100644 index 0000000..ecdbb2b Binary files /dev/null and b/dist/ratfe_logo.png differ diff --git a/meta/ratfe.png b/meta/ratfe.png new file mode 100644 index 0000000..4027436 Binary files /dev/null and b/meta/ratfe.png differ diff --git a/src/index.c b/src/index.c index 708007d..b854336 100644 --- a/src/index.c +++ b/src/index.c @@ -17,9 +17,13 @@ */ #include +#include "../config.h" #include "index.h" +// Files +#include "../static/index.chtml" + void content_index() { - printf("Index.html\r\n"); + printf(data_index_html, config_canonical_name); } diff --git a/static/index.html b/static/index.html index c83b793..8172c03 100644 --- a/static/index.html +++ b/static/index.html @@ -2,10 +2,57 @@ %s + + -
- +
+
+ +
+ + + + +
+
+
+ +
+
+
+ Rat user + @ratlord@cum.desupost.soy + + public + +
+ + This is my first post

+ Just landed in L.A.! +
+
+
+
+ + + +
+