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

Cria configuração para o mostrar os colabs no blog #25

Merged
merged 6 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 17 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ module.exports = {
resolve: "gatsby-plugin-scroll-reveal",
options: {
threshold: 1,
}
},
{
resolve: "gatsby-source-filesystem",
options: {
name: "notebooks",
path: `${__dirname}/src/data/posts/notebooks`,
ignore: ["**/.ipynb_checkpoints"],
},
},
{
resolve: "@rafaelquintanilha/gatsby-transformer-ipynb",
options: {
notebookProps: {
displayOrder: ["image/png", "text/html", "text/plain"],
showPrompt: false,
},
},
},
],
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,15 @@
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
},
"dependencies": {
"@gatsby-contrib/gatsby-transformer-ipynb": "^0.5.8",
"@rafaelquintanilha/gatsby-transformer-ipynb": "^0.1.21",
"@researchgate/react-intersection-observer": "^1.3.5",
"bootstrap": "^5.0.0-beta2",
"gatsby": "^2.26.1",
"gatsby-plugin-react-helmet": "^3.10.0",
"gatsby-plugin-sass": "^3.2.0",
"gatsby-plugin-scroll-reveal": "^0.0.7",
"gatsby-source-filesystem": "^2.11.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^6.1.0",
Expand Down
1 change: 1 addition & 0 deletions src/assets/images/undraw_newspaper_k72w.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/Header/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

.header {
position: relative;
margin-top: 4rem;
width: 100%;
height: 100vh;
display: flex;
Expand All @@ -27,5 +28,6 @@
&__subtitle {
font-weight: 300;
color: darken($color: $orange-grey, $amount: 30%);
padding: 1rem;
}
}
4 changes: 2 additions & 2 deletions src/components/Header/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "./header.scss";
import HeaderImg from "../../assets/images/undraw_teacher_35j2.svg";

class Header extends Component {
render() {
render () {
return (
<header className="header">
<div className="container">
Expand All @@ -29,7 +29,7 @@ class Header extends Component {

<div className="col-md-6">
<img
src={HeaderImg}
src={this.props.headerImage || HeaderImg}
alt="Grupo de Estudos em NLP - UFFS"
className="header__image"
data-sal="zoom-out"
Expand Down
Empty file.
26 changes: 26 additions & 0 deletions src/pages/blog.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React, { Component } from "react"
import Header from "../components/Header"
import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
import MainLayout from "../layouts/MainLayout";
import NewImage from "../assets/images/undraw_newspaper_k72w.svg";

export default class IndexPage extends Component {
render() {
return (
<>
<MainLayout>
<Navbar />
<Header
title="Blog de notícias do grupo"
subtitle="Aqui você irá encontrar sínteses dos encontros semanais,
produções do grupo de estudo (resenhas, aplicações, apresentações) e
notícias recentes da área de NLP."
headerImage={NewImage}
/>
</MainLayout>
<Footer />
</>
)
}
}