Add user projects #156

Merged
YosephKS merged 2 commits from addUserProjects into main 2020-12-12 20:32:57 +01:00
3 changed files with 8 additions and 4 deletions

View File

@@ -173,7 +173,7 @@ const LandingSection = () => {
</button>
</div>
</div>
<div className="flex justify-center mt-64 pt-20 mb-20">
<div className="flex justify-center mt-64 pt-20 mb-32">
<div className="flex text-2xl text-gray-500">
Irev-Dev commented 2020-12-12 20:31:08 +01:00 (Migrated from github.com)
Review

I appreciate you keeping the over padding on the landing section the same 👍

I appreciate you keeping the over padding on the landing section the same 👍
See what other's have created
<Svg

View File

@@ -5,7 +5,7 @@ import ImageUploader from 'src/components/ImageUploader'
const PartsList = ({ parts }) => {
return (
<section className="max-w-6xl mx-auto mt-20">
<section className="max-w-6xl mx-auto mt-8">
<ul
className="grid gap-x-8 gap-y-12 items-center mx-4 relative"
style={{ gridTemplateColumns: 'repeat(auto-fit, minmax(16rem, 1fr))' }}

View File

@@ -2,12 +2,12 @@ import { useState, useEffect } from 'react'
import { useAuth } from '@redwoodjs/auth'
import { navigate, routes } from '@redwoodjs/router'
import Editor from 'rich-markdown-editor'
import ImageUploader from 'src/components/ImageUploader'
import Button from 'src/components/Button'
import ProfileTextInput from 'src/components/ProfileTextInput'
import PartsCell from 'src/components/PartsCell'
const UserProfile = ({ user, isEditable, loading, onSave, error }) => {
const UserProfile = ({ user, isEditable, loading, onSave, error, parts }) => {
const { currentUser } = useAuth()
const canEdit = currentUser?.sub === user.id
useEffect(() => {
@@ -91,6 +91,10 @@ const UserProfile = ({ user, isEditable, loading, onSave, error }) => {
/>
</div>
</div>
<div className="mt-10">
<h3 className="text-3xl text-gray-500 font-ropa-sans">Parts:</h3>
<PartsCell />
</div>
</section>
</>
)