feat: add demo link

This commit is contained in:
Clelia (Astra) Bertelli
2025-11-24 19:08:59 +01:00
parent 690ab1ed1e
commit cfd0476f92
3 changed files with 22 additions and 21 deletions
+20 -20
View File
@@ -68,24 +68,24 @@ jobs:
DIGEST: ${{ steps.build-and-push.outputs.digest }}
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}
# - name: Dokploy Deployment
# if: github.ref == 'refs/heads/main' && github.event_name == 'push'
# run: |
# response=$(curl -X 'POST' \
# "$DOKPLOY_URL/api/application.deploy" \
# -H 'accept: application/json' \
# -H 'Content-Type: application/json' \
# -H "x-api-key: $DOKPLOY_AUTH_TOKEN" \
# -d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \
# -w "%{http_code}" \
# -o /dev/null \
# -s)
- name: Dokploy Deployment
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
response=$(curl -X 'POST' \
"$DOKPLOY_URL/api/application.deploy" \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-H "x-api-key: $DOKPLOY_AUTH_TOKEN" \
-d "{\"applicationId\": \"$DOKPLOY_APPLICATION_ID\"}" \
-w "%{http_code}" \
-o /dev/null \
-s)
# if [ "$response" -ne 200 ]; then
# echo "Deployment failed with status code: $response"
# exit 1
# fi
# env:
# DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }}
# DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }}
# DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }}
if [ "$response" -ne 200 ]; then
echo "Deployment failed with status code: $response"
exit 1
fi
env:
DOKPLOY_AUTH_TOKEN: ${{ secrets.DOKPLOY_AUTH_TOKEN }}
DOKPLOY_APPLICATION_ID: ${{ secrets.DOKPLOY_APPLICATION_ID }}
DOKPLOY_URL: ${{ secrets.DOKPLOY_URL }}
+1
View File
@@ -21,6 +21,7 @@ templ NavBar(authenticated bool) {
<li><a href="/categories">Create categories</a></li>
<li><a href="/notes">Uploads some notes!</a></li>
<li><a href="/review">Review time :)</a></li>
<li><a href="https://www.loom.com/share/c12d498a62d941d990b3274b41d1d999">Watch the demo</a></li>
<li><a href="https://monitor.palettify.nl/status/studyllama">Status Page</a></li>
</ul>
</div>
+1 -1
View File
@@ -29,7 +29,7 @@ func NavBar(authenticated bool) templ.Component {
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<div class=\"bg-success text-success-content px-4 py-1 text-xs flex items-center justify-center gap-2 w-full\"><div class=\"badge badge-xs badge-success\"></div><span>All systems operational</span> <a href=\"https://monitor.palettify.nl/status/studyllama\" class=\"link link-hover underline\">View details</a></div><div class=\"navbar bg-base-100 shadow-sm h-16\"><div class=\"navbar-start\"><div class=\"dropdown\"><div tabindex=\"0\" role=\"button\" class=\"btn btn-ghost btn-circle btn-sm\"><svg xmlns=\"http://www.w3.org/2000/svg\" class=\"h-5 w-5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h7\"></path></svg></div><ul tabindex=\"0\" class=\"menu menu-lg dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-70 p-2 shadow\"><li><a href=\"/\">Home</a></li><li><a href=\"/categories\">Create categories</a></li><li><a href=\"/notes\">Uploads some notes!</a></li><li><a href=\"/review\">Review time :)</a></li><li><a href=\"https://monitor.palettify.nl/status/studyllama\">Status Page</a></li></ul></div></div><div class=\"navbar-center\"><a class=\"btn btn-ghost text-lg\" href=\"/\">StudyLlama</a></div><div class=\"navbar-end gap-4\">")
templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "<div class=\"bg-success text-success-content px-4 py-1 text-xs flex items-center justify-center gap-2 w-full\"><div class=\"badge badge-xs badge-success\"></div><span>All systems operational</span> <a href=\"https://monitor.palettify.nl/status/studyllama\" class=\"link link-hover underline\">View details</a></div><div class=\"navbar bg-base-100 shadow-sm h-16\"><div class=\"navbar-start\"><div class=\"dropdown\"><div tabindex=\"0\" role=\"button\" class=\"btn btn-ghost btn-circle btn-sm\"><svg xmlns=\"http://www.w3.org/2000/svg\" class=\"h-5 w-5\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M4 6h16M4 12h16M4 18h7\"></path></svg></div><ul tabindex=\"0\" class=\"menu menu-lg dropdown-content bg-base-100 rounded-box z-[1] mt-3 w-70 p-2 shadow\"><li><a href=\"/\">Home</a></li><li><a href=\"/categories\">Create categories</a></li><li><a href=\"/notes\">Uploads some notes!</a></li><li><a href=\"/review\">Review time :)</a></li><li><a href=\"https://www.loom.com/share/c12d498a62d941d990b3274b41d1d999\">Watch the demo</a></li><li><a href=\"https://monitor.palettify.nl/status/studyllama\">Status Page</a></li></ul></div></div><div class=\"navbar-center\"><a class=\"btn btn-ghost text-lg\" href=\"/\">StudyLlama</a></div><div class=\"navbar-end gap-4\">")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}