Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Commit 95e3020

Browse files
committed
add julius volz tweet.
1 parent 79fb835 commit 95e3020

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

src/components/index/Testimonials.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,11 @@ const Testimonials: React.SFC<{}> = () => {
9393

9494
const switchTweets = (to: number) => {
9595
const tweetsContainer = tweetsContainerRef.current
96-
const cycleWidth = tweetsContainer?.scrollWidth / cycles
97-
tweetsContainer.scroll({ left: parseFloat(cycleWidth * to), behavior: 'smooth' })
98-
99-
// Older method which regards the actuals tweets and the space between them and not the width of .tweets
100-
101-
// const tweets = tweetsRef.current
102-
// const firstTweet = tweets?.firstChild
103-
// const spacing = getComputedStyle(firstTweet)['margin-right']
104-
// const transform = firstTweet.offsetWidth * 3 + parseFloat(spacing.substring(0, spacing.length - 2)) * 2.8
96+
const tweets = tweetsRef.current
97+
const firstTweet = tweets?.firstChild
98+
const spacing = getComputedStyle(firstTweet)['margin-right']
99+
const scrollBy = firstTweet.offsetWidth * 3 + parseFloat(spacing.substring(0, spacing.length - 2)) * 2.8
100+
tweetsContainer.scroll({ left: parseFloat(scrollBy * to), behavior: 'smooth' })
105101
}
106102

107103
return (

src/contents/index.tsx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import Yo from '../resources/yo.jpg'
2222
import K33g from '../resources/k33g.jpg'
2323
import Michael from '../resources/michael.jpg'
2424
import Roku from '../resources/roku.jpg'
25+
import Julius from '../resources/julius.jpg'
2526
import { TestimonialProps } from '../components/index/Testimonial'
2627

2728
import { Link } from 'gatsby'
@@ -156,6 +157,21 @@ export const testimonials: TestimonialProps[] = [
156157
twitterHandle: 'dnsmichi',
157158
tweetId: '1311560585717460992'
158159
},
160+
{
161+
name: 'Julius Volz',
162+
avatar: Julius,
163+
org: <a href="https://twitter.com/PrometheusIO" target="_blank">@PrometheusIO</a>,
164+
role: 'Creator',
165+
text: (
166+
<>
167+
<p>
168+
Look at any PR (pull request) in a full coding environment where you can edit, build, and test the PR code, by just prepending "<a href="https://gitpod.io" target="_blank">gitpod.io#</a>" to the PR URL. Super useful for reviewing/testing stuff without having to check it out locally!
169+
</p>
170+
</>
171+
),
172+
twitterHandle: 'juliusvolz',
173+
tweetId: '1298972181708275717'
174+
},
159175
{
160176
name: 'David Ressler',
161177
avatar: DavidRessler,

src/resources/julius.jpg

36.5 KB
Loading

0 commit comments

Comments
 (0)