From 63ea67e4c3c8caa2cf0dc6d7c940981bd40b3974 Mon Sep 17 00:00:00 2001 From: Stanisław Zagórowski Date: Mon, 15 Jan 2024 14:21:34 +0100 Subject: all: move out from luax/ --- luax/components/animated_bg.luax | 3 -- luax/components/carousel.luax | 10 ------- luax/components/navbar-item.luax | 6 ---- luax/components/navbar.luax | 18 ------------ luax/components/project.luax | 62 ---------------------------------------- 5 files changed, 99 deletions(-) delete mode 100644 luax/components/animated_bg.luax delete mode 100644 luax/components/carousel.luax delete mode 100644 luax/components/navbar-item.luax delete mode 100644 luax/components/navbar.luax delete mode 100644 luax/components/project.luax (limited to 'luax/components') diff --git a/luax/components/animated_bg.luax b/luax/components/animated_bg.luax deleted file mode 100644 index 0c5105c..0000000 --- a/luax/components/animated_bg.luax +++ /dev/null @@ -1,3 +0,0 @@ -return function() - return
-end diff --git a/luax/components/carousel.luax b/luax/components/carousel.luax deleted file mode 100644 index f2c5fbe..0000000 --- a/luax/components/carousel.luax +++ /dev/null @@ -1,10 +0,0 @@ -return function(props) - if props == nil or props.children == nil or #props.children == 0 then - return nil - end - - return - -end diff --git a/luax/components/navbar-item.luax b/luax/components/navbar-item.luax deleted file mode 100644 index d201f82..0000000 --- a/luax/components/navbar-item.luax +++ /dev/null @@ -1,6 +0,0 @@ -return function(props) - return - - {$ props.children $} - -end diff --git a/luax/components/navbar.luax b/luax/components/navbar.luax deleted file mode 100644 index 4c0c54b..0000000 --- a/luax/components/navbar.luax +++ /dev/null @@ -1,18 +0,0 @@ -local NavbarItem = require('components.navbar-item') - -return function() - return - -end diff --git a/luax/components/project.luax b/luax/components/project.luax deleted file mode 100644 index cad844f..0000000 --- a/luax/components/project.luax +++ /dev/null @@ -1,62 +0,0 @@ -local Carousel = require('components.carousel') - -local asset_prefix = reluax.dev_mode and '/assets/' or 'https://cdn.duckonaut.dev/assets/' - -function getProjectImageLink(project, image) - return asset_prefix .. project.type .. 's/' .. project.name_normalized .. '/' .. image -end - -function getProjectTechIconLink(tech) - return asset_prefix .. 'images/' .. tech .. '.png' -end - -function getProjectTargetIconLink(target) - return asset_prefix .. 'images/' .. target .. '.png' -end - -return function (props) - local project = props.attrs.project - local techs = {} - for _, tech in ipairs(project.tech) do - techs[#techs + 1] = - end - local targets = {} - for _, target in ipairs(project.targets) do - targets[#targets + 1] = - end - - local images = nil - if project.images then - images = {} - for _, image in ipairs(project.images) do - images[#images + 1] = - end - - images = {$ images $} - end - - return ( -
- -
-
-
Made using
-
- {$ techs $} -
-
-
-
Available on
-
- {$ targets $} -
-
-
-
- {$ project.description $} -
-
- {$ images $} -
- ) -end -- cgit v1.3.1