diff --git a/api/database/migrations/20210212031418-add-api-properties.js b/api/database/migrations/20210212031418-add-api-properties.js new file mode 100644 index 00000000..a6343101 --- /dev/null +++ b/api/database/migrations/20210212031418-add-api-properties.js @@ -0,0 +1,21 @@ +"use strict"; + +module.exports = { + up: (queryInterface, Sequelize) => { + return Promise.all([ + queryInterface.addColumn("Apis", "image_url", { + type: Sequelize.STRING + }), + queryInterface.addColumn("Apis", "slack_channel", { + type: Sequelize.STRING + }), + ]); + }, + + down: (queryInterface, Sequelize) => { + return Promise.all([ + queryInterface.removeColumn("Apis", "image_url"), + queryInterface.removeColumn("Apis", "slack_channel"), + ]); + } +}; diff --git a/api/models/apis.js b/api/models/apis.js index 371a86c7..e276742c 100644 --- a/api/models/apis.js +++ b/api/models/apis.js @@ -14,7 +14,9 @@ module.exports = (sequelize, DataTypes) => { }, name: DataTypes.STRING, description: DataTypes.STRING, - major_event: DataTypes.INTEGER + major_event: DataTypes.INTEGER, + image_url: DataTypes.STRING, + slack_channel: DataTypes.STRING, }, { timestamps: false diff --git a/components/hackerDashboard/Resources.tsx b/components/hackerDashboard/Resources.tsx new file mode 100644 index 00000000..28d17b3b --- /dev/null +++ b/components/hackerDashboard/Resources.tsx @@ -0,0 +1,86 @@ +import styled from "styled-components"; +import Image from "next/image"; + +import Logo from "@/assets/hackscFox.png"; + +// Layout +import { Navbar, Sidebar, Footer, Header } from "./layout"; +import WidgetFrame from "./HackerWidgetFrame"; + +// Widgets +import { ResourcesWidget } from "./widgets"; + +type HackathonConstant = { + id: number; + name: string; + boolean: boolean; + date: string; + type: any; +}; + +type Props = { + profile: Profile; + events: Array; + hackathonConstants: Array; + resources: Array; +}; + +const Resources = ({ profile, events, hackathonConstants, resources }: Props) => { + return ( + + + +
+ +

HackSC Resources + APIs

+

+ This is a collection of resources you can use for your project provided by our sponsors! +

+ + } + /> + } /> + + +