Skip to content

A Vanilla PortFolio Site #352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions Portfolio
Submodule Portfolio added at 8aca79
233 changes: 233 additions & 0 deletions Project Mysuru/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
/*Author URL: https://github.com/PrinceMayur007/Mysuru
License: MIT License
License URL: https://github.com/PrinceMayur007/Mysuru
--*/
*{
margin:0;
padding: 0;
box-sizing: border-box;
}
.container{
width:1170px;
padding: 0 15px;
margin: 0 auto;
}
a{
text-decoration: none;
color: white;
}
header{
background: url("../images/mysore-palace-city-1.jpg");
height: 657px;
background-size: cover;
/*
-ms-background-position-x: center;
-ms-background-position-y: bottom;
*/
background-position: center bottom;
}
.logo{
width: 124px;
}
nav{
display: flex;
justify-content: space-between;
padding: 30px 40px;
}
.nav-menu{
list-style: none;
}
.nav-menu li{
display: inline-block;
font-size: 15px;
text-transform: uppercase;
font-family: 'Oswald', sans-serif;
padding-top: 20px;
padding-left: 10px;
padding-right: 10px;
}
.nav-menu li a:hover{
color: #edc951;
transition: all 0.3s ease-in-out;
}
.header-title{
text-align: center;
}
.title-1{
color: #edc951;
font-family: 'Raleway', sans-serif;
/*
color: white;
font-family: 'Raleway', sans-serif;
*/
padding-top: 290px;
font-size: 57px;
}
.title-2{
color: white;
font-family: 'Raleway', sans-serif;
/*
color: #f08730;
font-family: 'Rochester', cursive;
*/
font-size: 20px;
letter-spacing: 6px;
}

.search{
margin-left: 25px
}
/**********************************Discover Section*******************************************/

.discover-section{
background-color: #F0F0F0;
display: flex;
justify-content: center;
padding: 90px;
}

.card{
height: 360px;
width: 240px;

margin-left: 20px;
margin-right: 20px;
text-align: center;
}


.card-1-h1{
/*color: #edc951;*/
font-family: 'Great Vibes', sans-serif;
font-size: 40px;
letter-spacing: 3px;
padding-top: 90px;


background: -webkit-linear-gradient(top, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
/*
background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C );
background: -webkit-linear-gradient(#eee,#edc951);
*/
}

.card-1-border{
border: 3px solid #f08730;
position: relative;
}

.border-overlay{
background-color: #fff;
position: absolute;
right: 20px;
top: 20px;
height: 100%;
width: 100%;
-webkit-box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
-moz-box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
}

.card-2{
background-image: url("../images/namdroling.jpg");
background-size: cover;
margin-top: -35px;
-webkit-box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
-moz-box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
}

.card-3{
background-image: url("../images/brindavan_garden.jpg");
background-size: cover;
-webkit-box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
-moz-box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);
box-shadow: -3px 3px 30px 2px rgba(0,0,0,0.75);

}

/*-- back to top --*/
.cd-top {
display: inline-block;
height: 40px;
width: 40px;
position: fixed;
bottom: 40px;
right: 10px;
box-shadow: 0 0 10px rgb(68, 63, 58)!important;
/* image replacement properties */
overflow: hidden;
text-indent: 100%;
white-space: nowrap;
background:rgba(62, 58, 57, 0.8) url(../images/cd-top-arrow.svg) no-repeat center 50%;
background-size: 75%;
visibility: hidden;
opacity: 0;
-webkit-transition: opacity .3s 0s, visibility 0s .3s;
-moz-transition: opacity .3s 0s, visibility 0s .3s;
transition: opacity .3s 0s, visibility 0s .3s;
}
.cd-top.cd-is-visible, .cd-top.cd-fade-out, .no-touch .cd-top:hover {
-webkit-transition: opacity .3s 0s, visibility 0s 0s;
-moz-transition: opacity .3s 0s, visibility 0s 0s;
transition: opacity .3s 0s, visibility 0s 0s;
}
.cd-top.cd-is-visible {
/* the button becomes visible */
visibility: visible;
opacity: 1;
}
.cd-top.cd-fade-out {
/* if the user keeps scrolling down, the button is out of focus and becomes less visible */
opacity: .8;
}
.cd-top:hover {
background-color:rgb(16, 16, 16);
opacity: 1;
}
@media only screen and (min-width: 768px) {
.cd-top {
right: 20px;
bottom: 20px;
}
}
@media only screen and (min-width: 1024px) {
.cd-top {
height: 40px;
width: 40px;
right: 30px;
bottom: 30px;
}
}
/*-- /back to top --*/
/* Page Loader */
#pageloader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #e6d9dc;
/*#ffdde2*/
z-index: 99999;
}

#status {
width: 50px;
height: 50px;
position: absolute;
left: 50%;
top: 47%;
/*https://media.giphy.com/media/y5MNdXGpGmSixqxkUa/source.gif**/
background-image: url("../images/mysuru_breadth_gif.gif");
border-radius: 50%;
z-index: 9999;
background-repeat: no-repeat;
background-position: center;
margin: -10px 0 0 -36px;
background-position: unset;
background-size: contain;
}
Binary file added Project Mysuru/fonts/Endestry.ttf
Binary file not shown.
Binary file added Project Mysuru/fonts/Paisley.otf
Binary file not shown.
Binary file added Project Mysuru/images/Mysuru Icon.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 Project Mysuru/images/brindavan_garden.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions Project Mysuru/images/cd-top-arrow.svg
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 Project Mysuru/images/favicon.ico
Binary file not shown.
Binary file added Project Mysuru/images/mysore-palace-city-1.jpg
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 Project Mysuru/images/mysore-palace-city.jpg
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 Project Mysuru/images/mysuru elephants.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 Project Mysuru/images/mysuru.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 Project Mysuru/images/mysuru_beat_gif.gif
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 Project Mysuru/images/mysuru_breadth_gif.gif
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 Project Mysuru/images/namdroling.jpg
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 Project Mysuru/images/sticker.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 Project Mysuru/images/transparent.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 100 additions & 0 deletions Project Mysuru/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!--Meta Info-->
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<meta name="keywords" content="mysuru mysore mysore tourism travel mysoretourism mysoretravel MYSURU MYSORE" />
<meta name="decription" content="Mysuru - A tourism and travel site" />
<meta name="author" content="Team Blinnk - Led by Mr. Mayur Narkhede" />
<!--Stylesheet-->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<link rel="stylesheet" href="css/main.css">
<!--Fonts-->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Oswald:wght@200&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Rochester&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@200&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap" rel="stylesheet">
<!--FontAwesome Icons-->
<link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.11.2/css/all.css" integrity="sha384-zrnmn8R8KkWl12rAZFt4yKjxplaDaT7/EUkKm7AovijfrQItFWR7O/JJn4DAa/gx" crossorigin="anonymous">
<!--Favicon-->
<link rel="shortcut icon" href="images/favicon.ico" />
<!--Title-->
<title>Welcome to Mysuru | Site for Tourism Mysore</title>
<!--Scripts-->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<!--//start-smooth-scroll//-->
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},1000);
});
});
</script>
<!-- //end-smoth-scrolling//-->

</head>
<body>
<!-- Page Loader -->
<div id="pageloader">
<div id="status"></div>
</div>
<!-- End of Page Loader -->
<header>
<div class="container">
<nav>
<a href="index.html" class="navbar-brand">
<img src="images/sticker.png" alt="Mysuru Logo" class="logo">
</a>
<!--shortcut to create li ul>li*7 +Press Enter-->
<ul class="nav-menu">
<li><a href="#">Discover</a></li>
<li><a href="#">Pick Your Trail</a></li> <!--Things to DO-->
<li><a href="#">Facts</a></li>
<li><a href="#">Plan</a></li>
<li><a href="#">Accomodations</a></li>
<li><a href="#">Travel to Mysuru</a></li>
<li><a href="#">About Mysuru</a></li>
<li><a href="#"><i class="search fal fa-search"></i></a></li>
</ul>
</nav>
</div>
<h1 class="header-title title-1">Welcome to Mysuru</h1>
<h5 class="header-title title-2">The Incredible City of India!</h5>
</header>
<!--Header End-->

<!--Discover Section-->

<!--shortcut div.discover-section+Enter key-->
<div class="discover-section">

<!--div.card1*3+enterkey-->
<div class="card card-1 card-1-border">
<div class="border-overlay">
<h1 class="card-1-h1">Explore The Land of Mysuru</h1>
</div>
</div>

<div class="card card-2">
</div>

<div class="card card-3">

</div>

</div>

<!--Back To Top -->
<span><a href="#" class="cd-top">Top</a></span>
<!-- Scripts -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/js/bootstrap.min.js" integrity="sha384-o+RDsa0aLu++PJvFqy8fFScvbHFLtbvScb8AjopnFD+iEQ7wo/CG0xlczd+2O/em" crossorigin="anonymous"></script>
<script type="text/javascript" src="./js/backtotop.js"></script>
<script type="text/javascript" src="js/pageloader.js"></script>
</body>
</html>
28 changes: 28 additions & 0 deletions Project Mysuru/js/backtotop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
jQuery(document).ready(function($){
// browser window scroll (in pixels) after which the "back to top" link is shown
var offset = 300,
//browser window scroll (in pixels) after which the "back to top" link opacity is reduced
offset_opacity = 1200,
//duration of the top scrolling animation (in ms)
scroll_top_duration = 700,
//grab the "back to top" link
$back_to_top = $('.cd-top');

//hide or show the "back to top" link
$(window).scroll(function(){
( $(this).scrollTop() > offset ) ? $back_to_top.addClass('cd-is-visible') : $back_to_top.removeClass('cd-is-visible cd-fade-out');
if( $(this).scrollTop() > offset_opacity ) {
$back_to_top.addClass('cd-fade-out');
}
});

//smooth scroll to top
$back_to_top.on('click', function(event){
event.preventDefault();
$('body,html').animate({
scrollTop: 0 ,
}, scroll_top_duration
);
});

});
5 changes: 5 additions & 0 deletions Project Mysuru/js/pageloader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$(window).on('load', function () {
jQuery('#status').fadeOut(4000);
$('#pageloader').delay(2).fadeOut(4000);
$('body').delay(1000).css({'overflow':'visible'});
});