Skip to content

Commit

Permalink
Modified the ui of the contact page and set the minimum width of the …
Browse files Browse the repository at this point in the history
…contact page form to be 300px (#123)
  • Loading branch information
Niharika0104 authored Jan 22, 2024
1 parent 2aad343 commit cd316e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
10 changes: 5 additions & 5 deletions contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,28 @@ <h2 class="navbar-header">
<div class="container categories-heading">
<!-- <span style="color: #ffc400;">Contact Us </span><br> -->
</div>
<div class="modal-box" style="margin-top: -1rem;">
<div class="modal-box" style="margin-top: -1rem; min-width: 300px;">
<img class="banner-img-contact" src="homepage/contact4.svg"></img>

<form class='modal-div' action="https://formspree.io/f/xzbnpqae" method="POST">

<p class='contact-subheader'>Get In Touch</p>
<div class='input-contact-flexbox'>
<div style="margin:3vh 4vh">
<div>
<div style="margin:3vh 4vh ;display: block;">
<label class='input-header'>First Name</label>
<input class='input-box' name="First Name" style="width:100%; border-radius: none;" type="text"
placeholder='Shwet' id="FNAME" required></input>

</div>

<div style="margin:3vh 4vh">
<div style="margin:3vh 4vh;display: block;">
<label class='input-header'>Last Name</label>
<input class='input-box' name="Last Name" style="width:100%" type="text" placeholder='Khatri'
id="LNAME"></input>

</div>
</div>
<div class='input-contact-flexbox'>
<div >
<div style="margin:3vh 4vh">
<label class='input-header'>Email</label>
<input class='input-box' name="Email" style="width:100%" type="text" placeholder='[email protected]'
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
<span class="icon-bar"></span>
</button>
</div>

<div class="max-lg-display">
<div class="collapse navbar-collapse" id="collapsable-nav">
<ul id="nav-list" class="nav navbar-nav navbar-right">
Expand Down
3 changes: 1 addition & 2 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ const initSlider = () => {
let maxScrollLeft = imageList.scrollWidth - imageList.clientWidth;

const scrollAmount = imageList.clientWidth;

const handleSlideButtons = () => {
const handleSlideButtons = () => {
slideButtons[0].style.visibility = imageList.scrollLeft <= 0 ? "hidden" : "visible";
slideButtons[1].style.visibility = imageList.scrollLeft >= maxScrollLeft ? "hidden" : "visible";
};
Expand Down
1 change: 1 addition & 0 deletions swetify.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ body {

font-size: 14px;
}

#cont2 h1{
font-size: 60px;
color: #ffc400;
Expand Down
8 changes: 8 additions & 0 deletions swetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ const jsonPaths = [
'./playlists/sonusongs.json',
'./playlists/shreyasongs.json',
];
function toggleNavbar() {
var navbar = document.getElementById("navbar");
if (navbar.style.left === "0px") {
navbar.style.left = "-250px";
} else {
navbar.style.left = "0px";
}
}

let globalSong, allsongs;
const fetchData = async (path) => {
Expand Down

0 comments on commit cd316e4

Please sign in to comment.