Skip to content

Commit

Permalink
Merge branch 'archive' of https://github.com/RamGoel/conference-website
Browse files Browse the repository at this point in the history
… into archive
  • Loading branch information
RamGoel committed Mar 20, 2024
2 parents 87cae1c + 7f59c55 commit c330bfd
Show file tree
Hide file tree
Showing 7 changed files with 106 additions and 14 deletions.
90 changes: 90 additions & 0 deletions .github/workflows/bounty-program-commands.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# This workflow is centrally managed at https://github.com/asyncapi/.github/
# Don't make changes to this file in this repository, as they will be overwritten with
# changes made to the same file in the abovementioned repository.

# The purpose of this workflow is to allow Bounty Team members
# (https://github.com/orgs/asyncapi/teams/bounty_team) to issue commands to the
# organization's global AsyncAPI bot related to the Bounty Program, while at the
# same time preventing unauthorized users from misusing them.

name: Bounty Program commands

on:
issue_comment:
types:
- created

jobs:
guard-against-unauthorized-use:
if: >
github.actor != ('aeworxet' || 'thulieblack') &&
(
contains(github.event.comment.body, '/bounty' )
)
runs-on: ubuntu-latest

steps:
- name: ❌ @${{github.actor}} made an unauthorized attempt to use a Bounty Program's command
uses: actions/github-script@v6

with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const commentText = `❌ @${{github.actor}} is not authorized to use the Bounty Program's commands.
These commands can only be used by members of the [Bounty Team](https://github.com/orgs/asyncapi/teams/bounty_team).`;
console.log(`❌ @${{github.actor}} made an unauthorized attempt to use a Bounty Program's command.`);
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentText
})
add-label-bounty:
if: >
github.actor == ('aeworxet' || 'thulieblack') &&
(
contains(github.event.comment.body, '/bounty' )
)
runs-on: ubuntu-latest
env:
BOUNTY_PROGRAM_LABELS_JSON: |
[
{"name": "bounty", "color": "0e8a16", "description": "Participation in the Bounty Program"}
]
steps:
- name: Add label `bounty`
uses: actions/github-script@v6

with:
github-token: ${{ secrets.GH_TOKEN }}
script: |
const BOUNTY_PROGRAM_LABELS = JSON.parse(process.env.BOUNTY_PROGRAM_LABELS_JSON);
let LIST_OF_LABELS_FOR_REPO = await github.rest.issues.listLabelsForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
});
LIST_OF_LABELS_FOR_REPO = LIST_OF_LABELS_FOR_REPO.data.map(key => key.name);
if (!LIST_OF_LABELS_FOR_REPO.includes(BOUNTY_PROGRAM_LABELS[0].name)) {
await github.rest.issues.createLabel({
owner: context.repo.owner,
repo: context.repo.repo,
name: BOUNTY_PROGRAM_LABELS[0].name,
color: BOUNTY_PROGRAM_LABELS[0].color,
description: BOUNTY_PROGRAM_LABELS[0].description
});
}
console.log('Adding label `bounty`...');
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: [BOUNTY_PROGRAM_LABELS[0].name]
})
4 changes: 2 additions & 2 deletions components/About/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function About() {
<Paragraph typeStyle='body-lg' className="mt-6" textColor='text-gray-200'>
We are currently looking for sponsors, for more details please read our Sponsorship Prospectus.
</Paragraph>
<div className='mt-10 flex'>
<div className='mt-10 flex gap-4 sm:flex-col lg:justify-center'>
<a
href='https://opencollective.com/asyncapi/events/asyncapi-conference-on-tour-6b3c0aa1'
target='_blank'
Expand All @@ -37,7 +37,7 @@ function About() {
<Button className='w-[200px]'>Become a sponsor now</Button>
</a>
<a href='https://drive.google.com/file/d/15rQ7cp-LLmxSCcAb2aBFitgJkGhYXBrd/view' target='_blank' rel="noreferrer">
<Button overlay={true} className='w-[200px] ml-4 border'>Sponsorship prospectus</Button>
<Button overlay={true} className='w-[200px] border'>Sponsorship prospectus</Button>
</a>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions components/Footer/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function Footer() {
];
return (
<div className="container">
<div className="w-full flex justify-between items-center p-4">
<div className="w-full flex justify-between items-center p-4 sm:flex-col sm:gap-3">
<img src="/img/logo.png" alt="company logo" className="w-[150px]" />
<div className="mt-2 text-[14px] text-gray underline">
<div className="mt-2 text-[14px] text-gray-100 underline">
<a
href="https://github.com/asyncapi/.github/blob/master/CODE_OF_CONDUCT.md"
target="_blank"
Expand All @@ -35,7 +35,7 @@ function Footer() {
<div>
</div>
<div className="flex items-center justify-between sm:flex-col sm:items-start">
<div className="flex flex-col justify-between items-start gap-2 w-[284px] sm:mt-6">
<div className="flex flex-col justify-between items-start gap-2 w-[284px] sm:items-center">
<div className="flex justify-between items-center gap-3">
{socials.map((social, index) => {
return (
Expand Down
4 changes: 2 additions & 2 deletions components/Navbar/navDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const NavDrop = forwardRef((props, ref)=> {
const {setDrop}=props;
const [show, setShow] = useState(null);
return (
<div ref ={ref} className='absolute ml-[-16px] top-16 w-full bg-[#1B1130]'>
<div className='flex flex-col p-4 pb-8 w-full'>
<div ref ={ref} className='absolute ml-[-20px] top-16 w-full bg-[#1B1130]'>
<div className='flex flex-col p-5 pb-8 w-full'>
{links.map((link) => {
return (
<Link href={link.ref} key={link.title}>
Expand Down
4 changes: 2 additions & 2 deletions components/Navbar/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function Navbar() {
return (
<div className='flex justify-center items-center sticky top-0 z-[99] text-white'>
<div className='w-[1131px]'>
<div className='flex justify-between h-[75px] w-full items-center'>
<div className='p-5 flex justify-between h-[75px] w-full items-center'>
<div className='flex items-center sm:justify-between sm:w-full'>
<Link href='/'>
<div className='flex items-center cursor-pointer w-[120px]'>
Expand Down Expand Up @@ -91,7 +91,7 @@ function Navbar() {
<div className='subMenu absolute z-[9] mt-8 w-[140px] rounded-md left-[-15px] gradient-bg pl-2 pt-1 flex flex-col justify-center space-y-0'>
{link.subMenu.map((subL) => (
<Link href={subL.ref} key={subL.title}>
<div className='h-[32px] text-[16px]'>
<div className='h-[32px] text-[16px] hover:scale-95 hover:translate-x-1 transition-all'>
{subL.title}
</div>
</Link>
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions pages/venue/[id].js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ function Venue({ city }) {
</Heading>
<Paragraph className='mt-[24px]' textColor='text-white'>{city.description}</Paragraph>

<Heading typeStyle='lg' className='text-white mt-[24px]'>
{city.address}
<Heading typeStyle='lg' className='text-white mt-[24px] hover:underline'>
<a href={city.map} target='_blank' rel="noreferrer">
{city.address}
</a>
</Heading>
<Heading typeStyle='lg' className='text-white mt-[24px]'>
{city.date}
Expand Down

0 comments on commit c330bfd

Please sign in to comment.