diff --git a/package.json b/package.json index 142486f..ffd540b 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "prop-types": "^15.7.2", "query-string": "^6.9.0", "react": "^16.12.0", + "react-countup": "^4.3.3", "react-dom": "^16.12.0", "react-helmet": "^5.2.1", "react-paginate": "^6.3.2", diff --git a/src/components/layout.js b/src/components/layout.js index f83e167..838beac 100644 --- a/src/components/layout.js +++ b/src/components/layout.js @@ -19,15 +19,11 @@ export const Navbar = props => { const content = [ { li: "Our Databases", - link: "/", - }, - { - li: "About", - link: "/", + link: "/databases", }, { li: "Contact", - link: "/", + externalLink: "https://platform.x5gon.org/team", }, ] @@ -75,9 +71,15 @@ export const Navbar = props => { {content.map((li, index) => { return (
  • - - {li.li} - + {li.link ? ( + + {li.li} + + ) : ( + + {li.li} + + )}
  • ) })} @@ -86,186 +88,3 @@ export const Navbar = props => { ) } - -export const Footer = () => { - const contents = { - "GO-TO": [ - { - page: "Products", - link: "/#products", - }, - { - page: "Join", - link: "/join", - }, - { - page: "Policy", - link: "/policy", - }, - { - page: "Team", - link: "/team", - }, - ], - PRODUCTS: [ - { - page: "recommend", - link: "/products/recommend", - }, - { - page: "analytics", - link: "/products/analytics", - }, - { - page: "discovery", - link: "/products/discovery", - }, - { - page: "translate", - link: "/products/translate", - }, - { - page: "connect", - link: "/products/connect", - }, - { - page: "feed", - link: "/products/feed", - }, - ], - CONTACT: [ - { - page: "General Enquiries", - link: "mailto:info@x5gon.org", - }, - { - page: "Partnering Projects", - link: "mailto:partnering@x5gon.org", - }, - { - page: "Project Coordination", - link: "mailto:admin@x5gon.org", - }, - { - page: "Press Enquiries", - link: "mailto:press@x5gon.org", - }, - ], - SUPPORT: [ - { - page: "Github Repository", - externalLink: "https://github.com/JozefStefanInstitute/x5gon", - }, - /* { - page: 'Cookies Subpage', - link: 'Cookies Subpage' - }, */ - { - page: "Documentation", - externalLink: "/files/x5gon-docs.pdf", - }, - { - page: "Privacy & policy", - link: "/privacy", - }, - ], - } - const UL = name => { - name = name.name - const style = "d-block footer-li-text" - return ( -
    -

    - {name} -

    - {contents[name].map((object, index) => { - if (object.externalLink) { - return ( - - {object.page} - - ) - } else if (name !== "CONTACT") { - return ( - - {object.page} - - ) - } else { - return ( - - {object.page} - - ) - } - })} -
    - ) - } - return ( -
    -
    -
    - - logo - -
    -
    -
    -
      -
        -
          -
            -
            -
            -
            - flag -
            -
            -

            - This project has received funding from the European Union’s - Horizon new policy 2020 research and innovation programme under - grant agreement No 761758. -

            -
            -
            -
            -
            -
            - ) -} diff --git a/src/pages/databases.js b/src/pages/databases.js index 8095e8a..4402f0d 100644 --- a/src/pages/databases.js +++ b/src/pages/databases.js @@ -4,45 +4,109 @@ import { Layout, Navbar } from "../components/layout" import list from "../images/icons/list.svg" import nantes from "../images/nantes.png" +import CountUp from "react-countup" + const Provider = provider => ( -
            -
            - list -
            +
            -

            {provider.provider}

            -

            1260 Materials

            + +

            {provider.provider.name}

            +
            +

            {provider.provider.number_materials} Materials

            -
            - list +
            + list
            ) const providers = [ - "Université de Nantes", - "nantes", - "farewell", - "data", - "through", - "api", + { + name: "Videolectures.NET", + link: "http://videolectures.net/", + number_materials: 1260, + }, + { + name: "UNIVERSITAT POLITÈCNICA DE VALÈNCIA", + link: "https://media.upv.es", + number_materials: 1100, + }, ] +const Stats = () => { + const stats = [ + { + name: "OER Materials", + value: 118, + suffix: "k", + }, + { + name: "User Activities", + value: 10.9, + suffix: "M", + }, + { + name: "Unique Users", + value: 2.25, + suffix: "M", + }, + ] + return ( +
            + {stats.map((stat, index) => { + return ( +
            +
            +

            + +

            +

            + {stat.name} +

            +
            +
            + ) + })} +
            + ) +} + const repos = () => (
            -
            -

            CONNECTED DATABASES

            -

            Connected Databases

            -

            - Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras sit amet - pretium ipsum. -

            -
            - {providers.map(item => ( - - ))} +
            +
            +

            Database Statistics

            + +

            + The basic X5GON database statistics - showing the number of OER + materials, user activity data (visits) and number of unique users + that accessed the registered OER repositories in the X5GON network. +

            +
            + +
            +

            Connected providers

            +
            + {providers.map(item => ( + + ))} +
            +

            + Check statistics about your database{" "} + + here + + . +

            diff --git a/src/pages/index.js b/src/pages/index.js index b24a947..5c40b07 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -86,9 +86,45 @@ const IndexPage = () => { /*eslint-enable */ } + const About = () => { + return ( +
            +

            + The material search enables anyone to search through the indexed OER + materials that are connected in our network via our Connect service. + The material search functionality is cross-lingual and functions as a + Recommendation engine. +

            +

            Technical description

            +

            + The materials shown currently are text, video and audio. They are + enriched them through a process called Wikification and stored into a + database that contains data about user activities on the OER + repositories that integrated the Connect Service, a library developed + for acquiring behavior data.{" "} +

            +

            + The platform consists of four major components – the database, + ingesting and processing pipeline, services and platform API – each + employed to perform a separate task. The platform is able to process + three types of OER materials: text, video and audio. In addition, it + enriches them through a process called Wikification. The processed + materials are stored into the database. The database also contains + data about user activities on the OER repositories that integrated the + X5GON Connect Service, a library developed for acquiring behaviour + data. The database is accessed by the different services developed + within the project – the recommender engine, the quality assurance + tool and the learning analytics tool – which can be accessed through + the platform API. +

            +
            + ) + } + return (
            + ) }