-
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
12 changed files
with
105 additions
and
111 deletions.
There are no files selected for viewing
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,44 @@ | ||
|
||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
|
||
jobs: | ||
unit-tests: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code repo | ||
uses: actions/checkout@v2 | ||
|
||
|
||
- name: Login to Docker Hub | ||
env: | ||
DOCKERHUB_USERNAME: greenh47 | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
run: echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin | ||
|
||
- name: Build and Push Docker Image | ||
run: | | ||
docker build --platform linux/arm64 -t greenh47/homepage:nextjs . | ||
docker push greenh47/homepage:nextjs | ||
- name: Update docker image | ||
id: update-ec2 | ||
uses: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.HOST_IP }} | ||
username: ubuntu | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
script: | | ||
# stop docker compose | ||
sudo docker compose stop home_page | ||
# pull the latest image | ||
sudo docker pull greenh47/homepage:nextjs | ||
# start the docker compose | ||
sudo docker compose up -d home_page |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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 |
---|---|---|
@@ -1,32 +1,37 @@ | ||
import Image from 'next/image'; | ||
|
||
import { TestimonialDetails as TestimonialDetailsProps } from '@/lib/types'; | ||
import {TestimonialDetails as TestimonialDetailsProps} from '@/lib/types'; | ||
import Typography from '@/components/general/typography'; | ||
import Card from '@/components/layout/card'; | ||
|
||
const TestimonialDetails = ({ | ||
personName, | ||
personAvatar, | ||
testimonial, | ||
title, | ||
}: TestimonialDetailsProps) => { | ||
return ( | ||
<Card className="mx-auto flex flex-col items-center gap-6 p-8 md:w-2/3 md:p-12 lg:w-1/3"> | ||
<Image src={personAvatar!} alt={`${personName} avatar`}></Image> | ||
<Typography>"{testimonial}"</Typography> | ||
<div className="flex w-full flex-col gap-1"> | ||
<Typography | ||
variant="subtitle" | ||
className="w-full text-center font-semibold text-gray-900" | ||
> | ||
{personName} | ||
</Typography> | ||
<Typography variant="body3" className="w-full text-center"> | ||
{title} | ||
</Typography> | ||
</div> | ||
</Card> | ||
); | ||
personName, | ||
link, | ||
personAvatar, | ||
testimonial, | ||
title, | ||
}: TestimonialDetailsProps) => { | ||
return ( | ||
<Card className="mx-auto flex flex-col items-center gap-6 p-8 md:w-2/3 md:p-12 lg:w-1/3"> | ||
<Image src={personAvatar!} alt={`${personName} avatar`}></Image> | ||
<Typography>"{testimonial}"</Typography> | ||
<div className="flex w-full flex-col gap-1"> | ||
<Typography | ||
variant="subtitle" | ||
className="w-full text-center font-semibold text-gray-900" | ||
> | ||
|
||
<a href={link} target="_blank" rel="noopener noreferrer">{personName}</a> | ||
|
||
</Typography> | ||
|
||
|
||
<Typography variant="body3" className="w-full text-center"> | ||
{title} | ||
</Typography> | ||
</div> | ||
</Card> | ||
); | ||
}; | ||
|
||
export default TestimonialDetails; |
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
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