diff --git a/src/assets/css/main.scss b/src/assets/css/main.scss index b1a34a9..7700a0d 100644 --- a/src/assets/css/main.scss +++ b/src/assets/css/main.scss @@ -419,11 +419,23 @@ $cond-text: ( stroke: var(--bs-danger); } +.edit-svg { + width: 1.25rem; + height: 1.25rem; + fill: var(--bs-warning); + stroke: var(--bs-warning); +} + .btn:hover .delete-svg { fill: var(--bs-danger-border-subtle); stroke: var(--bs-danger-border-subtle); } +.btn:hover .edit-svg { + fill: var(--bs-warning-border-subtle); + stroke: var(--bs-warning-border-subtle); +} + .shadow-filter { filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.3)) @@ -463,15 +475,18 @@ $cond-text: ( ); } -.inventory-button { - margin-bottom: -2.25rem; - margin-right: -0.5rem; - z-index: 2; +.inventory-button, .btn-vendor { background-color: hsl(262, 47%, 55%); color: #fff; } -.inventory-button:hover { +.inventory-button { + margin-bottom: -2.25rem; + margin-right: -0.5rem; + z-index: 2; +} + +.inventory-button:hover, .btn-vendor:hover { background-color: hsl(262, 39%, 40%); color: #fff; } diff --git a/src/pages/dashboard.astro b/src/pages/dashboard.astro index 64bac65..ab941f3 100644 --- a/src/pages/dashboard.astro +++ b/src/pages/dashboard.astro @@ -9,7 +9,7 @@ import FirstEditionIcon from "../components/FirstEditionIcon.astro"; // skus mirror the real shape: marketPrice is in cents (÷100 = dollars). const inventory = [ { - productId: "3830", + productId: "42382", productName: "Charizard", setName: "Base Set", setCode: "BS", @@ -28,7 +28,7 @@ const inventory = [ ], }, { - productId: "3959", + productId: "146682", productName: "Pikachu", setName: "Shining Legends", setCode: "SLG", @@ -47,26 +47,7 @@ const inventory = [ ], }, { - productId: "3729", - productName: "Mewtwo", - setName: "Fossil", - setCode: "FO", - number: "10/62", - rarityName: "Rare Holo", - energyType: "Psychic", - variant: "Normal", - qty: 1, - purchasePrice: 12000, - skus: [ - { condition: "Near Mint", marketPrice: 13000 }, - { condition: "Lightly Played", marketPrice: 10000 }, - { condition: "Moderately Played", marketPrice: 7200 }, - { condition: "Heavily Played", marketPrice: 4500 }, - { condition: "Damaged", marketPrice: 2500 }, - ], - }, - { - productId: "4114", + productId: "246723", productName: "Umbreon VMAX", setName: "Evolving Skies", setCode: "EVS", @@ -85,7 +66,7 @@ const inventory = [ ], }, { - productId: "3887", + productId: "197660", productName: "Gyarados", setName: "Hidden Fates", setCode: "HIF", @@ -104,7 +85,7 @@ const inventory = [ ], }, { - productId: "4201", + productId: "246733", productName: "Rayquaza VMAX", setName: "Evolving Skies", setCode: "EVS", @@ -123,7 +104,7 @@ const inventory = [ ], }, { - productId: "4055", + productId: "264218", productName: "Eevee", setName: "Sword & Shield", setCode: "SSH", @@ -142,7 +123,7 @@ const inventory = [ ], }, { - productId: "3991", + productId: "451834", productName: "Lugia V", setName: "Silver Tempest", setCode: "SIT", @@ -161,7 +142,7 @@ const inventory = [ ], }, { - productId: "4301", + productId: "106997", productName: "Blastoise", setName: "Base Set", setCode: "BS", @@ -180,26 +161,7 @@ const inventory = [ ], }, { - productId: "4302", - productName: "Venusaur", - setName: "Base Set", - setCode: "BS", - number: "15/102", - rarityName: "Rare Holo", - energyType: "Grass", - variant: "1st Edition", - qty: 1, - purchasePrice: 22000, - skus: [ - { condition: "Near Mint", marketPrice: 19500 }, - { condition: "Lightly Played", marketPrice: 15000 }, - { condition: "Moderately Played", marketPrice: 10500 }, - { condition: "Heavily Played", marketPrice: 6500 }, - { condition: "Damaged", marketPrice: 3500 }, - ], - }, - { - productId: "4303", + productId: "253265", productName: "Espeon VMAX", setName: "Evolving Skies", setCode: "EVS", @@ -218,7 +180,7 @@ const inventory = [ ], }, { - productId: "4304", + productId: "253266", productName: "Gengar VMAX", setName: "Fusion Strike", setCode: "FST", @@ -237,7 +199,7 @@ const inventory = [ ], }, { - productId: "4305", + productId: "226432", productName: "Pikachu VMAX", setName: "Vivid Voltage", setCode: "VIV", @@ -256,45 +218,7 @@ const inventory = [ ], }, { - productId: "4306", - productName: "Alakazam", - setName: "Base Set", - setCode: "BS", - number: "1/102", - rarityName: "Rare Holo", - energyType: "Psychic", - variant: "Shadowless", - qty: 2, - purchasePrice: 9500, - skus: [ - { condition: "Near Mint", marketPrice: 12000 }, - { condition: "Lightly Played", marketPrice: 9300 }, - { condition: "Moderately Played", marketPrice: 6600 }, - { condition: "Heavily Played", marketPrice: 4100 }, - { condition: "Damaged", marketPrice: 2200 }, - ], - }, - { - productId: "4307", - productName: "Sylveon VMAX", - setName: "Evolving Skies", - setCode: "EVS", - number: "212/203", - rarityName: "Secret Rare", - energyType: "Psychic", - variant: "Alternate Art", - qty: 1, - purchasePrice: 6800, - skus: [ - { condition: "Near Mint", marketPrice: 8500 }, - { condition: "Lightly Played", marketPrice: 6700 }, - { condition: "Moderately Played", marketPrice: 4800 }, - { condition: "Heavily Played", marketPrice: 3000 }, - { condition: "Damaged", marketPrice: 1500 }, - ], - }, - { - productId: "4308", + productId: "253275", productName: "Mew VMAX", setName: "Fusion Strike", setCode: "FST", @@ -313,7 +237,7 @@ const inventory = [ ], }, { - productId: "4309", + productId: "478077", productName: "Darkrai VSTAR", setName: "Astral Radiance", setCode: "ASR", @@ -332,7 +256,7 @@ const inventory = [ ], }, { - productId: "4310", + productId: "477060", productName: "Leafeon VSTAR", setName: "Pokémon GO", setCode: "PGO", @@ -351,64 +275,7 @@ const inventory = [ ], }, { - productId: "4311", - productName: "Snorlax", - setName: "Celebrations", - setCode: "CEL", - number: "005/025", - rarityName: "Rare Holo", - energyType: "Colorless", - variant: "Classic Collection", - qty: 6, - purchasePrice: 600, - skus: [ - { condition: "Near Mint", marketPrice: 750 }, - { condition: "Lightly Played", marketPrice: 580 }, - { condition: "Moderately Played", marketPrice: 420 }, - { condition: "Heavily Played", marketPrice: 260 }, - { condition: "Damaged", marketPrice: 130 }, - ], - }, - { - productId: "4312", - productName: "Articuno", - setName: "Fossil", - setCode: "FO", - number: "2/62", - rarityName: "Rare Holo", - energyType: "Water", - variant: "1st Edition", - qty: 1, - purchasePrice: 14000, - skus: [ - { condition: "Near Mint", marketPrice: 11500 }, - { condition: "Lightly Played", marketPrice: 9000 }, - { condition: "Moderately Played", marketPrice: 6400 }, - { condition: "Heavily Played", marketPrice: 4000 }, - { condition: "Damaged", marketPrice: 2200 }, - ], - }, - { - productId: "4313", - productName: "Radiant Charizard", - setName: "Pokemon GO", - setCode: "PGO", - number: "011/078", - rarityName: "Radiant Rare", - energyType: "Fire", - variant: "Normal", - qty: 2, - purchasePrice: 2800, - skus: [ - { condition: "Near Mint", marketPrice: 4200 }, - { condition: "Lightly Played", marketPrice: 3300 }, - { condition: "Moderately Played", marketPrice: 2400 }, - { condition: "Heavily Played", marketPrice: 1500 }, - { condition: "Damaged", marketPrice: 800 }, - ], - }, - { - productId: "4314", + productId: "478100", productName: "Giratina VSTAR", setName: "Lost Origin", setCode: "LOR", @@ -448,7 +315,7 @@ const totalGain = inventory.reduce((s, c) => s + gain(c) * c.qty, 0);
Catalogs
@@ -519,7 +386,7 @@ const totalGain = inventory.reduce((s, c) => s + gain(c) * c.qty, 0); class="btn btn-sm btn-outline-light" data-bs-toggle="modal" data-bs-target="#bulkImportModal" - >⬆ CSV Import + >Bulk Import
s + gain(c) * c.qty, 0); data-bs-target="#cardModal" >
s + gain(c) * c.qty, 0);
-
- - - -
-
- - + +
+ +