summaryrefslogtreecommitdiff
path: root/new/splash/pages
diff options
context:
space:
mode:
Diffstat (limited to 'new/splash/pages')
-rw-r--r--new/splash/pages/index.html.erb14
-rw-r--r--new/splash/pages/index.xml.rb29
2 files changed, 38 insertions, 5 deletions
diff --git a/new/splash/pages/index.html.erb b/new/splash/pages/index.html.erb
index e5ee6f65..75264d3f 100644
--- a/new/splash/pages/index.html.erb
+++ b/new/splash/pages/index.html.erb
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
@@ -10,12 +11,12 @@
<meta property="og:type" content="website">
<meta property="og:url" content="https://crys.site">
<meta property="og:description" content="Michal's personal website">
-
<meta name="fediverse:creator" content="@mms@bsd.cafe">
<link rel="me" href="https://mastodon.bsd.cafe/@mms" title="@mms on bsd.cafe">
-
<style>
body {
+ margin-top: 20px;
+ margin-bottom: 20px;
text-align: center;
background-color: #c2c2c2;
background-image: url("<%= process_image(file: "background.png").relative_path %>");
@@ -24,6 +25,7 @@
a {
color: #000;
+
}
ol {
padding: 0;
@@ -37,7 +39,7 @@
border: 0;
text-decoration: none;
color: #c2c2c2;
- margin: 10px;
+ padding: 10px;
}
</style>
@@ -45,11 +47,13 @@
</head>
<body>
- <h1>Crys SITE</h1>
+ <img alt="Crys Site" src="<%= process_image(file: "logo.png").relative_path %>">
+
+
<p>
Hi!
- I'm Michal and this is my personal webpage.
+ I'm Michal and this is my personal website.
</p>
<p>
diff --git a/new/splash/pages/index.xml.rb b/new/splash/pages/index.xml.rb
new file mode 100644
index 00000000..309cb005
--- /dev/null
+++ b/new/splash/pages/index.xml.rb
@@ -0,0 +1,29 @@
+module Crys
+ module Splash
+ module Page
+ class IndexRss
+ include CommonFunctions
+ def initialize(processor:)
+ @main_rss = fetch_rss(name: :main)
+ @processor = processor
+ end
+
+ def content
+ main_rss
+ end
+
+ def filename
+ "index.xml"
+
+ end
+
+ private
+
+ attr_reader :main_rss
+
+ end
+ end
+ end
+end
+
+@rss = Crys::Splash::Page::IndexRss.new(processor: self)