-
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 #11 from Molaryy/feat/responsive
Feat/responsive
- Loading branch information
Showing
22 changed files
with
739 additions
and
422 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM golang:1.21.3-alpine | ||
FROM golang:1.21.3-alpine AS build | ||
WORKDIR /bective | ||
COPY go.mod go.sum ./ | ||
RUN go mod download | ||
COPY . ./ | ||
RUN CGO_ENABLED=0 GOOS=linux go build -o bective | ||
COPY . . | ||
RUN go build -o bective | ||
EXPOSE 8080 | ||
CMD ["./bective"] |
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.
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,69 @@ | ||
.time-form { | ||
background-color: #ffffff; | ||
border-radius: 10px; | ||
width: 390px; | ||
height: 400px; | ||
margin-top: 10rem; | ||
} | ||
|
||
.timer { | ||
display: flex; | ||
justify-content: space-around; | ||
} | ||
|
||
.working { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
.work-time { | ||
.work-time-input { | ||
font-size: 20px; | ||
text-align: center; | ||
align-items: center; | ||
height: 50px; | ||
width: 40px; | ||
border-radius: 5px; | ||
} | ||
} | ||
} | ||
|
||
.pause { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
.pause-time { | ||
.pause-time-input { | ||
font-size: 20px; | ||
text-align: center; | ||
height: 50px; | ||
width: 40px; | ||
border-radius: 5px; | ||
} | ||
} | ||
} | ||
|
||
.buttons-time-form { | ||
margin-top: 12rem; | ||
display: flex; | ||
justify-content: space-around; | ||
|
||
.btn-form { | ||
color: white; | ||
background-color: #575656; | ||
cursor: pointer; | ||
height: 40px; | ||
border-radius: 10px; | ||
border: none; | ||
text-align: center; | ||
transition: all 0.15s ease 0s; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
.btn-form:hover { | ||
box-shadow: 0 5px 5px; | ||
color: black; | ||
background-color: white; | ||
} | ||
} |
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 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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
nav { | ||
background-color: #ffffff; | ||
display: grid; | ||
grid-template-columns: 50% 45%; | ||
align-items: center; | ||
width: 100%; | ||
height: 40px; | ||
transition: all 0.3s ease-in-out; | ||
|
||
|
||
ul { | ||
display: flex; | ||
justify-content: space-around; | ||
align-items: center; | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
transition: all 0.3s ease-in-out; | ||
li { | ||
cursor: pointer; | ||
border-radius: 15px; | ||
transition: all 0.15s ease-in-out 0s; | ||
margin-right: 4rem; | ||
} | ||
} | ||
|
||
.bective-logo { | ||
border-radius: 50%; | ||
width: 35px; | ||
} | ||
|
||
.toggle-button { | ||
position: absolute; | ||
display: none; | ||
width: 35px; | ||
height: 40px; | ||
right: 0.5rem; | ||
cursor: pointer; | ||
} | ||
|
||
@media (max-width: 680px) { | ||
.toggle-button { | ||
display: flex; | ||
margin-right: 1rem; | ||
} | ||
|
||
.menu-open { | ||
font-size: 20px; | ||
height: 200px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
position: absolute; | ||
top: 40px; | ||
background-color: #ffffff; | ||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | ||
li { | ||
margin-left: 2rem; | ||
} | ||
} | ||
ul { | ||
display: none; | ||
} | ||
} | ||
} |
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,35 @@ | ||
import './NavBar.scss'; | ||
import { useState } from 'react'; | ||
|
||
const Navbar = () => { | ||
const [isMenuOpen, setMenuOpen] = useState(false); | ||
const [menuWidth, setMenuWidth] = useState('0'); | ||
|
||
const toggleMenu = () => { | ||
setMenuOpen(!isMenuOpen); | ||
setMenuWidth(menuWidth === '0' ? '100%' : '0'); | ||
}; | ||
|
||
return ( | ||
<nav> | ||
<img src={'/assets/bective-logo.png'} alt={'bective logo'} className={'bective-logo'} /> | ||
<img | ||
src={'/assets/menu.png'} | ||
className={'toggle-button'} | ||
alt={'toggle-menu'} | ||
onClick={toggleMenu} | ||
/> | ||
<ul | ||
className={isMenuOpen ? 'menu-open' : ''} | ||
style={{ | ||
width: menuWidth, | ||
}} | ||
> | ||
<li>Home</li> | ||
<li>Connect</li> | ||
<li>About</li> | ||
</ul> | ||
</nav> | ||
); | ||
}; | ||
export default Navbar; |
Oops, something went wrong.
cbe99b9
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:
bective-vercel – ./frontend
bective-vercel-git-master-molaryys-projects.vercel.app
bective-vercel-molaryys-projects.vercel.app
bective-vercel.vercel.app