Skip to content

Commit

Permalink
First wp version
Browse files Browse the repository at this point in the history
  • Loading branch information
rudsberg committed Mar 30, 2018
0 parents commit c5d4a25
Show file tree
Hide file tree
Showing 39 changed files with 9,044 additions and 0 deletions.
5,866 changes: 5,866 additions & 0 deletions css/bootstrap.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions css/font-awesome.min.css

Large diffs are not rendered by default.

170 changes: 170 additions & 0 deletions css/template.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
#hero-section {
position: relative;
background: url('../img/skiing-resized.jpg');
background-repeat: no-repeat;
background-size: cover;
background-attachment: fixed;
background-position: center center;
min-height: 500px;
}

#hero-section .primary-overlay {
background: rgba(0, 0, 0, 0.6);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 500px;
}

#hero-section .row {
padding-top: 175px;
}

#hero-section .row .col {
margin: 0 auto;
max-width: 700px;
}

#hero-section h1 {
font-size: 2rem;
}

#hero-section h3 {
font-size: 1.10rem;
}

#hero-section button {
font-size:1.05rem;
}

#services-section {
background-color: #f2efef;
}

#services-section .card-header {
font-size: 2rem;
}

#services-section img {
}

.info-header {
max-width: 500px;
border-bottom: 2px #ccc solid;
margin: -25px auto;
}

#services-section h2 {
font-size: 2.8rem;
}

#why-us-section {
background-color: white;
}

#why-us-section .info-header {
border-bottom: none;
}

#why-us-section img {
max-width: 250px;
}

#contact-section {
background-color: #f2efef;
}

#contact-section .flex-column {
p {
max-width: 340px;
}
}

#contact-section .fa {
color: white;
}

#contact-section #map {
height: 400px;
width: 100%;
}

#contact-info a {
color: black;
}

#contact-section .flex-column {
p {
max-width: 340px;
}
}

#footer-section {
background-color: #3f3f3f;
font-size: 0.72rem;
}

#footer-section a {
color: white;
}


/***** MEDIA QUERIES *****/
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
#hero-section {
min-height: 550px;
}

#hero-section .primary-overlay {
height: 550px;
}

#hero-section h1 {
font-size: 3rem;
}

#hero-section h3 {
font-size: 2rem;
}

#hero-section .row {
padding-top: 180px;
}

#why-us-section img {
max-width: 400px;
}

#footer-section {
font-size: 1rem;
}
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
#why-us-section img {
max-width: 350px;
}

#hero-section .row {
padding-top: 195px;
}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
#hero-section .row {
padding-top: 210px;
}

#why-us-section img {
max-width: 400px;
}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {

}
Binary file added fonts/FontAwesome.otf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.eot
Binary file not shown.
2,671 changes: 2,671 additions & 0 deletions fonts/fontawesome-webfont.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 fonts/fontawesome-webfont.ttf
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff
Binary file not shown.
Binary file added fonts/fontawesome-webfont.woff2
Binary file not shown.
46 changes: 46 additions & 0 deletions footer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!-- FOOTER SECTION -->
<section id="footer-section" class="py-4">
<div class="container">
<div class="row">
<div class="col text-white">
<div class="d-flex flex-row justify-content-between align-items-center">
<div class="text-left mr-auto">
Copyright &copy; 2018
</div>
<div class="text-center mx-auto">
Opening Hours<br> From November to April<br> Open 7 days a week<br> Lunch break 12.00 - 13.00
</div>
<div class="text-right ml-auto">
<a href="tel:+41416370777">+41 41 637 0 777</a><br>
<a href="mailto:[email protected]">[email protected]</a><br>
<a href="#map">Bahnhofstr. 10<br>
6390 Engelberg
</div>
</div>
</div>
</div>
</div>
</section>
<?php wp_footer(); ?>

<!-- Google Maps API Script -->
<script>
function initMap() {
var uluru = {lat: 46.819589, lng: 8.403062};
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 15,
center: uluru
});
var marker = new google.maps.Marker({
position: uluru,
map: map
});
}
</script>
<script async defer
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCfWUO18JsKW47UWTudR_Fp1TR0UPY9U6s&callback=initMap">
</script>
<!-- END Google maps API Script -->

</body>
</html>
39 changes: 39 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

function load_scripts() {

// Load bootstrap
/*
wp_enqueue_script( 'bootstrap.min', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '4.0.0', true );
wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.css', array(), '4.0.0-beta.2', true );
*/

wp_enqueue_script( 'bootstrap-js', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js', array('jquery'), '4.0.0', true );
wp_enqueue_style( 'bootstrap-css', 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css', array(), '4.0.0', 'all' );



// Load font-awesome
wp_enqueue_style( 'font-awesome.min', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.7.0', true );

// Load my styles
wp_enqueue_style( 'template', get_template_directory_uri() . '/css/template.css', array(), '1.0', 'all' );

}
add_action( 'wp_enqueue_scripts', 'load_scripts' );

// Register editable text areas
function okayshop_sidebars() {
register_sidebar(
array(
'name' => 'Service 1',
'id' => 'service-1',
'description' => 'First service area. Add 1) Header text 2) Description text 3) Image',
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h2 class="card-header">',
'after_title' => '</h2>'
)
);
}
add_action( 'widgets_init', 'okayshop_sidebars' );
39 changes: 39 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE html>
<!--
Developer: Joel Rudsberg
Contact: [email protected]
-->
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Okay Shop, in Engelberg Switzerland, sell and rent skis/telemark, do ski service and fix all your problem regarding skiing.">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Okay Shop Engelberg</title>
<?php wp_head(); ?>
</head>

<body>

<!-- Navbar Section -->
<nav class="navbar navbar-expand-md fixed-top py-3 navbar-light bg-light">
<div class="container">
<button class="navbar-toggler navbar-toggler-right" data-target="#navbarNav" data-toggle="collapse">
<span class="navbar-toggler-icon"></span>
</button>
<div id="navbarNav" class="collapse navbar-collapse text-center">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a href="#services-section" class="nav-link">Services</a>
</li>
<li class="nav-item">
<a href="#why-us-section" class="nav-link">Why Okay Shop</a>
</li>
<li class="nav-item">
<a href="#contact-section" class="nav-link">Contact</a>
</li>
</ul>
</div>
</div>
</nav>
Binary file added img/dani-pictures-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 img/dani-pictures-2.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 img/dani-pictures-3.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 img/dani-pictures-4.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 img/dani-pictures-5.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 img/dani-pictures-6.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 img/dani-pictures-7.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 img/dani-pictures-8.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 img/equipment-okay-2.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 img/equipment-okay.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 img/equipment.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 img/powder-skiing.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 img/rent-freeride-ski.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 img/repair-cut.tif
Binary file not shown.
Binary file added img/repair.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 img/repair.tiff
Binary file not shown.
Binary file added img/ski-equipment.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 img/ski-repair.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 img/skiing-resized.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 img/skiing.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 img/telemark.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>index.php page</h1>
7 changes: 7 additions & 0 deletions js/bootstrap.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions js/jquery.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions js/popper.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit c5d4a25

Please sign in to comment.