INNER CODE UNIT · JavaScript

scrollTop

amfoss/club-website-2019 · pages/blog/index.js:84

  const scrollTop = () => {
    window.scrollTo({
      top: 100,
      behavior: 'smooth',
    });
  };

  const Articles = [];
  const Featured = [];
  const Collections = [];

  filter.map((blog) => {
    blog.collection
      ? Collections.push(blog)
      : blog.featured
      ? Featured.push(
          <div key={blog.title} className="col-sm-12 col-md-6 p-3">
            <BlogCard article={blog} featured={blog.featured} />

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…