Skip to content

Commit

Permalink
Merge pull request #84 from GauravGupta993/Branch1
Browse files Browse the repository at this point in the history
Worked on #42
  • Loading branch information
amrit03b authored Oct 31, 2023
2 parents dd4b49e + b632ccb commit 88ff9e0
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 8 deletions.
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,8 @@ <h5 class="modal-title">Privacy Policy</h5>
}
</script>
<script>
var validity = 0;
localStorage.setItem("storageName", validity);
const bodyWrap = document.querySelector('body');
const btnSign = document.querySelector('.btn-sign');
const btnCancel = document.querySelector('.btn-cancel');
Expand Down
2 changes: 2 additions & 0 deletions login.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@
const user = userCredential.user;
console.log(user);
window.location.assign("write.html");
var validity = 1;
localStorage.setItem("storageName", validity);
alert(user.email+" Login successfully!!!");
document.getElementById('logout').style.display = 'block';
// ...
Expand Down
11 changes: 10 additions & 1 deletion read.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="read.css">
</head>
<body>
<body onload="CheckValidity()">
<script>
function CheckValidity() {
if ((localStorage.getItem("storageName"))==0) {
// alert("Sign In through proper means instead of changing URL.");
let address=window.location.href;
window.location.href = address.replace('read','index');
}
}
</script>
<nav class="navbar bg-body-tertiary fixed-top pink-bg">
<div class="container-fluid d-flex justify-content-between align-items-center">
<a class="navbar-brand pink-text" href="index.html"><b>TravelTales:)</b></a>
Expand Down
14 changes: 8 additions & 6 deletions write.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@
font-size: 20px; /* Slightly bigger font size on click */
color: #C71585; /* Darker pink color on click */
}

.main-content{
background-image: url('images/writebg.jpg');
background-size: cover;
background-position: center;
}

/* Writing section styles */
.writing-section {
padding: 50px 0;
background-image: url('images/writebg.jpg');
background-size: cover;
background-position: center;
width: 60%;
height: 120vh;
}
Expand Down Expand Up @@ -88,9 +89,8 @@

/* Publishing options (same as before) */
.publishing-options {
background-color: #f1f1f1;
width: 40%;
max-height: 120vh;
height: 120vh;
padding: 70px 0;
overflow-y: scroll;
}
Expand All @@ -116,6 +116,8 @@
@media screen and (max-width: 800px) {
.writing-section {
width: 100%;
border-bottom: 5px solid white;

}
.publishing-options {
width: 100%;
Expand Down
11 changes: 10 additions & 1 deletion write.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,16 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/emojionearea/3.4.2/emojionearea.min.css">
</head>

<body>
<body onload="CheckValidity()">
<script>
function CheckValidity() {
if ((localStorage.getItem("storageName"))==0) {
// alert("Sign In through proper means instead of changing URL.");
let address=window.location.href;
window.location.href = address.replace('write','index');
}
}
</script>
<nav class="navbar bg-body-tertiary fixed-top pink-bg">
<div class="container-fluid d-flex justify-content-between align-items-center">
<a class="navbar-brand pink-text" href="index.html"><b>TravelTales:)</b></a>
Expand Down

0 comments on commit 88ff9e0

Please sign in to comment.