Skip to content

Commit

Permalink
miniproject website template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nisheet-Patel committed Apr 27, 2024
1 parent 6812d19 commit 5db9dae
Show file tree
Hide file tree
Showing 5 changed files with 360 additions and 0 deletions.
47 changes: 47 additions & 0 deletions css/button.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
.Btn {
border: none;
border-radius: 50%;
width: 30px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
transition-duration: .4s;
cursor: pointer;
position: relative;
background-color: rgb(31, 31, 31);
overflow: hidden;
}

.svgIcon {
transition-duration: .3s;
}

.svgIcon path {
fill: white;
}

.text {
position: absolute;
color: rgb(255, 255, 255);
width: 120px;
font-weight: 600;
opacity: 0;
transition-duration: .4s;
}

.Btn:hover {
width: 110px;
transition-duration: .4s;
border-radius: 30px;
}

.Btn:hover .text {
opacity: 1;
transition-duration: .4s;
}

.Btn:hover .svgIcon {
opacity: 0;
transition-duration: .3s;
}
127 changes: 127 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
--bgcolor: #c4c1e0;
--white: #fafafa;
}


body {
display: flex;
flex-direction: column;
margin: auto;
background-color: var(--bgcolor);
width: 80vw;
height: 100vh;
font-family: "Montserrat", sans-serif;
}

header {
display: flex;
justify-content: space-between;
align-items: center;
flex: 0;
}

main{
flex: 1;
}

footer{
flex: 0;
margin-top: 1rem;
margin-bottom: 0.5rem;
}

a {
text-decoration: none;
color: black;
}

#logo {
margin-top: 1rem;
width: 15rem;
}

.tab-container {
display: flex;
flex-wrap: wrap;
gap: 1rem;
margin-top: 1rem;
}

.tab {
background-color: var(--white);
padding: 0.5rem 1.5rem;
border-radius: 0.5rem;
border-color: #7c73e6;
border-style: solid;
cursor: pointer;
text-wrap: nowrap;
}

.tab.active {
box-shadow: 4px 4px #7c73e6;
}

/* Projects */

.project-container {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}

.project {
width: 20rem;
background-color: var(--white);
padding: 0.5rem 1.5rem;
border-radius: 0.5rem;
border-color: #7c73e6;
border-style: solid;
cursor: pointer;
box-shadow: 0 0 0 0 #7c73e6;
transition: all 0.3s ease-in-out;
}


.project:hover {
transform: translateY(-4px) translateX(-2px);
box-shadow: 2px 5px 0 0 #7c73e6;
}


.project .title {
margin-bottom: 0.5rem;
margin-top: 0.5rem;
font-weight: 600;
font-size: large;
}

.project .description {
font-size: small;
margin-bottom: 1rem;
text-align: justify;
}

.project .footer {
display: flex;
justify-content: space-between;
}

.project .links {
display: flex;
gap: 0.5rem;
}

.project .developer {
font-weight: 300;
font-size: small;
}


@media only screen and (max-width: 600px) {
body {
width: 90vw;
}
}
53 changes: 53 additions & 0 deletions css/theme-switch.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
header .theme {
--bg-color: #fafafa;
--main-color: #aca5f3;
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
background-color: var(--bg-color);
border-radius: 100%;
border: 2px solid var(--main-color);
box-shadow: 4px 4px var(--main-color);
}

header .input {
cursor: pointer;
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
opacity: 0;
}

header .icon {
position: absolute;
top: calc(50% -13px);
left: calc(50% -13px);
width: 26px;
height: 26px;
}

header .icon.icon-moon {
fill: var(--main-color);
}

header .icon.icon-sun {
stroke: var(--main-color);
display: none;
}

header .input:checked~.icon.icon-sun {
display: block;
}

header .input:checked~.icon.icon-moon {
display: none;
}

header .theme:active {
box-shadow: 0px 0px var(--main-color);
transform: translate(3px, 3px);
}
25 changes: 25 additions & 0 deletions img/Mini projects logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5db9dae

Please sign in to comment.