-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from guicoelhodev/develop
Create posts to show into Home page
- Loading branch information
Showing
26 changed files
with
909 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { darkTheme } from '@style/theme'; | ||
import React, { MouseEvent, ReactNode } from 'react'; | ||
import * as S from './style'; | ||
|
||
export interface PropsBtn { | ||
color?: keyof typeof darkTheme; | ||
bg?: string; | ||
radius?: string; | ||
svgDirection?: 'left' | 'right'; | ||
svgColor?: keyof typeof darkTheme; | ||
borderColor?: string; | ||
boxShadow?: string; | ||
} | ||
|
||
interface IButton extends PropsBtn { | ||
children: ReactNode; | ||
onClick: (e: MouseEvent<HTMLButtonElement>) => void; | ||
} | ||
|
||
export const Button: React.FC<IButton> = (props) => { | ||
return ( | ||
<S.Container {...props} onClick={props.onClick}> | ||
{props.children} | ||
</S.Container> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import styled from 'styled-components'; | ||
import { PropsBtn } from '.'; | ||
|
||
export const Container = styled.button<PropsBtn>` | ||
height: 100%; | ||
cursor: pointer; | ||
padding: 0.3rem 0.6rem; | ||
background: ${({ bg, theme }) => (bg ? bg : theme.primaryColor)}; | ||
color: ${({ color, theme }) => (color ? theme[color] : '#000')}; | ||
box-shadow: ${({ boxShadow }) => boxShadow}; | ||
border-radius: ${({ radius }) => (radius ? radius : '30px')}; | ||
display: flex; | ||
align-items: center; | ||
border: 1px solid ${({ borderColor, bg }) => (borderColor ? borderColor : bg)}; | ||
svg { | ||
width: 20px; | ||
height: 20px; | ||
fill: ${({ svgColor, theme }) => (svgColor ? theme[svgColor] : '#000')}; | ||
} | ||
p { | ||
color: inherit; | ||
margin-left: ${({ svgDirection }) => | ||
svgDirection === 'left' ? '10px' : 0}; | ||
margin-right: ${({ svgDirection }) => | ||
svgDirection === 'right' ? '10px' : 0}; | ||
font-size: 1rem; | ||
font-family: 'Montserrat', sans-serif; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
import { NextPage } from 'next'; | ||
import Head from 'next/head'; | ||
import Image from 'next/image'; | ||
import { useContext } from 'react'; | ||
import { IThemeContext, ThemeContext } from '../../context/theme'; | ||
import { BsFillSunFill, BsFillMoonFill } from 'react-icons/bs'; | ||
import Figma from '../../assets/svg/figma_logo.png'; | ||
|
||
import * as S from './style'; | ||
import { NextPageAuthenticated } from '@auth'; | ||
import Link from 'next/link'; | ||
import { Layout } from '@components/UI/Layout'; | ||
import { Chat } from '@components/FC/Chat'; | ||
|
||
const Advice: NextPageAuthenticated = () => { | ||
const { theme, themeToggler } = useContext(ThemeContext); | ||
|
||
return ( | ||
<Layout> | ||
<Chat /> | ||
<S.Container> | ||
<Head> | ||
<title>Social Dev | Advice</title> | ||
</Head> | ||
|
||
<S.AdviceContainer> | ||
<h1>Calm down</h1> | ||
|
||
<S.ToggleTheme> | ||
<button onClick={() => themeToggler()}> | ||
{theme === 'light' ? <BsFillSunFill /> : <BsFillMoonFill />} | ||
</button> | ||
</S.ToggleTheme> | ||
<h2> | ||
We are working hard to create a first version of social dev app | ||
</h2> | ||
|
||
<S.Section> | ||
<p>But..</p> | ||
<span> You can see our figma UI design, to kill the curiosity</span> | ||
|
||
<article> | ||
<S.FigmaButton> | ||
<a | ||
href="https://www.figma.com/file/aM023hg9G2bOPsLHfGUSaW/Social-dev?node-id=1%3A672" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<Image height={25} src={Figma} alt="figma logo content" /> | ||
<p>Check figma project</p> | ||
</a> | ||
</S.FigmaButton> | ||
</article> | ||
</S.Section> | ||
<Image | ||
alt="confused anime girl gif" | ||
className="confused-girl" | ||
width={200} | ||
height={200} | ||
src={'https://media.tenor.com/zVtSqLENqIIAAAAj/jinx-flipzflops.gif'} | ||
/> | ||
|
||
<Link href="/profile">Perfil pessoal</Link> | ||
</S.AdviceContainer> | ||
</S.Container> | ||
</Layout> | ||
); | ||
}; | ||
|
||
export default Advice; | ||
|
||
Advice.auth = true; |
Oops, something went wrong.
5f89703
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
social-dev – ./
social-dev-sandy.vercel.app
social-dev-guicoelho-s.vercel.app
social-dev-git-main-guicoelho-s.vercel.app