Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Easy/MayureshSurveIssue4/Egptclose.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Easy/MayureshSurveIssue4/Egptcon.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Easy/MayureshSurveIssue4/Egptopen.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Easy/MayureshSurveIssue4/arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Easy/MayureshSurveIssue4/ebg3.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
87 changes: 87 additions & 0 deletions Easy/MayureshSurveIssue4/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>EGPT</title>
<meta name="description" content="EGPT AI Chat-Bot">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/jpeg" href="Egptcon.jpeg">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Marcellus&display=swap" rel="stylesheet">
<link rel="stylesheet" href="kemet.css">
</head>
<body>
<header>
<div class="headicons">
<img class="open" src="Egptopen.jpeg">
<h3>EGPT</h3>
</div>
<div class="headbuttons">
<button style="background-color: gray;" class="headbtn">Login</button>
<button style="background-color: rgb(46, 46, 46);;" class="headbtn">Sign Up</button>
</div>
</header>
<div class="sidebar">
<div class="list">
<div class="bar">
<li><img class="close" src="Egptclose.jpeg"></li>
<li><img class="barimg" src="search.png"></li>
</div>
<li>&#x132F9 EGPT</li>
<li>&#x1310C IRET</li>
<li>&#x13080 Explore</li>
<li>&#x131A3 My Projects</li>
</div>
</div>
<div class="main">
<h2 class="head">&#x132F9 What can I help with? &#x132F9</h2>
<div class="textbox">
<input class="text" type="text" placeholder="Ask EGPT Anything">
<div class="textbar">
<div class="chatbar">
<button class="icon">&#x1339B Attach</button>
<button onclick="toggle(this)" class="icon">&#x13080 Search</button>
<button onclick="toggle(this)" class="icon">&#x13184 Reason</button>
</div>
<button style="background-color: gray;" class="pbtn"><img src="voice.png">Voice</button>
</div>
</div>
<div class="options">

</div>
</div>
<script>

function toggle(button){
button.classList.toggle('select');
}

document.querySelector('.text').addEventListener('input', function() {
const inputvalue = document.querySelector('.text').value;
if(inputvalue !== "") {
document.querySelector('.pbtn').innerHTML = '<img src="arrow.png">';
document.querySelector('.pbtn').classList.add('switch');
}
else{
document.querySelector('.pbtn').innerHTML = '<img src="voice.png">Voice';
document.querySelector('.pbtn').classList.remove('switch');
}
})

const open = document.querySelector('.open');
const close = document.querySelector('.close');
const sidebar = document.querySelector('.sidebar');

open.addEventListener('click', ()=> {
sidebar.classList.add('slide');
})

close.addEventListener('click', ()=> {
sidebar.classList.remove('slide');
})

</script>
</body>
</html>
176 changes: 176 additions & 0 deletions Easy/MayureshSurveIssue4/kemet.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
*{
margin: 0;
font-family: 'Marcellus';
}

body{
background-image: url(ebg3.jpeg);
background-repeat: no-repeat;
background-size: cover;
width: 100vw;
height: 100vh;
overflow: hidden;
}

header{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
color: white;
padding: 2em;
}

.sidebar{
position: absolute;
color: white;
z-index: 1000;
top: 0;
height: 100vh;
width: 10em;
padding:2em;
background-color: rgb(46, 46, 46);
list-style: none;
transform: translateX(-100%);
transition: transform 0.75s ease-in-out;
}

.sidebar.slide{
transform: translateX(0%);
}

.list{
display: flex;
flex-direction: column;
justify-content: center;
gap: 3em;
}

.bar{
display: flex;
flex-direction: row;
gap: 3em;
}

.barimg, .close, .open{
width: 2em;
height: 2em;
border-radius: 2em;
border:2px solid white ;
background-color:gray;
}

.headicons, .headbuttons{
display: flex;
flex-direction: row;
gap:3em;
}

.headbtn{
width:5em;
outline: 2px solid white ;
}

.main{
height:100vh;
width: 100vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 1em;
color: white;
}

.head{
text-align: center;
font-size: 2em;
}

.textbox{
min-height: 6em;
height: auto;
max-width: 45em;
width: 90%;
background-color: rgb(46, 46, 46);
padding: 0.5em;
border-radius: 1em;
}

.text{
height: 3em;
width: 100%;
font-size: 1em;
background-color: rgb(46, 46, 46);
border: none;
outline: none;
color: white;
}
.icon, .pbtn, .headbtn{
background-color: rgb(46, 46, 46);
border-radius: 2em;
border: 1px solid gray;
font-size: 0.925em;
color: white;
padding: 0.5em;
}

.textbar{
display: flex;
justify-content: space-between;
align-items: center;
}
.pbtn img{
width: 1em;
height: 1em;
margin-right: 0.75em;
}

.pbtn{
margin-top: 1em;
}

.chatbar{
display: flex;
gap: 0.75em;
padding-bottom: 0.5em;
padding-top: 1.25em;
flex-direction: row;
}

.switch img{
background-color: gray;
width: 2em;
height: 2em;
display: block;
margin: 0;

}

.select{
background-color:rgb(152, 152, 33);
color: rgb(9, 8, 2);
}

@media(max-width:768px){

.main{
margin-top: 9.5em;
gap: 12.5em;
}

.textbox{
width: 100vw;
border-radius: 2em;
}

.text,.textbar{
margin-left: 1em;
margin-right: 1em;
}

.textbar{
margin-bottom: 2em;
}

}
Binary file added Easy/MayureshSurveIssue4/search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Easy/MayureshSurveIssue4/voice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.