-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #252 from universi-me/feat#246/editar-criar-conteu…
…dos-materiais FEAT #246 & CHANGE #238: Editar e criar Conteúdos e Materiais & Mudança de design em tela de grupo e em header --------- Co-authored-by: Lucas Perônico Barbotin <[email protected]>
- Loading branch information
Showing
46 changed files
with
1,694 additions
and
253 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
.action-button-container{ | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: var(--primary-color); | ||
border-radius: 0.5rem; | ||
color: var(--font-color-v1); | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
cursor: pointer; | ||
|
||
i{ | ||
padding: 2px; | ||
font-size: larger; | ||
} | ||
|
||
.action-button-name{ | ||
text-align: center; | ||
padding: 0.5rem; | ||
} | ||
} |
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,25 @@ | ||
import { HTMLAttributes } from "react" | ||
import "./ActionButton.less" | ||
|
||
export interface ActionButtonProps{ | ||
name : string | ||
buttonProps?: HTMLAttributes<HTMLDivElement>; | ||
} | ||
|
||
export function ActionButton(props : ActionButtonProps){ | ||
const className = ["action-button-container", props.buttonProps?.className] | ||
.filter(c => !!c && c.length > 0) | ||
.join(" "); | ||
|
||
|
||
return( | ||
<div {...props.buttonProps} className={className}> | ||
<i className="bi bi-plus"></i> | ||
<div className="action-button-name"> | ||
{props.name} | ||
</div> | ||
</div> | ||
) | ||
|
||
|
||
} |
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,37 @@ | ||
|
||
#filter-wrapper { | ||
border-radius: .5rem; | ||
border: 2px solid var(--primary-color); | ||
outline: 0px solid var(--primary-color); | ||
|
||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
padding: .25em; | ||
|
||
color: var(--primary-color); | ||
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25); | ||
width: 16.5rem; | ||
|
||
.filter-icon { | ||
margin-left: .15em; | ||
margin-right: .5em; | ||
width: 4rem; | ||
} | ||
|
||
.filter-input { | ||
border: none; | ||
background-color: transparent; | ||
outline: none; | ||
|
||
color: var(--primary-color); | ||
font-weight: var(--font-weight-default); | ||
|
||
width: 25em; | ||
|
||
&::placeholder { | ||
color: inherit; | ||
opacity: 50%; | ||
} | ||
} | ||
} |
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,21 @@ | ||
|
||
import { setStateAsValue } from "@/utils/tsxUtils"; | ||
import "./Filter.less" | ||
|
||
interface FilterProps{ | ||
setter: React.Dispatch<React.SetStateAction<string>>, | ||
placeholderMessage : string | ||
} | ||
|
||
export function Filter({setter, placeholderMessage} : FilterProps){ | ||
|
||
return( | ||
<div id="filter-wrapper"> | ||
<i className="bi bi-search filter-icon"/> | ||
<input type="search" name="filter-groups" id="filter-groups" className="filter-input" | ||
onChange={setStateAsValue(setter)} placeholder={placeholderMessage} | ||
/> | ||
</div> | ||
) | ||
|
||
} |
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,13 @@ | ||
export interface TabButtonProps{ | ||
executeFunction: () => void, | ||
text : string | ||
|
||
} | ||
|
||
export function GroupTabButton({executeFunction, text} : TabButtonProps){ | ||
|
||
return( | ||
<></> | ||
) | ||
|
||
} |
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
Oops, something went wrong.