From 6628bd2f99312c9dd25823d8ecc7fcd76a037213 Mon Sep 17 00:00:00 2001 From: Samuel Torres Date: Thu, 29 Aug 2019 15:20:03 -0400 Subject: [PATCH 1/5] Mobile styles added, push to pull --- expat-journal/src/components/DragNDrop.css | 31 +++++++++++++++++++++- expat-journal/src/components/NewPost.js | 9 +++---- 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/expat-journal/src/components/DragNDrop.css b/expat-journal/src/components/DragNDrop.css index 03de3a3..b775f28 100644 --- a/expat-journal/src/components/DragNDrop.css +++ b/expat-journal/src/components/DragNDrop.css @@ -1,3 +1,7 @@ +* { + font-family: 'Poppins, sans-serif;' +} + .pageContainer{ height: 40rem; } @@ -25,6 +29,7 @@ .imgInput{ width: 10rem;; border-radius: 25px; + margin-bottom: 1rem; } .dragNDrop{ @@ -62,14 +67,38 @@ } -.l .form-group{ margin-top: 3rem; } +.cancelbtn{ + display: none; +} + .btnContainer{ display: flex; justify-content: center; } +@media only screen and (max-width: 600px){ + .centerContainer{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + } + + .forms{ + padding-top: 0rem; + } + + .cancelbtn { + display: flex; + margin-right: 4rem; + text-decoration: none; + color: black; + } + +} + diff --git a/expat-journal/src/components/NewPost.js b/expat-journal/src/components/NewPost.js index 1071390..babc67a 100644 --- a/expat-journal/src/components/NewPost.js +++ b/expat-journal/src/components/NewPost.js @@ -1,5 +1,6 @@ import React, { useCallback, useContext, useState } from "react"; import { UserContext } from "../contexts/UserContext"; +import { Link } from 'react-router-dom'; import "./DragNDrop.css"; export default function ImageUpload() { @@ -53,7 +54,6 @@ export default function ImageUpload() { src="images/uploadButton.png" alt="This is an Upload Button"/>