-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Dev Bootcamp spring 2024, week 12 - Project Collab - Vittoria & Sofia #44
Open
sofia32057
wants to merge
57
commits into
Technigo:main
Choose a base branch
from
sofia32057:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 56 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
b762647
First commit
sofia32057 2c28733
Edits to index
sofia32057 085a6e0
header
vittoriamatteoli cf46887
Merge branch 'header'
vittoriamatteoli f7080c3
Update - mounted components to App
sofia32057 44fa44d
Merge issues
sofia32057 f15bedc
Update - Basics done
sofia32057 dcda46d
Update - Basics done footer
sofia32057 95ae92d
Update - basics done
sofia32057 de746e4
Update - basic styling
sofia32057 2a32307
header complete
vittoriamatteoli 50e123b
merged conflict
vittoriamatteoli 9766d6a
changed svg name
vittoriamatteoli 8ac53cf
Update - smaller changes to accommodate desktop
sofia32057 3a8f897
Merge card carousel
sofia32057 118f6be
Update - layout changes to desktop
sofia32057 3330a3e
CTA done - to retouch
vittoriamatteoli 5289355
Update - Basics done
sofia32057 ad579a1
Rating section complete
vittoriamatteoli 6424623
added color login text
vittoriamatteoli 0bffa68
Merge branch 'CTA'
vittoriamatteoli 504444f
Merge branch 'USP'
vittoriamatteoli bab417f
Update - added fonts and switched colors to root variables
sofia32057 8ce4b1b
fixed buttons/logo
vittoriamatteoli 6c4369b
merging
vittoriamatteoli 0ff2ebf
fixed merging error
vittoriamatteoli 5c40202
small changes
vittoriamatteoli fe91fe5
changed header and login button
vittoriamatteoli ca8ffca
added animatedcards for desktop
vittoriamatteoli 77d6be0
slowed down animations
vittoriamatteoli e9a782e
fixed hero gap
vittoriamatteoli 9a939c6
added line in hero
vittoriamatteoli 7e60be8
changed size buttons CTA
vittoriamatteoli 04e3ae5
fixed icons on hover
vittoriamatteoli 3343ce2
changed icon
vittoriamatteoli bc3e028
removed margin in rating
vittoriamatteoli d2c558a
Update - switches breakpoint desktop and fixed smaller changes
sofia32057 517eccf
Update - desktop grid layout in footer
sofia32057 762dd87
correct gap carousel but not shifting
vittoriamatteoli 2e6cd82
fixed scroll bar
vittoriamatteoli 5de3cd6
fixed scrollbar on mobile too
vittoriamatteoli 659ed78
added general style with createGlobalStyle
vittoriamatteoli 0179614
correct style social icons
vittoriamatteoli c9fc0ea
animation
vittoriamatteoli efea1f0
centered carousel
vittoriamatteoli 747a337
set global style
vittoriamatteoli 6e84c61
back to index.css
vittoriamatteoli fe5286f
removed babel plugin
vittoriamatteoli cb3f9dc
carousel fixed
vittoriamatteoli fe42eed
babel install
vittoriamatteoli dd2757a
centered carousel desktop
vittoriamatteoli 42df6c8
removed overfloating
vittoriamatteoli 5dbfdc6
fixed burger menu
vittoriamatteoli 8aa628d
fixed padding header
vittoriamatteoli 3b56a8a
Update - minor responsivness, font sizes and switched hero image
sofia32057 34f5029
Update - README and ready for PR
sofia32057 07c526c
Update - change reguest fixes
sofia32057 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
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.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,15 @@ | ||
import { BrowserRouter, Route, Routes } from "react-router-dom"; | ||
import { Home } from "./components/Home"; | ||
|
||
export const App = () => { | ||
return <div>Find me in src/app.jsx!</div>; | ||
return ( | ||
<BrowserRouter> | ||
<Routes> | ||
<Route | ||
path="/" | ||
element={<Home />} | ||
/> | ||
</Routes> | ||
</BrowserRouter> | ||
); | ||
}; |
Binary file not shown.
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.
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,71 @@ | ||
import { useState } from 'react' | ||
import styled from 'styled-components' | ||
import { NavMenu } from './NavMenu' | ||
|
||
const StyledBurger = styled.div` | ||
padding: 40px 32px; | ||
width: 2rem; | ||
/* position: relative; */ | ||
top: 15px; | ||
left: 20px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
gap: 5px; | ||
z-index: 20; | ||
font-family: Optima; | ||
|
||
section { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
height: 32px; | ||
} | ||
|
||
div { | ||
width: 2rem; | ||
height: 3px; | ||
background-color: var(--10); | ||
border-radius: 10px; | ||
} | ||
|
||
img { | ||
width: 32px; | ||
height: 32px; | ||
position: absolute; | ||
right: 32px; | ||
top: 40px; | ||
} | ||
@media (min-width: 1024px) { | ||
display: none; | ||
} | ||
` | ||
|
||
export const Burger = () => { | ||
const [open, setOpen] = useState(false) // Initialize open state as false | ||
const toggleMenu = () => setOpen(!open) // Function to toggle the menu | ||
return ( | ||
<> | ||
<StyledBurger | ||
onClick={toggleMenu} | ||
aria-label="Toggle menu" | ||
aria-expanded={open} | ||
> | ||
{open ? null : ( | ||
<> | ||
<div /> | ||
<div /> | ||
<div /> | ||
</> | ||
)} | ||
{open ? ( | ||
<> | ||
<img onClick={toggleMenu} src="/Close.png" alt="Close-button" /> | ||
<h2>MENU</h2> | ||
</> | ||
) : null} | ||
</StyledBurger> | ||
<NavMenu open={open} /> | ||
</> | ||
) | ||
} |
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,132 @@ | ||
/* eslint-disable react/prop-types */ | ||
import styled, { css } from "styled-components"; | ||
import { useState } from "react"; | ||
|
||
const StyledButton = styled.button` | ||
border-radius: 10px; | ||
width: 70px; | ||
height: 44px; | ||
border: none; | ||
color: var(--text); | ||
font-family: Montserrat; | ||
font-size: 16px; | ||
line-height: 24px; /* 150% */ | ||
padding: 10px; | ||
justify-self: ${({ $header }) => ($header ? "flex-end" : null)}; | ||
|
||
@media (min-width: 744px) and (max-width: 1024px) { | ||
width: 112px; | ||
height: 48px; | ||
padding: 10px 30px; | ||
font-size: 18px; | ||
line-height: 28px; /* 155.556% */ | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
width: 138px; | ||
height: 52px; | ||
/* padding: 10px 30px; */ | ||
font-size: 25px; | ||
line-height: 32px; /* 128% */ | ||
|
||
&:hover { | ||
background: var(--hover-login-links); | ||
} | ||
} | ||
white-space: nowrap; | ||
background: ${props => | ||
props.active ? props.theme.activeColor : props.theme.defaultBackground}; | ||
|
||
${props => | ||
props.type === "green" && | ||
css` | ||
padding: 10px; | ||
background: ${props => | ||
props.active ? props.theme.activeGreenColor : "#465d4c"}; | ||
color: white; | ||
width: 135px; | ||
height: 44px; | ||
|
||
@media (min-width: 744px) and (max-width: 1024px) { | ||
width: 211px; | ||
height: 48px; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
width: 240px; | ||
height: 52px; | ||
padding: 10px 30px; | ||
&:hover { | ||
background: #2b4033; | ||
} | ||
} | ||
`} | ||
|
||
${props => | ||
props.type === "white" && | ||
css` | ||
background: white; | ||
border: 1px solid | ||
${props => (props.active ? props.theme.activeBorderColor : "#465d4c")}; | ||
color: ${props => | ||
props.active ? props.theme.activeTextColor : "#465d4c"}; | ||
width: 135px; | ||
height: 44px; | ||
padding: 10px; | ||
|
||
@media (min-width: 744px) and (max-width: 1024px) { | ||
width: 211px; | ||
height: 48px; | ||
} | ||
|
||
@media (min-width: 1024px) { | ||
width: 240px; | ||
height: 52px; | ||
padding: 10px 30px; | ||
|
||
&:hover { | ||
color: #2b4033; | ||
border: 1px solid #2b4033; | ||
background: white; | ||
} | ||
} | ||
`} | ||
`; | ||
|
||
export const Button = ({ type, $header }) => { | ||
const [active, setActive] = useState(false); | ||
|
||
const toggleActive = () => { | ||
setActive(!active); // Toggle the active state on click | ||
}; | ||
let buttonText = ""; | ||
switch (type) { | ||
case "green": | ||
buttonText = "Sign Up"; | ||
break; | ||
case "white": | ||
buttonText = "Book Meeting"; | ||
break; | ||
default: | ||
buttonText = "Login"; | ||
} | ||
return ( | ||
<> | ||
<StyledButton | ||
type={type} | ||
aria-pressed={active} | ||
active={active} | ||
onClick={toggleActive} | ||
$header={$header} | ||
theme={{ | ||
defaultBackground: "var(--10)", | ||
activeColor: "var(--onclick-login)", | ||
activeGreenColor: "var(--onclick-signup-book)", | ||
activeBorderColor: "var(--onclick-signup-book)", | ||
activeTextColor: "var(--onclick-signup-book)", | ||
}}> | ||
{buttonText} | ||
</StyledButton> | ||
</> | ||
); | ||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Thx about the reminder. I always forget to use aria-label.