Skip to content

Commit

Permalink
Fix public references
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejearley committed Jun 11, 2022
1 parent 6bd2501 commit 5e6eef2
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 138 deletions.
160 changes: 80 additions & 80 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,86 +55,86 @@ jobs:
- name: Build and deploy email templates
run: npm run deploy:templates

# - name: Set deployment outputs
# run: |
# export "STACK_KEY=${PROJECT^}${SERVICE^}Stack${STAGE^}"
# export "DNS_KEY=${PROJECT^}${SERVICE^}DnsName${STAGE^}"
# export "ARN_KEY=${PROJECT^}${SERVICE^}StackId${STAGE^}"
# echo "WEBSITE_DNS=$(cat cdk-outputs.json | jq -r --arg stack_key "$STACK_KEY" --arg dns_key "$DNS_KEY" '.[$stack_key][$dns_key]')" >> $GITHUB_ENV
# echo "WEBSITE_ARN=$(cat cdk-outputs.json | jq -r --arg stack_key "$STACK_KEY" --arg arn_key "$ARN_KEY" '.[$stack_key][$arn_key]')" >> $GITHUB_ENV
# env:
# SERVICE: website
- name: Set deployment outputs
run: |
export "STACK_KEY=${PROJECT^}${SERVICE^}Stack${STAGE^}"
export "DNS_KEY=${PROJECT^}${SERVICE^}DnsName${STAGE^}"
export "ARN_KEY=${PROJECT^}${SERVICE^}StackId${STAGE^}"
echo "WEBSITE_DNS=$(cat cdk-outputs.json | jq -r --arg stack_key "$STACK_KEY" --arg dns_key "$DNS_KEY" '.[$stack_key][$dns_key]')" >> $GITHUB_ENV
echo "WEBSITE_ARN=$(cat cdk-outputs.json | jq -r --arg stack_key "$STACK_KEY" --arg arn_key "$ARN_KEY" '.[$stack_key][$arn_key]')" >> $GITHUB_ENV
env:
SERVICE: website

# - name: Select success emoji
# if: ${{ success() }}
# run: echo 'EMOJI=:rocket:' >> $GITHUB_ENV
- name: Select success emoji
if: ${{ success() }}
run: echo 'EMOJI=:rocket:' >> $GITHUB_ENV

# - name: Select failure emoji
# if: ${{ failure() }}
# run: echo 'EMOJI=:see_no_evil:' >> $GITHUB_ENV
- name: Select failure emoji
if: ${{ failure() }}
run: echo 'EMOJI=:see_no_evil:' >> $GITHUB_ENV

# - name: Notify slack
# if: ${{ success() || failure() }}
# uses: slackapi/slack-github-action@v1.18.0
# with:
# payload: |
# {
# "blocks": [
# {
# "type": "header",
# "text": {
# "type": "plain_text",
# "text": ":construction: Development Deployment → :space_invader: Casimir"
# }
# },
# {
# "type": "section",
# "fields": [
# {
# "type": "mrkdwn",
# "text": "*Branch* · <https://github.com/${{ github.repository }}/tree/${{ env.BRANCH }}|${{ env.BRANCH }}>"
# },
# {
# "type": "mrkdwn",
# "text": "*Environment* · <https://${{ env.AWS_REGION }}.console.aws.amazon.com/cloudformation/home?region=${{ env.AWS_REGION }}#/stacks/stackinfo?stackId=${{ env.WEBSITE_ARN }}|${{ env.STAGE }}>"
# }
# ]
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "Deployment completed with _${{ job.status }}_ ${{ env.EMOJI }}"
# }
# },
# {
# "type": "actions",
# "elements": [
# {
# "type": "button",
# "text": {
# "type": "plain_text",
# "text": "Preview",
# "emoji": true
# },
# "style": "primary",
# "value": "preview",
# "url": "http://${{ env.WEBSITE_DNS }}"
# },
# {
# "type": "button",
# "text": {
# "type": "plain_text",
# "text": "Inspect Logs",
# "emoji": true
# },
# "value": "inspect_logs",
# "url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
# }
# ]
# }
# ]
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
- name: Notify slack
if: ${{ success() || failure() }}
uses: slackapi/slack-github-action@v1.18.0
with:
payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": ":construction: Development Deployment → :space_invader: Casimir"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Branch* · <https://github.com/${{ github.repository }}/tree/${{ env.BRANCH }}|${{ env.BRANCH }}>"
},
{
"type": "mrkdwn",
"text": "*Environment* · <https://${{ env.AWS_REGION }}.console.aws.amazon.com/cloudformation/home?region=${{ env.AWS_REGION }}#/stacks/stackinfo?stackId=${{ env.WEBSITE_ARN }}|${{ env.STAGE }}>"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Deployment completed with _${{ job.status }}_ ${{ env.EMOJI }}"
}
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "Preview",
"emoji": true
},
"style": "primary",
"value": "preview",
"url": "http://${{ env.WEBSITE_DNS }}"
},
{
"type": "button",
"text": {
"type": "plain_text",
"text": "Inspect Logs",
"emoji": true
},
"value": "inspect_logs",
"url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
49 changes: 23 additions & 26 deletions apps/website/src/components/Puddles.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<script lang="ts" setup>
import { ref, onMounted } from 'vue'
import { ref, onMounted } from 'vue'
const puddleStyles = ref([]) as any
const stylesArray = new Array(56).fill({
'fill': 'rgba(196, 196, 196, 0.10)',
'filter': 'drop-shadow( 10px 0px 2px rgba(0, 0, 0, .25))',
})
puddleStyles.value = stylesArray
onMounted(() => {
setInterval(() => {
puddleStyles.value = new Array(56).fill({
'fill': 'rgba(196, 196, 196, 0.10)',
'filter': 'drop-shadow( 10px 0px 2px rgba(0, 0, 0, .25))'
})
const randomPuddle = Math.floor(Math.random() * puddleStyles.value.length)
puddleStyles.value[randomPuddle] = {
'fill': 'rgba(249, 158, 76, 0.80)',
'filter': 'drop-shadow( 12px 0px 2px rgba(0, 0, 0, .45))',
'transition': ' all 3.5s ease-out',
}
}, 3000)
})
const puddleStyles = ref([]) as any
const stylesArray = new Array(56).fill({
'fill': 'rgba(196, 196, 196, 0.10)',
'filter': 'drop-shadow( 10px 0px 2px rgba(0, 0, 0, .25))',
})
puddleStyles.value = stylesArray
onMounted(() => {
setInterval(() => {
puddleStyles.value = new Array(56).fill({
'fill': 'rgba(196, 196, 196, 0.10)',
'filter': 'drop-shadow( 10px 0px 2px rgba(0, 0, 0, .25))'
})
const randomPuddle = Math.floor(Math.random() * puddleStyles.value.length)
puddleStyles.value[randomPuddle] = {
'fill': 'rgba(249, 158, 76, 0.80)',
'filter': 'drop-shadow( 12px 0px 2px rgba(0, 0, 0, .45))',
'transition':' all 3.5s ease-out',
}
}, 3000)
})
</script>

Expand All @@ -43,7 +41,7 @@
:style="puddleStyles[0]"
class="puddle-animation"
/>
<circle
<circle
r="72.5557"
transform="matrix(0.317039 0.682961 -1.18303 -0.183027 1923.29 600.267)"
:style="puddleStyles[1]"
Expand All @@ -63,7 +61,6 @@
class="puddle-animation"
/>
<circle

r="72.5557"
transform="matrix(0.317039 0.682961 -1.18303 -0.183027 1272.2 224.396)"
:style="puddleStyles[4]"
Expand Down Expand Up @@ -380,11 +377,11 @@
</template>

<style>
@keyframes appear {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
Expand Down
2 changes: 2 additions & 0 deletions apps/website/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { createApp } from 'vue'
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import App from '@/App.vue'
import '@/index.css'
import { createRouter, createWebHistory } from 'vue-router'
Expand Down
Loading

0 comments on commit 5e6eef2

Please sign in to comment.