From e131686760d4325ed5316033d60d5ac81ada0d1c Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Wed, 2 Aug 2023 14:19:46 +0600 Subject: Initial commit Signed-off-by: Mubashshir --- .fleet/run.json | 18 +++++ assets/asset/icons/chromium.png | Bin 0 -> 5329 bytes assets/asset/icons/code.png | Bin 0 -> 1878 bytes assets/asset/icons/firefox-esr.png | Bin 0 -> 21231 bytes assets/asset/icons/geany.png | Bin 0 -> 6991 bytes assets/asset/icons/libreoffice.png | Bin 0 -> 1920 bytes assets/asset/icons/qbittorrent.png | Bin 0 -> 9969 bytes assets/asset/snaps/firefox-esr.png | Bin 0 -> 69288 bytes assets/asset/snaps/qbittorrent.png | Bin 0 -> 177679 bytes data/app.toml | 47 +++++++++++ hugo.toml | 5 ++ layouts/_default/baseof.html | 18 +++++ layouts/index.html | 17 ++++ layouts/partials/app.html | 34 ++++++++ static/css/style.css | 157 +++++++++++++++++++++++++++++++++++++ 15 files changed, 296 insertions(+) create mode 100644 .fleet/run.json create mode 100644 assets/asset/icons/chromium.png create mode 100644 assets/asset/icons/code.png create mode 100644 assets/asset/icons/firefox-esr.png create mode 100644 assets/asset/icons/geany.png create mode 100644 assets/asset/icons/libreoffice.png create mode 100644 assets/asset/icons/qbittorrent.png create mode 100644 assets/asset/snaps/firefox-esr.png create mode 100644 assets/asset/snaps/qbittorrent.png create mode 100644 data/app.toml create mode 100644 hugo.toml create mode 100644 layouts/_default/baseof.html create mode 100644 layouts/index.html create mode 100644 layouts/partials/app.html create mode 100644 static/css/style.css diff --git a/.fleet/run.json b/.fleet/run.json new file mode 100644 index 0000000..9567f9a --- /dev/null +++ b/.fleet/run.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "type": "command", + "name": "Hugo(Serve)", + "program": "/bin/hugo", + "args": ["serve"], + "pty": true, + }, + { + "type": "command", + "name": "Hugo(Build)", + "program": "/bin/hugo", + "args": [], + "pty": true, + }, + ] +} \ No newline at end of file diff --git a/assets/asset/icons/chromium.png b/assets/asset/icons/chromium.png new file mode 100644 index 0000000..b4d5d36 Binary files /dev/null and b/assets/asset/icons/chromium.png differ diff --git a/assets/asset/icons/code.png b/assets/asset/icons/code.png new file mode 100644 index 0000000..f2e85ff Binary files /dev/null and b/assets/asset/icons/code.png differ diff --git a/assets/asset/icons/firefox-esr.png b/assets/asset/icons/firefox-esr.png new file mode 100644 index 0000000..d19dfd8 Binary files /dev/null and b/assets/asset/icons/firefox-esr.png differ diff --git a/assets/asset/icons/geany.png b/assets/asset/icons/geany.png new file mode 100644 index 0000000..ba2a86f Binary files /dev/null and b/assets/asset/icons/geany.png differ diff --git a/assets/asset/icons/libreoffice.png b/assets/asset/icons/libreoffice.png new file mode 100644 index 0000000..a1b1f11 Binary files /dev/null and b/assets/asset/icons/libreoffice.png differ diff --git a/assets/asset/icons/qbittorrent.png b/assets/asset/icons/qbittorrent.png new file mode 100644 index 0000000..92e554a Binary files /dev/null and b/assets/asset/icons/qbittorrent.png differ diff --git a/assets/asset/snaps/firefox-esr.png b/assets/asset/snaps/firefox-esr.png new file mode 100644 index 0000000..882e871 Binary files /dev/null and b/assets/asset/snaps/firefox-esr.png differ diff --git a/assets/asset/snaps/qbittorrent.png b/assets/asset/snaps/qbittorrent.png new file mode 100644 index 0000000..48aea36 Binary files /dev/null and b/assets/asset/snaps/qbittorrent.png differ diff --git a/data/app.toml b/data/app.toml new file mode 100644 index 0000000..20c058e --- /dev/null +++ b/data/app.toml @@ -0,0 +1,47 @@ +# App definition +# [apt-pkg-name] +# name = "App Name" #required +# info = "This is a Template App" #required +# url = "https://app.example.org" #required +# tags = ["internet", #optional [array]; catagories +# "communication"] + +[firefox-esr] +name = "Firefox" +info = "Free and Open Source Browser" +url = "https://mozilla.org/firefox" + +[chromium] +name = "Chromium" +info = "Free and Open Source Browser" +url = "https://chromium.org" + +[qbittorrent] +name = "qBittorrent" +info = "Free and Open-Source Bittorrent Client" +url = "https://qbittorrent.org/" + +[libreoffice] +name = "LibreOffice" +info = "Free and Open-Source Office Suite" +url = "https://libreoffice.org" + +[code] +name = "Visual Studio Code" +info = "Free and Open-Source Text Editor (memory hog)" +url = "https://qbittorrent.org/" + +[vlc] +name = "VLC" +info = "Free and Open-Source Media Player" +url = "https://qbittorrent.org/" + +[super-tuxcart] +name = "SuperTuxCart" +info = "Free and Open-Source Cart racing game" +url = "https://qbittorrent.org/" + +[mousepad] +name = "Mousepad" +info = "Lightweight Text Editor" +url = "https://xfce.org" diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..ed0e673 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,5 @@ +baseURL = 'http://apps.jadupc.com/' +languageCode = 'en-us' +title = 'JaduPc Apps' + +disableKinds = ["section", "taxonomy", "term", "RSS", "sitemap", "robotsTXT", "404"] diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..15e87f0 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,18 @@ + + + + + + + {{ block "title" . }} {{ .Site.Title }} {{ end }} + + + + {{- block "main" . -}} + + {{- end -}} + {{- block "footer" . -}} + + {{- end -}} + + diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..d0b2bab --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,17 @@ +{{- define "title" -}} Home {{- end -}} + +{{- define "main" -}} +
+
+

{{ .Title }}

+ {{ with .Params.subtitle }} + {{ . }} + {{ end }} +
+
+ {{- range $app, $info := $.Site.Data.app }} + {{- partial "partials/app.html" (dict "id" $app "data" $info) -}} + {{ end -}} +
+
+{{- end -}} diff --git a/layouts/partials/app.html b/layouts/partials/app.html new file mode 100644 index 0000000..4ccd861 --- /dev/null +++ b/layouts/partials/app.html @@ -0,0 +1,34 @@ +
+
+ {{- with (printf "asset/icons/%s.png" .id | resources.Get) -}} +
+ logo +
+ {{- end }} +
+

+ {{- .data.name | safeHTML -}} + + + + + + + + +

+

{{- .data.info | safeHTML -}}

+ Install +
+
+ + {{- with (printf "asset/snaps/%s.png" .id| resources.Get) -}} +
+ logo +
+ {{- end -}} +
diff --git a/static/css/style.css b/static/css/style.css new file mode 100644 index 0000000..36aa446 --- /dev/null +++ b/static/css/style.css @@ -0,0 +1,157 @@ +@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap'); + +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Poppins', sans-serif; +} + +a { + text-decoration: none; +} + +body { + background: linear-gradient(45deg, #C9409060, #0350C660); + padding: 10px; + + min-height: 100vh; + + display: flex; + justify-content: center; + align-items: center; + + flex-direction: column; +} + + +.catagory { + border-bottom: 3px solid gray; + border-radius: 2px; + margin-bottom: 10px; + + text-align: left; +} + +.catagory-name { + color: rgb(50, 50, 50); + padding-left: 5px; + text-shadow: 1px 1px 2px #0350C660; +} + + +.app-container { + display: flex; + flex-direction: row; + flex-wrap: wrap; +} + + +.card { + width: 24vw; + height: 30vh; + margin: 5px; + border-radius: 10px; + + background: linear-gradient(45deg, #C9409030, #0350C6); + box-shadow: 1px 2px 3px #000000; + + display: flex; +} + +.info { + width: 100%; + text-align: center; + border-radius: 5px 0 0 5px; + + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.card:has(> .image) .info { + width: 70%; +} + +.icon img { + width: 40%; + filter: drop-shadow(0px 1px 2px black); + margin: 20px; +} + +.title { + flex-direction: row; + display: grid; + grid-template-rows: 40% 40% 20%; + grid-template-columns: 20% 20% 20% 20% 20%; +} + +.name { + color: #ffffff; + font-size: 24px; + text-shadow: 1px 1px 5px black; +} + +.gen-name { + color: #ffffff; + text-shadow: 1px 1px 2px black; +} + +.ins-btn { + color: #e4e3e3; + background-color: #0350C6; + border: 1px solid #ffffff80; + border-radius: 10px; + box-shadow: 1px 1px 2px #00000070; + + /* margin-top: 40px; */ + padding: 7px 25px; + + font-weight: 700; + + transition: all 200ms ease-in-out; +} + +.ins-btn:hover { + color: #ffffff; + background-color: #2866c1; + cursor: pointer; +} + +.ins-btn > a:visited { + color: #ffffff80 !important; +} + + +.image { + width: 30%; + border-radius: 0 10px 10px 0; + overflow: hidden; +} + +.image img { + width: 100%; + height: 100%; + object-fit: cover; +} + +.image img:hover { + cursor: pointer; +} + +.overlay { + width: 80%; + background-color: gray; + + display: flex; + justify-content: center; + align-items: center; +} + +.full-size img { + width: 100%; + height: auto; + object-fit: cover; + +} -- cgit v1.2.3