-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
3,714 additions
and
7,683 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import LabelInput from './label-input.svelte'; | ||
|
||
export default { | ||
title: 'Atoms/LabelInput', | ||
component: LabelInput, | ||
argTypes: { | ||
label: { control: 'text' }, | ||
placeholder: { control: 'text' }, | ||
isTextArea: { control: 'boolean' } | ||
}, | ||
parameters: { | ||
layout: 'centered', | ||
controls: { | ||
exclude: ['id', 'type'] | ||
} | ||
} | ||
}; | ||
|
||
export const NonTextAreaInput = { | ||
args: { | ||
label: 'Label', | ||
placeholder: 'Placeholder', | ||
type: 'text' | ||
} | ||
}; | ||
|
||
export const TextAreaInput = { | ||
args: { | ||
label: 'Label', | ||
placeholder: 'Placeholder', | ||
type: 'text', | ||
isTextArea: true | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<script> | ||
export let label = ''; | ||
export let id = ''; | ||
export let type = 'text'; | ||
export let placeholder = ''; | ||
export let isTextArea = false; | ||
</script> | ||
|
||
<label class="m-1 font-source_code font-bold text-white" for={id}>{label}</label><br class="mb-1" /> | ||
{#if isTextArea} | ||
<textarea | ||
aria-label="textarea-input" | ||
class="mb-2 min-h-[100px] w-full rounded-lg bg-white p-2 font-source_code text-primary placeholder-primary" | ||
{id} | ||
{placeholder} | ||
rows="4" | ||
/><br /> | ||
{:else} | ||
<input | ||
aria-label="text-input" | ||
class="mb-2 w-full rounded-lg bg-white p-2 text-primary placeholder-primary" | ||
{type} | ||
{id} | ||
{placeholder} | ||
/><br /> | ||
{/if} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<script lang="ts"> | ||
import { Icon } from 'svelte-icons-pack'; | ||
import Graph from './_components/graph.svelte'; | ||
import LabelInput from '@/lib/components/icons/label-input.svelte'; | ||
import Icons from '$lib/components/icons/icons'; | ||
</script> | ||
|
||
<section class="-10 my-20 flex flex-col justify-center"> | ||
<section class="mb-4 flex flex-col text-center font-raleway text-white"> | ||
<h1 class="text-2xl font-bold">< Contacta-nos /></h1> | ||
</section> | ||
<div class="mx-10 grid-cols-2 md:grid"> | ||
<form class="min-w-[85%] justify-self-end"> | ||
<LabelInput label="// Email" id="email" type="email" placeholder="[email protected]" /> | ||
<LabelInput label="// Nome" id="name" type="text" /> | ||
<LabelInput label="// Assunto" id="subject" type="text" /> | ||
<LabelInput label="// Mensagem" id="message" type="text" isTextArea={true} /> | ||
|
||
<button | ||
class="m-1 justify-self-start rounded-lg bg-vivid-red-900 px-5 py-1 text-white" | ||
type="submit">Enviar</button | ||
> | ||
</form> | ||
<div class="m-2 flex w-full justify-center md:m-5 md:my-0"> | ||
<Graph /> | ||
</div> | ||
</div> | ||
<picture> | ||
<source media="(max-width: 767px)" srcset="/images/feup_buildings.svg" /> | ||
<source media="(min-width: 767px)" srcset="/images/feup_buildings_md.svg" /> | ||
<img | ||
src="/images/feup_buildings.svg" | ||
alt="Feup Buildings Outline" | ||
class="align-center h-52 w-full justify-self-center object-none object-center" | ||
/> | ||
</picture> | ||
<span | ||
id="location" | ||
class="ml-3 flex justify-center overflow-x-hidden text-white md:justify-start md:self-center lg:w-[1039px]" | ||
> | ||
<Icon src={Icons.Pin} color="white" size="40" className="py-2 pl-1" /> | ||
<div> | ||
<p>Rua Dr. Roberto Frias 4200-465, Porto</p> | ||
<p>Sala B315</p> | ||
</div> | ||
</span> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Graph from './graph.svelte'; | ||
|
||
export default { | ||
title: 'Organisms/Graph', | ||
component: Graph, | ||
parameters: { | ||
layout: 'fullscreen' | ||
} | ||
}; | ||
|
||
export const Default = {}; |
Oops, something went wrong.