Adds inventory feature
parent
73467b3e7c
commit
4a0d88a2a5
@ -1,6 +1,8 @@
|
||||
User-agent: *
|
||||
Disallow: /search/*
|
||||
Disallow: /inventory/*
|
||||
Allow: /search/$
|
||||
Allow: /inventory/$
|
||||
Allow: /sitemap
|
||||
|
||||
Sitemap: https://awesome-privacy.xyz/sitemap-index.xml
|
||||
|
@ -0,0 +1,82 @@
|
||||
<script>
|
||||
import { onMount, tick } from 'svelte';
|
||||
let title = 'Inventory'; // Default title
|
||||
let editing = false;
|
||||
|
||||
// Function to save the title to local storage
|
||||
function saveTitle(newTitle) {
|
||||
localStorage.setItem('userTitle', newTitle);
|
||||
title = newTitle;
|
||||
editing = false;
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
const storedTitle = localStorage.getItem('userTitle');
|
||||
if (storedTitle) {
|
||||
title = storedTitle;
|
||||
}
|
||||
await tick(); // Ensures Svelte has completed initial DOM updates
|
||||
});
|
||||
|
||||
// Function to handle key events
|
||||
function handleKeydown(event) {
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault(); // Prevent form submission
|
||||
saveTitle(event.target.innerText);
|
||||
event.target.blur(); // Remove focus from the element
|
||||
}
|
||||
if (event.key === 'Escape') {
|
||||
editing = false;
|
||||
event.target.innerText = title; // Revert changes
|
||||
event.target.blur(); // Remove focus from the element
|
||||
}
|
||||
}
|
||||
|
||||
// Click outside to stop editing
|
||||
function handleClickOutside(event) {
|
||||
if (editing) {
|
||||
saveTitle(event.target.innerText);
|
||||
editing = false;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<svelte:window on:click={handleClickOutside}/>
|
||||
|
||||
<!-- svelte-ignore a11y-no-noninteractive-tabindex -->
|
||||
<div>
|
||||
<h2
|
||||
contenteditable={true}
|
||||
class:editable={editing}
|
||||
on:click={() => editing = true}
|
||||
on:keydown={handleKeydown}
|
||||
on:blur={() => saveTitle(title)}
|
||||
tabindex="0"
|
||||
>{title}</h2>
|
||||
|
||||
<small>Click the title, to edit your inventory name</small>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
h2 {
|
||||
font-family: "Lekton", sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 3rem;
|
||||
margin: 0;
|
||||
color: var(--accent-3);
|
||||
cursor: pointer;
|
||||
border-bottom: 2px solid transparent;
|
||||
outline: none;
|
||||
padding: 0.25rem;
|
||||
}
|
||||
.editable {
|
||||
border-bottom: 2px solid var(--accent-3); /* Visual cue to show editable state */
|
||||
}
|
||||
h2:focus {
|
||||
border-bottom: 2px solid var(--accent-3);
|
||||
}
|
||||
small {
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.5;
|
||||
}
|
||||
</style>
|
@ -0,0 +1,82 @@
|
||||
|
||||
<script lang="ts">
|
||||
|
||||
import { slugify } from "@utils/fetch-data";
|
||||
|
||||
let linkId = '';
|
||||
let done = false;
|
||||
let error = false;
|
||||
|
||||
const save = async () => {
|
||||
const savedServices = JSON.parse(localStorage.getItem('savedServices') || '[]');
|
||||
const inventoryTitle = localStorage.getItem('userTitle') || 'Anon\'s Inventory';
|
||||
const uniqueId = Math.random().toString(36).substring(2);
|
||||
const saveKey = `${uniqueId}_${slugify(inventoryTitle)}`;
|
||||
const url = 'https://awesome-privacy-share-api.as93.net';
|
||||
const data = { key: saveKey, services: savedServices };
|
||||
fetch(url, {
|
||||
method: 'PUT',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(data),
|
||||
})
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
linkId = data.key;
|
||||
done = true;
|
||||
error = false;
|
||||
navigator.clipboard.writeText(`https://awesome-privacy.xyz/inventory/${linkId}`);
|
||||
})
|
||||
.catch(error => {
|
||||
error = true;
|
||||
console.error('Error:', error)
|
||||
});
|
||||
};
|
||||
|
||||
</script>
|
||||
|
||||
<div class="share-container">
|
||||
{#if !done}
|
||||
<button class="save-button" on:click={save}>Get Sharable Link</button>
|
||||
{/if}
|
||||
{#if done}
|
||||
<span class="success-msg">
|
||||
Done! Your share link has been copied to clipboard.
|
||||
<a href={`https://awesome-privacy.xyz/inventory/${linkId}`}>
|
||||
Visit Link
|
||||
</a>
|
||||
</span>
|
||||
{/if}
|
||||
{#if error}
|
||||
<span class="error-msg">Something unexpected happened</span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
.share-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-width: 300px;
|
||||
}
|
||||
.save-button {
|
||||
background: var(--accent-3);
|
||||
border: 1px solid var(--box-outline);
|
||||
box-shadow: 3px 3px 0 var(--box-outline);
|
||||
padding: 0.25rem 0.5rem;
|
||||
border-radius: var(--curve-sm);
|
||||
color: var(--foreground);
|
||||
font-family: Lekton;
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.success-msg {
|
||||
font-size: 1rem;
|
||||
color: var(--success);
|
||||
a {
|
||||
color: var(--success);
|
||||
}
|
||||
}
|
||||
.error-msg {
|
||||
font-size: 1rem;
|
||||
color: var(--danger);
|
||||
}
|
||||
</style>
|
@ -0,0 +1,93 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import FontAwesome from "@components/form/FontAwesome.svelte";
|
||||
import { slugify } from "@utils/fetch-data";
|
||||
|
||||
export let categoryName: string;
|
||||
export let sectionName: string;
|
||||
export let serviceName: string;
|
||||
export let showLabel: boolean = false;
|
||||
|
||||
const serviceRef = `${slugify(categoryName)}/${slugify(sectionName)}/${slugify(serviceName)}`;
|
||||
|
||||
let isSaved = false;
|
||||
|
||||
onMount(async () => {
|
||||
const stored = JSON.parse(localStorage.getItem('savedServices') || '[]');
|
||||
if (stored.includes(serviceRef)) {
|
||||
isSaved = true;
|
||||
}
|
||||
});
|
||||
|
||||
function toggleSave() {
|
||||
const stored = JSON.parse(localStorage.getItem('savedServices') || '[]');
|
||||
const index = stored.indexOf(serviceRef);
|
||||
if (index === -1) {
|
||||
stored.push(serviceRef);
|
||||
isSaved = true;
|
||||
} else {
|
||||
stored.splice(index, 1);
|
||||
isSaved = false;
|
||||
}
|
||||
localStorage.setItem('savedServices', JSON.stringify(stored));
|
||||
}
|
||||
</script>
|
||||
|
||||
<button
|
||||
class={`save-container ${isSaved ? 'saved' : ''} ${showLabel ? 'label-button' : ''}`}
|
||||
title={`Save ${serviceName}`}
|
||||
on:click={toggleSave}>
|
||||
{#if showLabel }
|
||||
<span>Save</span>
|
||||
{/if}
|
||||
<FontAwesome iconName="saveListing"/>
|
||||
</button>
|
||||
|
||||
<style lang="scss">
|
||||
.save-container {
|
||||
cursor: pointer;
|
||||
background: none;
|
||||
border: none;
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
transition: all 0.2s ease-in-out;
|
||||
span {
|
||||
font-size: 1.2rem;
|
||||
opacity: 0.8;
|
||||
color: var(--foreground);
|
||||
font-family: "Lekton";
|
||||
}
|
||||
:global(svg) {
|
||||
color: var(--foreground);
|
||||
width: 1.2rem;
|
||||
height: 1.2rem;
|
||||
opacity: 0.5;
|
||||
transition: all 0.2s ease-in-out;
|
||||
}
|
||||
&:hover {
|
||||
:global(svg) {
|
||||
color: var(--accent-3);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&.saved {
|
||||
:global(svg) {
|
||||
color: var(--accent-2);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
&.label-button {
|
||||
padding: 0.2rem 0.4rem;
|
||||
border-radius: var(--curve-sm);
|
||||
box-shadow: 3px 3px 0 var(--box-outline);
|
||||
border: 1px solid var(--box-outline);
|
||||
background: var(--background-form);
|
||||
|
||||
&:hover {
|
||||
|
||||
box-shadow: 4px 4px 0 var(--box-outline);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,89 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
import type { Category, Service } from '../../types/Service';
|
||||
import { slugify } from "@utils/fetch-data";
|
||||
import ServiceCard from './ServiceCard.svelte';
|
||||
|
||||
export let allData: Category[];
|
||||
export let serviceList: string[] | null = null;
|
||||
|
||||
interface SavedServices {
|
||||
category: string;
|
||||
section: string;
|
||||
service: Service;
|
||||
}
|
||||
|
||||
const savedServices = writable<SavedServices[]>([]);
|
||||
|
||||
onMount(async () => {
|
||||
const results: SavedServices[] = [];
|
||||
const saved = serviceList || JSON.parse(localStorage.getItem('savedServices') || '[]');
|
||||
saved.forEach((serviceId: string) => {
|
||||
const parts = serviceId.split('/');
|
||||
const categoryName = parts[0];
|
||||
const sectionName = parts[1];
|
||||
const serviceName = parts[2];
|
||||
|
||||
const category = allData.find((category) => slugify(category.name) === categoryName);
|
||||
if (!category) return;
|
||||
const section = category.sections.find((section) => slugify(section.name) === sectionName);
|
||||
if (!section) return;
|
||||
const service = section.services.find((service) => slugify(service.name) === serviceName);
|
||||
if (!service) return;
|
||||
results.push({ category: category.name, section: section.name, service});
|
||||
});
|
||||
savedServices.set(results || []);
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<div>
|
||||
{#if $savedServices.length > 0}
|
||||
<div class="saved-services">
|
||||
{#each $savedServices as thingy}
|
||||
<ServiceCard
|
||||
categoryName={thingy.category}
|
||||
sectionName={thingy.section}
|
||||
service={thingy.service}
|
||||
/>
|
||||
{/each}
|
||||
</div>
|
||||
{:else if !serviceList}
|
||||
<div class="nothing-yet">
|
||||
<p>Here you'll find a list of all the software and services you've bookmarked.</p>
|
||||
<small>
|
||||
All data is stored on-device, in your browser's local storage,
|
||||
and not sent anywhere unless you choose to share it
|
||||
</small>
|
||||
<p class="nope">Nothing saved yet!</p>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
.saved-services {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.nothing-yet {
|
||||
text-align: center;
|
||||
p {
|
||||
margin: 0;
|
||||
}
|
||||
small {
|
||||
font-size: 0.8rem;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.nope {
|
||||
font-weight: bold;
|
||||
margin: 2rem 0;
|
||||
opacity: 0.2;
|
||||
font-size: 1.6rem;
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,69 @@
|
||||
<script lang="ts">
|
||||
import FontAwesome from '@components/form/FontAwesome.svelte';
|
||||
import SaveListing from '@components/things/SaveListing.svelte';
|
||||
import { slugify } from '@utils/fetch-data';
|
||||
import { formatLink } from '@utils/parse-markdown';
|
||||
import type { Service } from 'src/types/Service';
|
||||
|
||||
export let service: Service;
|
||||
export let categoryName: string;
|
||||
export let sectionName: string;
|
||||
|
||||
// Computed values based on props
|
||||
let serviceRef = slugify(service.name);
|
||||
let categorySlug = slugify(categoryName);
|
||||
let sectionSlug = slugify(sectionName);
|
||||
</script>
|
||||
|
||||
<div class="service" id={serviceRef}>
|
||||
<div class="service-head">
|
||||
<a class="service-title" href={`/${categorySlug}/${sectionSlug}/${serviceRef}`}>
|
||||
<h4>{service.name}</h4>
|
||||
</a>
|
||||
{#if service.followWith}
|
||||
<p class="follow-with">({service.followWith})</p>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div class="save-listing">
|
||||
<SaveListing
|
||||
categoryName={categoryName}
|
||||
sectionName={sectionName}
|
||||
serviceName={service.name}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="service-body">
|
||||
<img
|
||||
width="40"
|
||||
height="40"
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
class="service-icon"
|
||||
alt={`${service.name} Icon`}
|
||||
data-service-url={formatLink(service.url)}
|
||||
src={service.icon || `https://icon.horse/icon/${formatLink(service.url)}`}
|
||||
/>
|
||||
<div class="service-body">
|
||||
<p>{@html service.description}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="service-links">
|
||||
<a class="link" href={service.url}>
|
||||
<FontAwesome iconName="website" /> <span>{formatLink(service.url)}</span>
|
||||
</a>
|
||||
{#if service.github}
|
||||
<a class="link" href={`https://github.com/${service.github}`}>
|
||||
<FontAwesome iconName="sourceCode" /> GitHub
|
||||
</a>
|
||||
{/if}
|
||||
<a href={`/${categorySlug}/${sectionSlug}/${serviceRef}`}>
|
||||
<FontAwesome iconName="viewReport" /> View Report ➔
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style lang="scss">
|
||||
@import './service-card.scss';
|
||||
</style>
|
@ -0,0 +1,110 @@
|
||||
.service {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 1rem;
|
||||
border: 2px solid var(--box-outline);
|
||||
box-shadow: 6px 6px 0 var(--box-outline);
|
||||
background: var(--accent-fg);
|
||||
border-radius: var(--curve-sm);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
|
||||
.service-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
h4 {
|
||||
margin: 0;
|
||||
font-size: 1.4rem;
|
||||
color: var(--foreground);
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
opacity: 0.7;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
h4 {
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
&:after {
|
||||
background: none repeat scroll 0 0 transparent;
|
||||
bottom: 0;
|
||||
content: "";
|
||||
display: block;
|
||||
height: 3px;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
background: var(--accent-3);
|
||||
transition: width 0.2s ease 0s, left 0.2s ease 0s;
|
||||
width: 0;
|
||||
}
|
||||
&:hover:after {
|
||||
width: 100%;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.save-listing {
|
||||
position: absolute;
|
||||
top: 0.5rem;
|
||||
right: 0.5rem;
|
||||
}
|
||||
|
||||
.service-body {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
img {
|
||||
border-radius: var(--curve-sm);
|
||||
font-size: 0.6rem;
|
||||
color: var(--accent);
|
||||
}
|
||||
:global(p) {
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 3;
|
||||
-webkit-box-orient: vertical;
|
||||
overflow: hidden;
|
||||
margin: 0.5rem 0;
|
||||
width: calc(100% - 2rem);
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.service-links {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
justify-content: space-between;
|
||||
a {
|
||||
color: var(--accent-3);
|
||||
font-size: 0.8rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.25rem;
|
||||
opacity: 0.85;
|
||||
text-decoration: none;
|
||||
max-width: 50%;
|
||||
min-width: 25%;
|
||||
&:not(:last-child) {
|
||||
margin-right: 0.5rem;
|
||||
}
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
opacity: 1;
|
||||
}
|
||||
:global(svg) {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
}
|
||||
span {
|
||||
max-width: calc(100% - 1rem);
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
---
|
||||
|
||||
import Layout from '@layouts/Layout.astro';
|
||||
import SavedServices from '@components/things/SavedServices.svelte';
|
||||
import GetSharableLink from '@components/things/GetSharableLink.svelte';
|
||||
|
||||
import { fetchData } from '@utils/fetch-data';
|
||||
import Button from '@components/form/Button.astro';
|
||||
import EditableTitle from '@components/form/EditableTitle.svelte';
|
||||
import type { Category } from '../../types/Service';
|
||||
|
||||
const categories = (await fetchData())?.categories || [] as Category[];
|
||||
|
||||
export const prerender = false;
|
||||
|
||||
const inventoryId = Astro.params.inventoryId || 'Inventory';
|
||||
let cheekyLilError = '';
|
||||
|
||||
function makeTitle(input: string): string {
|
||||
return (input.includes('_') ? input : `mystry_${input}`)
|
||||
.split('_')[1]
|
||||
.replace(/-/g, ' ')
|
||||
.replace(/\b\w/g, (match) => match.toUpperCase());
|
||||
}
|
||||
|
||||
const serviceList = await fetch(`https://awesome-privacy-share-api.as93.net/${inventoryId}`).then((res) => res.json()) || [];
|
||||
|
||||
if (serviceList.error) {
|
||||
cheekyLilError = serviceList.error;
|
||||
}
|
||||
|
||||
---
|
||||
|
||||
<Layout title="Saved Services">
|
||||
<main>
|
||||
<h2>{makeTitle(inventoryId)}</h2>
|
||||
{cheekyLilError && (
|
||||
<div class="error">
|
||||
<p class="oh-deary-me">An error occoured</p>
|
||||
<p class="what-the-fuck-happened">{cheekyLilError}</p>
|
||||
<p class="what-next">
|
||||
We're sorry about that.<br />
|
||||
Try going <a href="/">back home</a>,
|
||||
or <a href="https://github.com/Lissy93/awesome-privacy/issues/new/choose">raising a ticket</a> on
|
||||
GitHub.
|
||||
</p>
|
||||
</div>
|
||||
)}
|
||||
<SavedServices allData={categories} serviceList={serviceList} client:load />
|
||||
<div class="buttons">
|
||||
<p>Not found what you're looking for?</p>
|
||||
<Button url="/all">Browse Services</Button>
|
||||
</div>
|
||||
</main>
|
||||
</Layout>
|
||||
|
||||
<style lang="scss">
|
||||
main {
|
||||
margin: 0 auto 2rem auto;
|
||||
padding: 1rem;
|
||||
width: 1200px;
|
||||
max-width: calc(100% - 5rem);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
min-height: calc(100vh - 12rem);
|
||||
font-size: 1.25rem;
|
||||
h2 {
|
||||
font-family: "Lekton", sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 3rem;
|
||||
margin: 0;
|
||||
color: var(--accent-3);
|
||||
}
|
||||
.buttons {
|
||||
margin: 1rem auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.error {
|
||||
text-align: center;
|
||||
font-size: 1.4rem;
|
||||
.oh-deary-me {
|
||||
font-size: 1.8rem;
|
||||
margin: 0.2rem auto;
|
||||
}
|
||||
.what-the-fuck-happened {
|
||||
color: var(--danger);
|
||||
margin: 0.2rem auto;
|
||||
}
|
||||
.what-next {
|
||||
font-size: 1rem;
|
||||
margin-top: 3rem;
|
||||
opacity: 0.6;
|
||||
a {
|
||||
color: var(--foreground);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
@ -0,0 +1,61 @@
|
||||
---
|
||||
|
||||
import Layout from '@layouts/Layout.astro';
|
||||
import SavedServices from '@components/things/SavedServices.svelte';
|
||||
import GetSharableLink from '@components/things/GetSharableLink.svelte';
|
||||
|
||||
import { fetchData } from '@utils/fetch-data';
|
||||
import Button from '@components/form/Button.astro';
|
||||
import EditableTitle from '@components/form/EditableTitle.svelte';
|
||||
import type { Category } from '../../types/Service';
|
||||
|
||||
const categories = (await fetchData())?.categories || [] as Category[];
|
||||
|
||||
---
|
||||
|
||||
<Layout title="Saved Services">
|
||||
<main>
|
||||
<div class="top-row">
|
||||
<!-- <h2>Inventory</h2> -->
|
||||
<EditableTitle client:load />
|
||||
<GetSharableLink client:load />
|
||||
</div>
|
||||
<SavedServices allData={categories} client:load />
|
||||
<div class="buttons">
|
||||
<p>Not found what you're looking for?</p>
|
||||
<Button url="/all">Browse Services</Button>
|
||||
</div>
|
||||
</main>
|
||||
</Layout>
|
||||
|
||||
<style lang="scss">
|
||||
main {
|
||||
margin: 0 auto 2rem auto;
|
||||
padding: 1rem;
|
||||
width: 1200px;
|
||||
max-width: calc(100% - 5rem);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-direction: column;
|
||||
min-height: calc(100vh - 12rem);
|
||||
font-size: 1.25rem;
|
||||
.top-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
h2 {
|
||||
font-family: "Lekton", sans-serif;
|
||||
font-weight: bold;
|
||||
font-size: 3rem;
|
||||
margin: 0;
|
||||
color: var(--accent-3);
|
||||
}
|
||||
.buttons {
|
||||
margin: 1rem auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue