mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-11-23 00:22:59 +05:30
format
This commit is contained in:
parent
e5264df3ad
commit
2d7c4595ac
44
.github/workflows/docker.yml
vendored
44
.github/workflows/docker.yml
vendored
@ -1,29 +1,25 @@
|
|||||||
name: Docker
|
name: Docker
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- "master"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Set up QEMU
|
||||||
name: Set up QEMU
|
uses: docker/setup-qemu-action@v2
|
||||||
uses: docker/setup-qemu-action@v2
|
- name: Set up Docker Buildx
|
||||||
-
|
uses: docker/setup-buildx-action@v2
|
||||||
name: Set up Docker Buildx
|
- name: Login to DockerHub
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/login-action@v2
|
||||||
-
|
with:
|
||||||
name: Login to DockerHub
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
uses: docker/login-action@v2
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
with:
|
- name: Build and push
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
uses: docker/build-push-action@v3
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
with:
|
||||||
-
|
push: true
|
||||||
name: Build and push
|
tags: projectsegfault/website:latest
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
tags: projectsegfault/website:latest
|
|
||||||
|
@ -2,9 +2,20 @@
|
|||||||
import { Note, Captcha, Form, Meta, TextArea } from "$lib/Form";
|
import { Note, Captcha, Form, Meta, TextArea } from "$lib/Form";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Form action="https://segfautils.projectsegfau.lt/api/form" method="POST" id="contact-form" >
|
<Form
|
||||||
<Note content="Your IP will be logged for anti-abuse measures." icon="i-fa6-solid:lock" />
|
action="https://segfautils.projectsegfau.lt/api/form"
|
||||||
<Meta inputType="email" inputPlaceholder="Your email" selectType="commentType">
|
method="POST"
|
||||||
|
id="contact-form"
|
||||||
|
>
|
||||||
|
<Note
|
||||||
|
content="Your IP will be logged for anti-abuse measures."
|
||||||
|
icon="i-fa6-solid:lock"
|
||||||
|
/>
|
||||||
|
<Meta
|
||||||
|
inputType="email"
|
||||||
|
inputPlaceholder="Your email"
|
||||||
|
selectType="commentType"
|
||||||
|
>
|
||||||
<option value="" selected disabled>Select a type of comment</option>
|
<option value="" selected disabled>Select a type of comment</option>
|
||||||
<option value="Feedback">Feedback</option>
|
<option value="Feedback">Feedback</option>
|
||||||
<option value="Suggestion">Suggestion</option>
|
<option value="Suggestion">Suggestion</option>
|
||||||
|
@ -1,19 +1,22 @@
|
|||||||
<script>
|
<script>
|
||||||
import HCaptcha from "svelte-hcaptcha";
|
import HCaptcha from "svelte-hcaptcha";
|
||||||
import { Note } from "$lib/Form";
|
import { Note } from "$lib/Form";
|
||||||
|
|
||||||
let submit = false;
|
let submit = false;
|
||||||
|
|
||||||
let showSubmitButton = () => {
|
let showSubmitButton = () => {
|
||||||
submit = !submit;
|
submit = !submit;
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Note content="The submit button will be visible when you complete the Captcha." icon="i-fa6-solid:circle-info" />
|
<Note
|
||||||
|
content="The submit button will be visible when you complete the Captcha."
|
||||||
|
icon="i-fa6-solid:circle-info"
|
||||||
|
/>
|
||||||
<HCaptcha
|
<HCaptcha
|
||||||
sitekey="67e84266-980c-4050-8a39-142a91928fe8"
|
sitekey="67e84266-980c-4050-8a39-142a91928fe8"
|
||||||
on:success={showSubmitButton}
|
on:success={showSubmitButton}
|
||||||
/>
|
/>
|
||||||
{#if submit}
|
{#if submit}
|
||||||
<input type="submit" value="Submit" class="form-button" />
|
<input type="submit" value="Submit" class="form-button" />
|
||||||
{/if}
|
{/if}
|
@ -1,19 +1,15 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let action: string;
|
export let action: string;
|
||||||
export let method: string;
|
export let method: string;
|
||||||
export let id: string;
|
export let id: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<form
|
<form {action} {method} {id}>
|
||||||
{action}
|
<slot />
|
||||||
{method}
|
|
||||||
{id}
|
|
||||||
>
|
|
||||||
<slot />
|
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
form {
|
form {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
@ -1,24 +1,24 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let inputType: string;
|
export let inputType: string;
|
||||||
export let inputPlaceholder: string;
|
export let inputPlaceholder: string;
|
||||||
export let selectType: string;
|
export let selectType: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="meta">
|
<div class="meta">
|
||||||
<input
|
<input
|
||||||
type={inputType}
|
type={inputType}
|
||||||
name={inputType}
|
name={inputType}
|
||||||
class="form-textbox"
|
class="form-textbox"
|
||||||
placeholder={inputPlaceholder}
|
placeholder={inputPlaceholder}
|
||||||
required
|
required
|
||||||
/>
|
/>
|
||||||
<select name={selectType} required class="form-button">
|
<select name={selectType} required class="form-button">
|
||||||
<slot />
|
<slot />
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.meta {
|
.meta {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
@ -1,17 +1,17 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let content: string;
|
export let content: string;
|
||||||
export let icon: string;
|
export let icon: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="note">
|
<div class="note">
|
||||||
{#if icon}
|
{#if icon}
|
||||||
<div class={icon} />
|
<div class={icon} />
|
||||||
{/if}
|
{/if}
|
||||||
<b>{content}</b>
|
<b>{content}</b>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.note {
|
.note {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 4px;
|
gap: 4px;
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
export let id: string;
|
export let id: string;
|
||||||
export let name: string;
|
export let name: string;
|
||||||
export let placeholder: string;
|
export let placeholder: string;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<textarea
|
<textarea
|
||||||
{id}
|
{id}
|
||||||
{name}
|
{name}
|
||||||
rows="4"
|
rows="4"
|
||||||
cols="25"
|
cols="25"
|
||||||
required
|
required
|
||||||
class="form-textbox"
|
class="form-textbox"
|
||||||
{placeholder}
|
{placeholder}
|
||||||
/>
|
/>
|
@ -26,8 +26,16 @@
|
|||||||
marginTop="7"
|
marginTop="7"
|
||||||
>
|
>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<LinkButton url="/services" title="Explore our services" icon="i-fa6-solid:bell-concierge" />
|
<LinkButton
|
||||||
<LinkButton url="/projects" title="Explore our projects" icon="i-fa6-solid:tractor" />
|
url="/services"
|
||||||
|
title="Explore our services"
|
||||||
|
icon="i-fa6-solid:bell-concierge"
|
||||||
|
/>
|
||||||
|
<LinkButton
|
||||||
|
url="/projects"
|
||||||
|
title="Explore our projects"
|
||||||
|
icon="i-fa6-solid:tractor"
|
||||||
|
/>
|
||||||
<LinkButton
|
<LinkButton
|
||||||
url="/donate"
|
url="/donate"
|
||||||
icon="i-fa6-solid:money-bill"
|
icon="i-fa6-solid:money-bill"
|
||||||
|
@ -25,26 +25,26 @@
|
|||||||
<h2>{group.category}</h2>
|
<h2>{group.category}</h2>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
{#each group.values as item}
|
{#each group.values as item}
|
||||||
<CardInner
|
<CardInner
|
||||||
title={item.name}
|
title={item.name}
|
||||||
description={item.description}
|
description={item.description}
|
||||||
icon={item.icon}
|
icon={item.icon}
|
||||||
>
|
>
|
||||||
<LinksOuter>
|
<LinksOuter>
|
||||||
<Link url={item.website} class="web">
|
<Link url={item.website} class="web">
|
||||||
<div class="withText">
|
<div class="withText">
|
||||||
<div class="i-fa6-solid:globe" />
|
<div class="i-fa6-solid:globe" />
|
||||||
<span>Instance link</span>
|
<span>Instance link</span>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
<Link url={item.projectWebsite} class="link">
|
<Link url={item.projectWebsite} class="link">
|
||||||
<div class="withText">
|
<div class="withText">
|
||||||
<div class="i-fa6-solid:circle-info" />
|
<div class="i-fa6-solid:circle-info" />
|
||||||
<span>Project website</span>
|
<span>Project website</span>
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
</LinksOuter>
|
</LinksOuter>
|
||||||
</CardInner>
|
</CardInner>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
Loading…
Reference in New Issue
Block a user