2021-12-12 10:31:08 +01:00
< script lang = "ts" >
import { Container , Row , Col , Card , CardHeader , CardTitle , CardBody , Input , Button } from 'sveltestrap';
2021-12-12 15:31:15 +01:00
import { Link , navigate } from 'svelte-navigator';
2021-12-12 10:31:08 +01:00
import FaRocket from 'svelte-icons/fa/FaRocket.svelte';
2022-03-19 11:50:31 +01:00
import FaStar from 'svelte-icons/fa/FaStar.svelte'
2022-03-19 13:15:24 +01:00
import FaMoon from 'svelte-icons/fa/FaMoon.svelte'
2021-12-12 10:31:08 +01:00
let sysInput: string = "";
2022-03-19 11:50:31 +01:00
let memberInput: string = "";
2022-03-19 13:15:24 +01:00
let groupInput: string = "";
2021-12-12 10:31:08 +01:00
< / script >
< Container >
< Row >
2021-12-30 08:23:13 +01:00
< Col class = "mx-auto" xs = { 12 } lg= { 11 } xl = { 12 } >
2022-03-19 11:50:31 +01:00
< Card class = "mb-4" >
2021-12-12 10:31:08 +01:00
< CardHeader >
< CardTitle style = "margin-top: 8px; outline: none;" >
< div class = "icon d-inline-block" >
< FaRocket / >
2022-03-19 11:50:31 +01:00
< / div > System Profile
2021-12-12 10:31:08 +01:00
< / CardTitle >
< / CardHeader >
< CardBody >
Submit a < b > system ID< / b > to view that system's profile.
< Row >
< Col xs = { 12 } lg= { 9 } class = "my-2" >
2022-05-20 13:49:58 +02:00
< Input on:keyup = {( event ) => { if ( event . key === "Enter" && sysInput !== "" ) navigate ( `/profile/s/$ { sysInput . toLowerCase (). trim ()} `) }} bind:value= { sysInput } aria-label = "enter system id to view system profile" />
2021-12-12 10:31:08 +01:00
< / Col >
< Col xs = { 12 } lg= { 3 } class = "my-2 d-flex" >
{ #if sysInput !== "" }
2021-12-12 23:09:28 +01:00
< Link style = "text-decoration: none; flex: 1 0 auto" to = "/profile/s/ { sysInput . toLowerCase (). trim ()} " >< Button class = "w-100" color = "primary" > View</ Button ></ Link >
2021-12-12 10:31:08 +01:00
{ : else }
< Button class = "w-100" disabled color = "primary" > View< / Button >
{ /if }
< / Col >
< / Row >
< / CardBody >
< / Card >
2022-03-19 11:50:31 +01:00
< Card class = "mb-4" >
< CardHeader >
< CardTitle style = "margin-top: 8px; outline: none;" >
< div class = "icon d-inline-block" >
< FaStar / >
< / div > Member Card
< / CardTitle >
< / CardHeader >
< CardBody >
Submit a < b > member ID< / b > to view that member's profile.
< Row >
< Col xs = { 12 } lg= { 9 } class = "my-2" >
2022-05-20 13:49:58 +02:00
< Input on:keyup = {( event ) => { if ( event . key === "Enter" && memberInput !== "" ) navigate ( `/profile/m/$ { memberInput . toLowerCase (). trim ()} `) }} bind:value= { memberInput } aria-label = "enter member id to view member profile" />
2022-03-19 11:50:31 +01:00
< / Col >
< Col xs = { 12 } lg= { 3 } class = "my-2 d-flex" >
{ #if memberInput !== "" }
2022-03-19 13:15:16 +01:00
< Link style = "text-decoration: none; flex: 1 0 auto" to = "/profile/m/ { memberInput . toLowerCase (). trim ()} " >< Button class = "w-100" color = "primary" > View</ Button ></ Link >
2022-03-19 11:50:31 +01:00
{ : else }
< Button class = "w-100" disabled color = "primary" > View< / Button >
{ /if }
< / Col >
< / Row >
< / CardBody >
< / Card >
2022-03-19 13:15:24 +01:00
< Card class = "mb-4" >
< CardHeader >
< CardTitle style = "margin-top: 8px; outline: none;" >
< div class = "icon d-inline-block" >
< FaMoon / >
< / div > Group Card
< / CardTitle >
< / CardHeader >
< CardBody >
Submit a < b > group ID< / b > to view that group's profile.
< Row >
< Col xs = { 12 } lg= { 9 } class = "my-2" >
2022-05-20 13:49:58 +02:00
< Input on:keyup = {( event ) => { if ( event . key === "Enter" && groupInput !== "" ) navigate ( `/profile/g/$ { groupInput . toLowerCase (). trim ()} `) }} bind:value= { groupInput } aria-label = "enter group id to view group profile" />
2022-03-19 13:15:24 +01:00
< / Col >
< Col xs = { 12 } lg= { 3 } class = "my-2 d-flex" >
{ #if groupInput !== "" }
< Link style = "text-decoration: none; flex: 1 0 auto" to = "/profile/g/ { groupInput . toLowerCase (). trim ()} " >< Button class = "w-100" color = "primary" > View</ Button ></ Link >
{ : else }
< Button class = "w-100" disabled color = "primary" > View< / Button >
{ /if }
< / Col >
< / Row >
< / CardBody >
< / Card >
2021-12-12 10:31:08 +01:00
< / Col >
< / Row >
2022-05-20 13:49:58 +02:00
< / Container >
< svelte:head >
< title > PluralKit | profile< / title >
< / svelte:head >