Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: created newsroom section #749

Merged
merged 105 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
287191a
blog overview created
May 8, 2022
1d6ba8e
previous recent-blog section removed
May 8, 2022
b92e9d4
max height removed
May 8, 2022
ab18714
mobile view corrected
May 8, 2022
bdb7fbf
Merge branch 'master' into newsroom
akshatnema May 9, 2022
9b51659
blog view completed
May 9, 2022
867dd7f
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
May 9, 2022
c0f3e4a
newsview section created
May 11, 2022
285e3d1
Merge branch 'master' into newsroom
akshatnema May 11, 2022
418b385
Merge branch 'asyncapi:master' into newsroom
akshatnema May 16, 2022
4dc3dd9
Merge branch 'master' into newsroom
akshatnema May 18, 2022
bf41197
removed errors
akshatnema May 18, 2022
db8ad74
Merge branch 'master' into newsroom
akshatnema May 18, 2022
6771beb
name changed
akshatnema May 18, 2022
7ee2254
Merge branch 'master' into newsroom
akshatnema May 19, 2022
4b4a5ae
news section completed
akshatnema May 19, 2022
9df5991
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema May 19, 2022
14f5e32
Merge branch 'master' into newsroom
akshatnema May 19, 2022
75f35d9
Merge branch 'master' into newsroom
akshatnema May 20, 2022
2682274
changes according to the review
akshatnema May 20, 2022
3472103
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema May 20, 2022
6edaa6e
Merge branch 'master' into newsroom
akshatnema May 24, 2022
0761059
changes according to the review
akshatnema May 25, 2022
2105b14
updated mobile view
akshatnema May 26, 2022
599dd6f
Merge branch 'master' into newsroom
akshatnema May 26, 2022
00563ae
Merge branch 'master' into newsroom
akshatnema May 27, 2022
1d69e37
Merge branch 'master' into newsroom
akshatnema May 31, 2022
bc9e05b
spacing added
akshatnema May 31, 2022
6ca6f07
Merge branch 'master' into newsroom
akshatnema Jun 1, 2022
6727498
Youtube API added
akshatnema Jun 1, 2022
0236a83
Merge branch 'master' into newsroom
akshatnema Jun 2, 2022
ac6d1cd
corrected blog scroll
akshatnema Jun 4, 2022
a1955f4
Youtube Component added
akshatnema Jun 5, 2022
860a5d7
added spec sheet details
akshatnema Jun 5, 2022
97d6541
Merge branch 'master' into newsroom
akshatnema Jun 10, 2022
7f2fe22
normalize spacing
akshatnema Jun 11, 2022
fe9785a
netlify functions added
akshatnema Jun 11, 2022
82818b9
unnecessary file deleted
akshatnema Jun 11, 2022
0d13480
Merge branch 'master' into newsroom
akshatnema Jun 12, 2022
67825a0
added script for adding videos
akshatnema Jun 13, 2022
9a11a47
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jun 13, 2022
3466a96
removed videos.json
akshatnema Jun 13, 2022
d4e3185
added workflow file
akshatnema Jun 13, 2022
ed59427
Merge branch 'master' into newsroom
akshatnema Jun 15, 2022
2326b80
Merge branch 'master' into newsroom
akshatnema Jun 16, 2022
f027455
Merge branch 'master' into newsroom
akshatnema Jun 23, 2022
0314eeb
changes made
akshatnema Jun 23, 2022
e307a92
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jun 23, 2022
ddf00ce
changes according to the review
akshatnema Jun 24, 2022
887b2b2
breakpoints issue solved
akshatnema Jun 25, 2022
082f391
Merge branch 'master' into newsroom
akshatnema Jun 25, 2022
9508def
Merge branch 'master' into newsroom
akshatnema Jun 28, 2022
39b2805
Apply suggestions from code review
akshatnema Jun 28, 2022
de39604
Merge branch 'master' into newsroom
akshatnema Jun 29, 2022
5f67d2d
changes according to the review
akshatnema Jun 29, 2022
0f06529
Merge branch 'master' into newsroom
akshatnema Jun 30, 2022
ed4b163
Merge branch 'master' into newsroom
magicmatatjahu Jun 30, 2022
0313e79
move newsroom to the separate components
magicmatatjahu Jun 30, 2022
726fe9d
integrate swiper
magicmatatjahu Jun 30, 2022
a7bdb03
apply styles for mobile devices
magicmatatjahu Jun 30, 2022
cc7d36d
apply styles for mobile devices
magicmatatjahu Jun 30, 2022
a730324
Empty-Commit
magicmatatjahu Jun 30, 2022
7cd26ec
fix styles
magicmatatjahu Jun 30, 2022
c0b525d
Empty-Commit
magicmatatjahu Jun 30, 2022
5bed120
try with downgraded nextjs
magicmatatjahu Jun 30, 2022
adc3776
try with another version of nextjs
magicmatatjahu Jun 30, 2022
ac8e528
try with nextjs12
magicmatatjahu Jun 30, 2022
5b944d2
try with envs
magicmatatjahu Jun 30, 2022
e79585e
fix swiper indexes
magicmatatjahu Jun 30, 2022
6dec20e
new page created for newsroom
akshatnema Jun 30, 2022
97bcb7d
Merge branch 'master' into newsroom
akshatnema Jul 1, 2022
906c8e8
Reverted changes
akshatnema Jul 2, 2022
0237fd3
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jul 2, 2022
fb16cb5
added Newsroom on homepage
akshatnema Jul 5, 2022
1e57666
Merge branch 'master' into newsroom
akshatnema Jul 5, 2022
8e13062
updated view
akshatnema Jul 5, 2022
3cc7cf0
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jul 5, 2022
cde265d
Merge branch 'master' into newsroom
akshatnema Jul 6, 2022
1f9c40b
Merge branch 'master' into newsroom
akshatnema Jul 9, 2022
1bbbbcf
added link to Buttpn
akshatnema Jul 11, 2022
1f9ba5f
added newsroom in community dropdown
akshatnema Jul 14, 2022
438b67b
Merge branch 'master' into newsroom
akshatnema Jul 14, 2022
2401ba4
corrected icon
akshatnema Jul 14, 2022
5ff5e05
Merge branch 'master' into newsroom
akshatnema Jul 15, 2022
7db244b
Apply suggestions from code review
akshatnema Jul 19, 2022
3abc978
Merge branch 'master' into newsroom
akshatnema Jul 19, 2022
cf0804c
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jul 19, 2022
9a83128
bugs fixed
akshatnema Jul 19, 2022
852a48c
removed border
akshatnema Jul 19, 2022
bb5eee1
Apply suggestions from code review
akshatnema Jul 19, 2022
1362c20
updated newsroom videos
akshatnema Jul 20, 2022
73c8b45
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jul 20, 2022
c130de4
deleted workflow
akshatnema Jul 20, 2022
8f75641
Revert "deleted workflow"
akshatnema Jul 20, 2022
971928a
workflow testing
akshatnema Jul 20, 2022
d8671ff
workflow testing
akshatnema Jul 20, 2022
1e91265
combined workflow
akshatnema Jul 20, 2022
d86fcc5
combined workflow
akshatnema Jul 20, 2022
65bb3be
removed github asyncapi
akshatnema Jul 20, 2022
5ac04b4
changed file
akshatnema Jul 20, 2022
8b663f4
merged the newsroom and meetings workflow
akshatnema Jul 20, 2022
945075c
renamed the file
akshatnema Jul 20, 2022
4710532
Merge branch 'master' into newsroom
akshatnema Jul 21, 2022
46aaded
added on failure message
akshatnema Jul 25, 2022
f86deb8
Merge remote-tracking branch 'refs/remotes/origin/newsroom' into news…
akshatnema Jul 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/regenerate-meetings-and-videos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: List everyday latest list of AsyncAPI Meetings and Newsroom Videos

on:
workflow_dispatch:
schedule:
#every day at midnight
- cron: "10 0 * * *"

jobs:
meetings:
if: github.repository == 'asyncapi/website'
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
YOUTUBE_TOKEN: ${{ secrets.YOUTUBE_TOKEN }}
name: Regenerate meetings.json
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: npm install
- name: Regenerate
run: npm run generate:meetings && npm run generate:videos
- name: Create Pull Request with new meetings.json and newsroom-videos.json version
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_TOKEN }}
commit-message: 'chore: update meetings.json and newsrooom_videos.json'
committer: asyncapi-bot <[email protected]>
author: asyncapi-bot <[email protected]>
title: 'chore: update meetings.json and newsrooom_videos.json'
branch: update-meetings/${{ github.job }}
- if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel
name: Report workflow run status to Slack
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,action,workflow
text: 'AsyncAPI Meetings and Videos workflow failed'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_CI_FAIL_NOTIFY }}
32 changes: 0 additions & 32 deletions .github/workflows/regenerate-meetings.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.idea
node_modules
.next
.swc
out
config/posts.json
public/rss.xml
Expand Down
48 changes: 24 additions & 24 deletions components/AsyncAPILogoLight.js

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

29 changes: 16 additions & 13 deletions components/buttons/Button.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import Link from 'next/link'
export default function Button({
text,
href,
Expand Down Expand Up @@ -34,19 +35,21 @@ export default function Button({
}

return (
<a {...props} href={href} target={target} rel="noopener noreferrer" className={buttonSize === 'small' ? smallButtonClasses : classNames}>
{
icon && iconPosition === 'left' && (
<span className="inline-block mr-2">{icon}</span>
)
}
<span className="inline-block">{text}</span>
{
icon && iconPosition === 'right' && (
<span className="inline-block ml-2">{icon}</span>
)
}
</a>
<Link href={href} passHref>
<a {...props} target={target} rel="noopener noreferrer" className={buttonSize === 'small' ? smallButtonClasses : classNames}>
{
icon && iconPosition === 'left' && (
<span className="inline-block mr-2">{icon}</span>
)
}
<span className="inline-block">{text}</span>
{
icon && iconPosition === 'right' && (
<span className="inline-block ml-2">{icon}</span>
)
}
</a>
</Link>
)
}

7 changes: 7 additions & 0 deletions components/icons/ArrowLeft.js

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

9 changes: 9 additions & 0 deletions components/icons/Newsroom.js

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

9 changes: 5 additions & 4 deletions components/navigation/BlogPostItem.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import moment from 'moment'
import { forwardRef } from 'react'
import TextTruncate from 'react-text-truncate'
import AuthorAvatars from '../AuthorAvatars'
import Heading from '../typography/Heading'
import Paragraph from '../typography/Paragraph'
import Link from 'next/link'

export default function BlogPostItem({ post, className = '' }) {
export default forwardRef(function BlogPostItem({ post, className = '', id=''}, ref) {
let typeColors = ['bg-indigo-100', 'text-indigo-800']

switch (post.type.toLowerCase()) {
Expand All @@ -24,10 +25,10 @@ export default function BlogPostItem({ post, className = '' }) {
}

return (
<li className='rounded-lg'>
<li className={`rounded-lg ${className}`} ref={ref} id={id}>
<article className='h-full rounded-lg'>
<Link href={post.slug} passHref>
<a className={`h-full flex flex-col border border-gray-200 rounded-lg shadow-md divide-y divide-gray-200 transition-all duration-300 ease-in-out hover:shadow-lg overflow-hidden cursor-pointer ${className}`}>
<a className={`h-full flex flex-col border border-gray-200 rounded-lg shadow-md divide-y divide-gray-200 transition-all duration-300 ease-in-out hover:shadow-lg overflow-hidden cursor-pointer`}>
<img className="h-48 w-full object-cover" src={post.cover} alt="" />
<div className="flex-1 bg-white p-6 flex flex-col justify-between">
<div className="flex-1">
Expand Down Expand Up @@ -76,4 +77,4 @@ export default function BlogPostItem({ post, className = '' }) {
</article>
</li>
)
}
})
4 changes: 3 additions & 1 deletion components/navigation/communityItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import IconSlack from '../icons/Slack'
import IconContributing from '../icons/Contributing'
import IconTSC from '../icons/TSC'
import IconMeetings from '../icons/Meetings'
import IconNewsroom from '../icons/Newsroom'


export default [
Expand All @@ -12,5 +13,6 @@ export default [
{ icon: IconSlack, title: 'Slack Workspace', href: 'https://asyncapi.com/slack-invite', target: '_blank', description: `Need help? Want to share something? Join our Slack workspace. We're nice people :)` },
{ icon: IconContributing, title: 'Contributing', href: 'https://github.com/asyncapi?type=source#-contribute-to-asyncapi', target: '_blank', description: `We are always welcoming and looking for contributions. If you are interested check out our contribution guide.` },
{ icon: IconTSC, title: 'Technical Steering Committee', href: '/community/tsc', description: 'Get to know what is a TSC member, how you can become one, and meet our current TSC members.' },
{ icon: IconMeetings, title: 'Meetings', href: '/community/meetings', description: 'See what meetings are organized under AsyncAPI umbrella and join one of them.' }
{ icon: IconMeetings, title: 'Meetings', href: '/community/meetings', description: 'See what meetings are organized under AsyncAPI umbrella and join one of them.' },
{ icon: IconNewsroom, title: 'Newsroom', href: '/community/newsroom', description: 'Get upto date with the recent activity in the initiative.' }
]
Loading