Skip to content

Commit

Permalink
Merge pull request #1 from ssennettau/features-jan2024
Browse files Browse the repository at this point in the history
General Update for Jan2024
  • Loading branch information
ssennettau authored Jan 29, 2024
2 parents 3c0e040 + a2d60e8 commit 0bc19ef
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 7 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploy-partysmith-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy PartySmith (Dev)
on:
push:
branches:
- '!main'
concurrency:
group: merge-${{ github.ref }}
permissions:
id-token: write
contents: read
jobs:
DeployApp:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::672107698272:role/GitHubActionsRole
role-duration-seconds: 3600
aws-region: us-east-1
- name: Deploy PartySmith with SST
run: |
npm i && npx sst deploy --stage dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy PartySmith
name: Deploy PartySmith (Prod)
on:
push:
branches:
Expand Down
18 changes: 14 additions & 4 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script>
import "../app.css";
import { dev } from '$app/environment';
</script>

<head>
Expand All @@ -15,14 +16,23 @@
</head>

<div class="min-h-screen flex flex-col">
<header class="pt-16 text-center">
<h1 class="text-4xl text-yellow-400 font-semibold">PartySmith</h1>
<header class="pt-16 mb-4 text-center">
<h1 class="text-4xl text-yellow-400 font-semibold"><a href="/">PartySmith</a></h1>
<p class="text-gray-300 text-lg">Bringing the party to your place.</p>
{#if dev}
<p class="text-sm text-yellow-200">&mdash; &#x26A0; Running in Development Mode &#x26A0; &mdash;</p>
{/if}
</header>
<slot />
</div>

<footer class="flex flex-col items-center py-4 bg-gray-800 text-gray-300 fixed bottom-0 w-full">
<footer class="flex flex-col items-center py-4 mt-4 bg-gray-900 text-gray-300 fixed bottom-0 w-full">
{#if dev}
<p class="text-xs text-yellow-200">&mdash; &#x26A0; Running in Development Mode &#x26A0; &mdash;</p>
{/if}
<div class="text-base">&copy; 2024 <a href="https://ssennett.net/" class="font-semibold hover:text-gray-500" target="_blank">Stephen Sennett</a></div>
<div class="text-sm"><a href="https://github.com/ssennettau/partysmith/" class="font-semibold hover:text-gray-500" target="_blank">GitHub</a></div>
<div class="text-sm">
<a href="/about" class="font-semibold hover:text-gray-500">About</a>
|
<a href="https://github.com/ssennettau/partysmith/" class="font-semibold hover:text-gray-500" target="_blank">GitHub</a></div>
</footer>
11 changes: 11 additions & 0 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<main class="flex-grow flex items-center justify-center mb-16">
<div class="bg-gray-800 p-6 rounded-lg shadow-md max-w-4xl space-y-3">
<p>PartySmith is an unofficial community project that transforms your <a href="https://partyrock.aws/" class="font-semibold text-yellow-400 hover:text-gray-500" target="_blank">AWS PartyRock</a> apps into deployable full-stack <a href="https://kit.svelte.dev/" class="font-semibold text-yellow-400 hover:text-gray-500" target="_blank">SvelteKit</a> applications.</p>

<p>Users can enter the URL of a publicly published PartyRock app, select the desired settings, and PartySmith will forge an application into a ZIP archive which will be downloaded to your machine, and ready for use.</p>

<p>This is designed to help build rapidly-deployable, and highly-customizable experimental apps using the Generative AI services of <a href="https://aws.amazon.com/bedrock" class="font-semibold text-yellow-400 hover:text-gray-500" target="_blank">Amazon Bedrock</a>, which are suitable for use in personal, customer-facing, or internal enterprise use cases.</p>

<p>You can find out more about how PartySmith works by checking out the article on <a href="https://community.aws/content/2b40sobzGjCjWy9oUjtygY5McjU/partysmith" class="font-semibold text-yellow-400 hover:text-gray-500" target="_blank">Community.AWS</a>, or by visiting the <a href="https://github.com/ssennettau/PartySmith" class="font-semibold text-yellow-400 hover:text-gray-500" target="_blank">PartySmith GitHub Repository</a>.</p>
</div>
</main>
4 changes: 2 additions & 2 deletions sst.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ export default {
stacks(app) {
app.stack(function Site({ stack }) {
const site = new SvelteKitSite(stack, "site", {
customDomain: {
customDomain: stack.stage == "prod" ? {
domainName: "partysmith.ssennett.net",
hostedZone: "ssennett.net",
},
} : undefined,
});
const templateLayer = new LayerVersion(stack, "templateLayer", {
code: Code.fromAsset("src/templateLayer"),
Expand Down
4 changes: 4 additions & 0 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
User-agent: *

Disallow: /*.js
Disallow: /.json

0 comments on commit 0bc19ef

Please sign in to comment.