Skip to content

Commit

Permalink
match style of main index page (#996)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Mar 1, 2024
1 parent 5f3e6d0 commit a51afa6
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 22 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci-feat-url.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Add URL to Feature PRs

on:
pull_request:
branches:
- dev

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Set KEBAB_CASE_BRANCH
run: |
# Convert github.head_ref to kebab case
kebab_case=$(echo "${{ github.head_ref }}" | sed 's/_/-/g; s/\//-/g')
echo "::set-output name=KEBAB_CASE_BRANCH::${kebab_case}"
id: set-branch-id

- name: Check the KEBAB_CASE_BRANCH output
run: echo "The KEBAB_CASE_BRANCH is ${{ steps.set-branch-id.outputs.KEBAB_CASE_BRANCH }}"

- name: PR Description
if: startsWith(github.head_ref, 'feature/') == true
uses: bcgov-nr/action-pr-description-add@v1.1.1
with:
add_markdown: |
---
🚀 Feature branch deployment: https://api-services-portal-${{ steps.set-branch-id.outputs.KEBAB_CASE_BRANCH }}.apps.silver.devops.gov.bc.ca
24 changes: 13 additions & 11 deletions src/nextapp/pages/devportal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,19 @@ const HomePage: React.FC = () => {
)
.map((action) => (
<Card key={action.url}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
<Box p={4}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
</Box>
</Card>
))}
</GridLayout>
Expand Down
24 changes: 13 additions & 11 deletions src/nextapp/pages/manager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,19 @@ const HomePage: React.FC = () => {
)
.map((action) => (
<Card key={action.url}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
<Box p={4}>
<Heading size="md" mb={2}>
<NextLink passHref href={action.url}>
<Link color="bc-link" display="flex" alignItems="center">
<Icon as={action.icon} color="bc-yellow" mr={2} />
{action.title}
</Link>
</NextLink>
</Heading>
<p>
{action.description}
</p>
</Box>
</Card>
))}
</GridLayout>
Expand Down

0 comments on commit a51afa6

Please sign in to comment.