Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
Saddlemountain Page
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Verónica Silva
Saddlemountain Page
Commits
6cac9a62
Commit
6cac9a62
authored
Nov 25, 2021
by
Verónica Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Customizing width of ContactButton
parent
b4a87eea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
17 deletions
+18
-17
src/assets/styles/myTheme.js
src/assets/styles/myTheme.js
+6
-5
src/components/ContactButton.jsx
src/components/ContactButton.jsx
+6
-6
src/components/FormFooter.jsx
src/components/FormFooter.jsx
+2
-2
src/components/Hero.jsx
src/components/Hero.jsx
+4
-4
No files found.
src/assets/styles/myTheme.js
View file @
6cac9a62
...
...
@@ -5,16 +5,17 @@ const theme = createTheme({
palette
:
{
primary
:
{
main
:
"
#074B6B
"
,
light
:
lightBlue
[
900
]
,
dark
:
"
#0
7415C
"
,
light
:
"
#437799
"
,
dark
:
"
#0
02340
"
,
contrastText
:
"
#fff
"
,
text
:
"
#404040
"
,
},
secondary
:
{
main
:
cyan
[
400
]
,
light
:
cyan
[
300
]
,
dark
:
cyan
[
700
]
,
main
:
"
#26c6da
"
,
light
:
"
#6ff9ff
"
,
dark
:
"
#0095a8
"
,
contrastText
:
"
#fff
"
,
text
:
"
#002340
"
},
}
})
...
...
src/components/ContactButton.jsx
View file @
6cac9a62
...
...
@@ -6,12 +6,12 @@ import { styled } from "@mui/material/styles"
import
Button
from
"
@mui/material/Button
"
import
ArrowForwardIosRoundedIcon
from
"
@mui/icons-material/ArrowForwardIosRounded
"
import
theme
from
"
.
/palett
e
"
import
theme
from
"
.
./assets/styles/myThem
e
"
const
myPalette
=
theme
.
palette
const
CustomButton
=
styled
(
Button
)(({
theme
})
=>
({
color
:
`
${
myPalette
.
secondary
.
contrastT
ext
}
!important`
,
color
:
`
${
myPalette
.
secondary
.
t
ext
}
!important`
,
backgroundColor
:
`
${
myPalette
.
secondary
.
main
}
!important`
,
paddingTop
:
"
5px !important
"
,
paddingBottom
:
"
5px !important
"
,
...
...
@@ -22,16 +22,16 @@ const CustomButton = styled(Button)(({ theme }) => ({
}))
ContactButton
.
propTypes
=
{
children
:
PropTypes
.
element
.
isRequired
,
children
:
PropTypes
.
string
.
isRequired
,
width
:
PropTypes
.
string
,
}
function
ContactButton
({
children
})
{
function
ContactButton
({
children
,
width
})
{
return
(
<
CustomButton
variant=
"contained"
type=
"submit"
fullWidth
sx=
{
{
mt
:
1
,
mb
:
2
}
}
sx=
{
{
mt
:
1
,
mb
:
2
,
width
:
width
}
}
endIcon=
{
<
ArrowForwardIosRoundedIcon
/>
}
>
{
children
}
...
...
src/components/FormFooter.jsx
View file @
6cac9a62
...
...
@@ -84,8 +84,8 @@ function FormFooter() {
style
:
{
color
:
myPalette
.
primary
.
contrastText
},
}
}
/>
<
ContactButton
>
Cont
actar
<
ContactButton
width=
"100%"
>
Cont
áctanos
</
ContactButton
>
</
Box
>
)
...
...
src/components/Hero.jsx
View file @
6cac9a62
...
...
@@ -20,7 +20,6 @@ const useStyles = makeStyles((theme) => ({
flexDirection
:
"
column
"
,
justifyContent
:
"
center
"
,
alignItems
:
"
flex-end
"
,
color
:
"
#ffffff
"
,
backgroundImage
:
`url(
${
HeroBg
}
)`
,
position
:
"
relative
"
,
backgroundSize
:
"
cover
"
,
...
...
@@ -44,13 +43,14 @@ function Banner() {
align=
"right"
sx=
{
{
width
:
"
50%
"
,
mb
:
4
mb
:
4
,
color
:
"
#ffffff
"
}
}
>
Ayudamos a que las Empresas operen
<
span
className=
{
classes
.
highlighter
}
>
digitalmente
</
span
>
, cumplan con las regulaciones, y
<
span
className=
{
classes
.
highlighter
}
>
crezcan
</
span
>
sin aumentar personal
</
Typography
>
<
ContactButton
>
Cont
actar
<
ContactButton
width=
"180px"
>
Cont
áctanos
</
ContactButton
>
</
Box
>
</>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment