styling fix updates

This commit is contained in:
Jonas Heinrich 2025-05-11 11:39:17 +02:00
parent a7ef35cb0f
commit c02ada5cbf
6 changed files with 15 additions and 90 deletions

View file

@ -1,85 +0,0 @@
{
description = "Invoiceplane invoice template development shell";
inputs.nixpkgs.url = "nixpkgs/master";
outputs = { self, nixpkgs, ... }@inputs:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
start =
pkgs.writeShellScriptBin "start" ''
set -e
export NIXPKGS_ALLOW_INSECURE=1
export QEMU_NET_OPTS="hostfwd=tcp::8080-:80"
${pkgs.nixos-shell}/bin/nixos-shell --flake .
'';
in {
nixosConfigurations.vm = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs.inputs = inputs;
pkgs = import nixpkgs {
overlays = [
(self: super: {
froide-govplan = super.froide-govplan.overridePythonAttrs (oldAttrs: rec {
src = ./.;
#pkgs.fetchFromGitHub {
# owner = "onny";
# repo = "froide-govplan";
# rev = "81697ce37cfdee7b5d0f667c50b13062ed9786c3";
# hash = "sha256-ooHGlCKgZL+TMh6OtopKtbkV0MhT4udLCOIC+C3Ytdw=";
#};
dependencies = oldAttrs.dependencies ++ [ oldAttrs.passthru.python.pkgs.mastodon-py ];
postInstall = oldAttrs.postInstall + ''
rm -r $out/${pkgs.python3.sitePackages}/froide_govplan/templates
ln -sf /var/lib/froide-govplan/templates $out/${pkgs.python3.sitePackages}/froide_govplan/templates
cp -r froide_govplan/static $out/${pkgs.python3.sitePackages}/froide_govplan/
'';
});
})
];
};
modules = [
({ lib, config, pkgs, ... }: {
virtualisation = {
memorySize = 8000;
diskSize = 4096;
cores = 4;
};
disabledModules = [ "services/web-apps/froide-govplan.nix" ];
imports = [ ./froide-govplan.nix ];
services.froide-govplan = {
enable = true;
package = pkgs.froide-govplan;
settings = {
DEBUG = lib.mkForce true;
CSRF_TRUSTED_ORIGINS = [ "http://localhost:8080" ];
MASTODON_ACCESS_TOKEN = "WvUND5mp_tPQ9dgMrKWVXpUbP2gKpxRD3ejg10z74pg";
MASTODON_API_BASE_URL = "https://social.project-insanity.org";
};
};
nixos-shell.mounts.extraMounts = {
"/var/lib/froide-govplan/templates" = {
target = /home/onny/projects/froide-govplan/froide_govplan/templates;
cache = "none";
};
};
system.stateVersion = "25.05";
services.getty.autologinUser = "root";
})
];
};
packages = { inherit start; };
defaultPackage.x86_64-linux = start;
};
}

View file

@ -0,0 +1 @@
<svg viewBox="0 0 216.41 232.01" xmlns="http://www.w3.org/2000/svg"><path d="M107.85822 0C78.20448.2425 49.67197 3.45428 33.04465 11.0905c0 0-32.9769 14.75141-32.9769 65.08244 0 11.52456-.22401 25.31035.141 39.91645 1.19749 49.21822 9.02412 97.73333 54.53223 109.78008 20.98196 5.54994 38.99677 6.71242 53.51099 5.90618 26.30597-1.4531 41.08081-9.38427 41.08081-9.38427l-.87186-19.0873s-18.79668 5.92494-39.91833 5.20307c-20.9229-.7125-43.00735-2.25935-46.39169-27.9372-.31312-2.25935-.47062-4.6687-.47062-7.19992 0 0 20.53947 5.02494 46.57169 6.20618 15.9092.73124 30.84342-.92812 45.99326-2.73747 29.06219-3.46871 54.3838-21.38415 57.56189-37.74335 5.01557-25.78097 4.60307-62.92245 4.60307-62.92245 0-50.33103-32.9809-65.08243-32.9809-65.08243C166.79822 3.45428 138.25165.2425 108.58947 0h-.73125zM74.29608 39.3249c12.35518 0 21.71227 4.74932 27.89033 14.24797l6.02806 10.0827 6.00931-10.0827c6.18744-9.49865 15.53421-14.24798 27.8997-14.24798 10.67802 0 19.2748 3.75465 25.8466 11.07832 6.36556 7.32274 9.54365 17.21888 9.54365 29.67344v60.9406h-24.14037v-59.15c0-12.46862-5.24994-18.79574-15.74045-18.79574-11.6155 0-17.42794 7.50649-17.42794 22.35164v32.37247H96.20522V85.42315c0-14.84515-5.81337-22.35164-17.41575-22.35164-10.49426 0-15.73952 6.32806-15.73952 18.79574v59.15H38.90584v-60.9406c0-12.45456 3.16965-22.3507 9.5399-29.67344 6.56899-7.32273 15.1714-11.07832 25.85034-11.07832z" fill="#abbac9"/></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -139,6 +139,17 @@
.mx-auto { .mx-auto {
max-width: 1320px; max-width: 1320px;
} }
.bg-gray-700 {
background-color: rgba(55,65,81,1);
border-color: transparent;
border-radius: .375rem;
color: rgba(249,250,251,1);
font-size: .875rem;
line-height: 1.25rem;
text-decoration: none;
display: inline-flex;
}
</style> </style>
{% block extra_css %} {% block extra_css %}
{% endblock %} {% endblock %}

View file

@ -106,8 +106,8 @@
<br> <br>
<div class="mt-4"> <div class="mt-4">
<a href="https://social.project-insanity.org/@verwaltungstracker" target="_blank" class="inline-flex items-center px-4 py-2 text-sm font-medium bg-gray-700 border border-transparent shadow-sm rounded-md text-gray-50 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500"> <a href="https://social.project-insanity.org/@verwaltungstracker" target="_blank" class="inline-flex items-center px-4 py-2 text-sm font-medium bg-gray-700 border border-transparent shadow-sm rounded-md text-gray-50 hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500">
<svg class="w-5 h-5 mr-2 -ml-1 text-pink-600" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"></path></svg> <img src="{% static 'froide_govplan/images/mastodon-footer.svg' %}" widith="24" height="24">
@verwaltungstracker on Mastodon Follow us on Mastodon
</a> </a>
</div> </div>
</div> </div>

View file

@ -156,10 +156,9 @@
</p> </p>
<div class="row align-items-md-stretch">
{% include "froide_govplan/plugins/updates.html" with wrapper_classes="col col-12 col-lg-6 d-flex mb-4" %} {% include "froide_govplan/plugins/updates.html" with wrapper_classes="col col-12 col-lg-6 d-flex mb-4" %}
{% if government.active %} {% if government.active %}
<div class="col-md-6"> <div class="col">
<div class="h-100 p-5 border rounded-3"> <div class="h-100 p-5 border rounded-3">
<h2>Neue Entwicklung melden</h2> <h2>Neue Entwicklung melden</h2>
<p> <p>

View file

@ -244,6 +244,5 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
</div>
{% endif %} {% endif %}