From eab78f3d6993abd76dfef4085bda71174cf9387e Mon Sep 17 00:00:00 2001 From: krovuxdev <62192487+krovuxdev@users.noreply.github.com> Date: Sun, 24 Mar 2024 18:05:52 -0500 Subject: [PATCH 1/2] Feat(add, Fix): change font size, new flake --- flake.lock | 96 ++++++++++++++++++++++++++++++ flake.nix | 49 +++++++++++++++ src/components/feature_articles.rs | 4 +- 3 files changed, 147 insertions(+), 2 deletions(-) create mode 100644 flake.lock create mode 100644 flake.nix diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..e6dedda --- /dev/null +++ b/flake.lock @@ -0,0 +1,96 @@ +{ + "nodes": { + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1705309234, + "narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1711163522, + "narHash": "sha256-YN/Ciidm+A0fmJPWlHBGvVkcarYWSC+s3NTPk/P+q3c=", + "owner": "nixos", + "repo": "nixpkgs", + "rev": "44d0940ea560dee511026a53f0e2e2cde489b4d4", + "type": "github" + }, + "original": { + "owner": "nixos", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1706487304, + "narHash": "sha256-LE8lVX28MV2jWJsidW13D2qrHU/RUUONendL2Q/WlJg=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "90f456026d284c22b3e3497be980b2e47d0b28ac", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs", + "rust-overlay": "rust-overlay" + } + }, + "rust-overlay": { + "inputs": { + "flake-utils": "flake-utils", + "nixpkgs": "nixpkgs_2" + }, + "locked": { + "lastModified": 1711246447, + "narHash": "sha256-g9TOluObcOEKewFo2fR4cn51Y/jSKhRRo4QZckHLop0=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "dcc802a6ec4e9cc6a1c8c393327f0c42666f22e4", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..15b520a --- /dev/null +++ b/flake.nix @@ -0,0 +1,49 @@ +{ + description = "A Blog"; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; + rust-overlay.url = "github:oxalica/rust-overlay"; + }; + + outputs = { + self, + nixpkgs, + rust-overlay, + ... + }: let + system = "x86_64-linux"; + overlays = [(import rust-overlay)]; + #pkgs = nixpkgs.legacyPackages.${system}; + pkgs = import nixpkgs { + inherit system overlays; + }; + rust = pkgs.buildPackages.rust-bin.stable.latest.minimal; + nativeBuildInputs = with pkgs; [ + rust + leptosfmt + cargo-watch + miniserve + openssl + ]; + buildInputs = with pkgs; [ + pkg-config + ]; + in { + formatter.x86_64-linux = nixpkgs.legacyPackages.${system}.alejandra; + environment.variables = { + PKG_CONFIG_PATH = "${pkgs.openssl.dev}/lib/pkgconfig"; + }; + devShells.${system}.default = pkgs.mkShell { + inherit nativeBuildInputs buildInputs; + shellHook = ''mkdir -p out + echo "Bienvenido al Blog." + echo -e 'puede usar los comandos: + \x1b[93m#[Para compilar y ejecutar el servidor web local]\x1b[0m + cargo watch -x run --shell "npx tailwindcss -i ./input.css -o ./out/output.css && cargo run" & + \x1b[93m#[Para ejecutar o correr los archivos estáticos de tu sitio web localmente]\x1b[0m + miniserve -- out --index index.html' + ''; + }; + }; +} diff --git a/src/components/feature_articles.rs b/src/components/feature_articles.rs index 66436d0..659bb24 100644 --- a/src/components/feature_articles.rs +++ b/src/components/feature_articles.rs @@ -100,7 +100,7 @@ pub fn EstaSemanaEnRustCard(article: Article) -> impl IntoView {