Initial commit
This commit is contained in:
166
css/components/_nav.scss
Normal file
166
css/components/_nav.scss
Normal file
@@ -0,0 +1,166 @@
|
||||
nav.main-nav {
|
||||
background: $white;
|
||||
border-bottom-left-radius: 100% 64px;
|
||||
border-bottom-right-radius: 100% 64px;
|
||||
box-shadow: 0 4px 5px 0px rgba(0,0,0,.16);
|
||||
display: flex;
|
||||
padding: 16px 0 32px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
|
||||
.mobile-nav {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
||||
.mobile-nav--logo {
|
||||
display: none;
|
||||
max-width: 100px;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
.hamburger {
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
margin-left: auto;
|
||||
position: relative;
|
||||
width: 30px;
|
||||
z-index: 1;
|
||||
|
||||
&> div {
|
||||
background-color: $black;
|
||||
border-radius: 2px;
|
||||
height: 5px;
|
||||
margin-bottom: 5px;
|
||||
transition: .25s;
|
||||
width: 30px;
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&> div {
|
||||
background-color: $gray;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&.in {
|
||||
& div:first-child {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
& div:nth-child(2) {
|
||||
transform: translate(-17px);
|
||||
width: 40px;
|
||||
}
|
||||
& div:last-child {
|
||||
bottom: 1px;
|
||||
position: relative;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
background-color: $white;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
left: 100%;
|
||||
padding: 24px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
transition: .25s;
|
||||
width: 100%;
|
||||
|
||||
&.in {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
@include Libre;
|
||||
|
||||
list-style: none;
|
||||
width: 100%;
|
||||
|
||||
a {
|
||||
@include Libre;
|
||||
|
||||
color: $black;
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
width: 100%;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
font-size: 14px;
|
||||
padding-bottom: 16px;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-child(-n+3) {
|
||||
a {
|
||||
text-align: left;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&:nth-last-child(-n+3) {
|
||||
a {
|
||||
text-align: right;
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.main-nav--logo {
|
||||
a {
|
||||
img {
|
||||
margin: 0 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: $m-break) {
|
||||
border-radius: 0;
|
||||
padding: 24px 0;
|
||||
}
|
||||
}
|
||||
89
css/components/_slide.scss
Normal file
89
css/components/_slide.scss
Normal file
@@ -0,0 +1,89 @@
|
||||
.slides {
|
||||
position: relative;
|
||||
|
||||
&.vineyard {
|
||||
min-height: 300px;
|
||||
img {
|
||||
height: 300px;
|
||||
}
|
||||
}
|
||||
|
||||
&.house {
|
||||
min-height: 400px;
|
||||
img {
|
||||
height: 400px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
img {
|
||||
border-radius: 5px;
|
||||
object-fit: cover;
|
||||
opacity: 1;
|
||||
transition: .15s;
|
||||
width: 100%;
|
||||
|
||||
&::selection {
|
||||
background: rgba(255,255,255,0);
|
||||
}
|
||||
|
||||
&.out {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.slides-arrow {
|
||||
align-items: center;
|
||||
background: $white;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
justify-content: center;
|
||||
left: -25px;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
transition: .15s;
|
||||
width: 50px;
|
||||
|
||||
&.out {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
background-color: $light-gray;
|
||||
border-radius: 3px;
|
||||
color: $white;
|
||||
height: 32px;
|
||||
padding: 4px;
|
||||
pointer-events: none;
|
||||
transition: .1s;
|
||||
width: 32px;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
left: auto;
|
||||
right: -25px;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
svg {
|
||||
background-color: darken($light-gray, 5%);
|
||||
border-radius: 4px;
|
||||
transform: scale(1.15);
|
||||
}
|
||||
}
|
||||
|
||||
&:active {
|
||||
svg {
|
||||
background-color: darken($light-gray, 10%);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
265
css/main.css
Normal file
265
css/main.css
Normal file
@@ -0,0 +1,265 @@
|
||||
.btn {
|
||||
font-family: "Libre Baskerville", serif;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: #AB996D;
|
||||
border-color: #AB996D;
|
||||
}
|
||||
.btn-primary:hover {
|
||||
background-color: #917f54;
|
||||
border-color: #917f54;
|
||||
}
|
||||
.btn-primary:active, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled):active:focus {
|
||||
background-color: #81714a;
|
||||
border-color: #81714a;
|
||||
box-shadow: 0 0 0 0.2rem rgba(129, 113, 74, 0.5);
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Lato", sans-serif;
|
||||
background-color: #ffffff;
|
||||
color: #231F20;
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
p, a, li, span, div {
|
||||
font-family: "Lato", sans-serif;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
font-family: "Libre Baskerville", serif;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
padding: 110px 0 0 0;
|
||||
position: relative;
|
||||
top: -32px;
|
||||
}
|
||||
.page-content .hero-text h1 {
|
||||
font-size: 64px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
nav.main-nav {
|
||||
background: #ffffff;
|
||||
border-bottom-left-radius: 100% 64px;
|
||||
border-bottom-right-radius: 100% 64px;
|
||||
box-shadow: 0 4px 5px 0px rgba(0, 0, 0, 0.16);
|
||||
display: flex;
|
||||
padding: 16px 0 32px;
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
nav.main-nav .mobile-nav {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
nav.main-nav .mobile-nav .mobile-nav--logo {
|
||||
display: none;
|
||||
max-width: 100px;
|
||||
}
|
||||
nav.main-nav .mobile-nav .mobile-nav--logo img {
|
||||
width: 100%;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav .mobile-nav .mobile-nav--logo {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger {
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
margin-left: auto;
|
||||
position: relative;
|
||||
width: 30px;
|
||||
z-index: 1;
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger > div {
|
||||
background-color: #231F20;
|
||||
border-radius: 2px;
|
||||
height: 5px;
|
||||
margin-bottom: 5px;
|
||||
transition: 0.25s;
|
||||
width: 30px;
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger > div:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger:hover > div {
|
||||
background-color: #585858;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav .mobile-nav .hamburger {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger.in div:first-child {
|
||||
position: relative;
|
||||
top: 1px;
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger.in div:nth-child(2) {
|
||||
transform: translate(-17px);
|
||||
width: 40px;
|
||||
}
|
||||
nav.main-nav .mobile-nav .hamburger.in div:last-child {
|
||||
bottom: 1px;
|
||||
position: relative;
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
nav.main-nav ul {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav ul {
|
||||
background-color: #ffffff;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
left: 100%;
|
||||
padding: 24px;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
transition: 0.25s;
|
||||
width: 100%;
|
||||
}
|
||||
nav.main-nav ul.in {
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
nav.main-nav ul li {
|
||||
font-family: "Libre Baskerville", serif;
|
||||
list-style: none;
|
||||
width: 100%;
|
||||
}
|
||||
nav.main-nav ul li a {
|
||||
font-family: "Libre Baskerville", serif;
|
||||
color: #231F20;
|
||||
display: inline-block;
|
||||
font-size: 11px;
|
||||
letter-spacing: 1px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
text-transform: uppercase;
|
||||
width: 100%;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav ul li a {
|
||||
font-size: 14px;
|
||||
padding-bottom: 16px;
|
||||
width: 50%;
|
||||
}
|
||||
}
|
||||
nav.main-nav ul li:nth-child(-n+3) a {
|
||||
text-align: left;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav ul li:nth-child(-n+3) a {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
nav.main-nav ul li:nth-last-child(-n+3) a {
|
||||
text-align: right;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav ul li:nth-last-child(-n+3) a {
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
nav.main-nav ul li.main-nav--logo a img {
|
||||
margin: 0 8px;
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav ul li.main-nav--logo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
@media (max-width: 991px) {
|
||||
nav.main-nav {
|
||||
border-radius: 0;
|
||||
padding: 24px 0;
|
||||
}
|
||||
}
|
||||
|
||||
.slides {
|
||||
position: relative;
|
||||
}
|
||||
.slides.vineyard {
|
||||
min-height: 300px;
|
||||
}
|
||||
.slides.vineyard img {
|
||||
height: 300px;
|
||||
}
|
||||
.slides.house {
|
||||
min-height: 400px;
|
||||
}
|
||||
.slides.house img {
|
||||
height: 400px;
|
||||
}
|
||||
.slides img {
|
||||
border-radius: 5px;
|
||||
object-fit: cover;
|
||||
opacity: 1;
|
||||
transition: 0.15s;
|
||||
width: 100%;
|
||||
}
|
||||
.slides img::selection {
|
||||
background: rgba(255, 255, 255, 0);
|
||||
}
|
||||
.slides img.out {
|
||||
opacity: 0;
|
||||
}
|
||||
.slides .slides-arrow {
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
height: 50px;
|
||||
justify-content: center;
|
||||
left: -25px;
|
||||
opacity: 1;
|
||||
position: absolute;
|
||||
right: auto;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
transition: 0.15s;
|
||||
width: 50px;
|
||||
}
|
||||
.slides .slides-arrow.out {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.slides .slides-arrow svg {
|
||||
background-color: #bebebe;
|
||||
border-radius: 3px;
|
||||
color: #ffffff;
|
||||
height: 32px;
|
||||
padding: 4px;
|
||||
pointer-events: none;
|
||||
transition: 0.1s;
|
||||
width: 32px;
|
||||
}
|
||||
.slides .slides-arrow:last-child {
|
||||
left: auto;
|
||||
right: -25px;
|
||||
}
|
||||
.slides .slides-arrow:hover svg {
|
||||
background-color: #b1b1b1;
|
||||
border-radius: 4px;
|
||||
transform: scale(1.15);
|
||||
}
|
||||
.slides .slides-arrow:active svg {
|
||||
background-color: #a5a5a5;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=main.css.map */
|
||||
1
css/main.css.map
Normal file
1
css/main.css.map
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"sourceRoot":"","sources":["main.scss","components/_nav.scss","components/_slide.scss"],"names":[],"mappings":"AAsBA;EAPE;EASA;;;AAGF;EACE,kBA3BK;EA4BL,cA5BK;;AA8BL;EACE;EACA;;AAGF;EAIE;EACA;EACA;;;AAIJ;EA5BE;EA+BA,kBA/CM;EAgDN,OA7CM;EA8CN;EACA;;;AAGF;EArCE;;;AAyCF;EA5CE;;;AAgDF;EACE;EACA;EACA;;AAGE;EACE;EACA;;;ACvEN;EACI,YDCI;ECAJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;EACA;;AAEA;EACE;EACA;;AAEA;EACE;;AAGF;EARF;IASI;;;AAIJ;EACE;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE,kBDjCF;ECkCE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAKF;EACE,kBDjDL;;ACqDC;EA3BF;IA4BI;;;AAIA;EACE;EACA;EACA;;AAEF;EACE;EACA;;AAEF;EACE;EACA;EACA;;AAMR;EACE;EACA;EACA;EACA;EACA;;AAEA;EAPF;IAQI,kBDrFA;ICsFA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;EAEA;IACE;;;AAIJ;EDvFJ;EC0FM;EACA;;AAEA;ED7FN;ECgGQ,OD1GF;EC2GE;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EAZF;IAaI;IACA;IACA;;;AAKF;EACE;;AAEA;EAHF;IAII;;;AAMJ;EACE;;AAEA;EAHF;IAII;;;AAOF;EACE;;AAIJ;EAPF;IAQI;;;AAMR;EAjKJ;IAkKQ;IACA;;;;ACnKR;EACI;;AAEA;EACE;;AACA;EACE;;AAIJ;EACE;;AACA;EACE;;AAMJ;EACE;EACA;EACA;EACA;EACA;;AAEA;EACE;;AAGF;EACE;;AAIJ;EACE;EACA,YFnCE;EEoCF;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;;AAEA;EACE;EACA;;AAGF;EACE,kBFtDK;EEuDL;EACA,OF1DA;EE2DA;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;;AAIA;EACE;EACA;EACA;;AAKF;EACE;EACA","file":"main.css"}
|
||||
84
css/main.scss
Normal file
84
css/main.scss
Normal file
@@ -0,0 +1,84 @@
|
||||
// colors
|
||||
$gold: #AB996D;
|
||||
$white: #ffffff;
|
||||
$gray: #585858;
|
||||
$light-gray: #bebebe;
|
||||
$black: #231F20;
|
||||
|
||||
// breakpoints
|
||||
$xs-break: 575px;
|
||||
$s-break: 767px;
|
||||
$m-break: 991px;
|
||||
$l-break: 1199px;
|
||||
|
||||
// fonts
|
||||
@mixin Libre {
|
||||
font-family: 'Libre Baskerville', serif;
|
||||
}
|
||||
@mixin Lato {
|
||||
font-family: 'Lato', sans-serif;
|
||||
}
|
||||
|
||||
//btns
|
||||
.btn {
|
||||
@include Libre;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background-color: $gold;
|
||||
border-color: $gold;
|
||||
|
||||
&:hover {
|
||||
background-color: darken($gold, 10%);
|
||||
border-color: darken($gold, 10%);
|
||||
}
|
||||
|
||||
&:active,
|
||||
&:focus,
|
||||
&:not(:disabled):not(.disabled):active,
|
||||
&:not(:disabled):not(.disabled):active:focus {
|
||||
background-color: darken($gold, 15%);
|
||||
border-color: darken($gold, 15%);
|
||||
box-shadow: 0 0 0 0.2rem rgba(129, 113, 74, .5);
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
@include Lato;
|
||||
|
||||
background-color: $white;
|
||||
color: $black;
|
||||
margin: 0;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
// Enable native smooth-scrolling for in-page anchor navigation
|
||||
// This complements the JS smooth-scroll and works when JS is unavailable
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
|
||||
p, a, li, span, div {
|
||||
@include Lato;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@include Libre;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
padding: 110px 0 0 0;
|
||||
position: relative;
|
||||
top: -32px;
|
||||
|
||||
.hero-text {
|
||||
h1 {
|
||||
font-size: 64px;
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import 'components/nav';
|
||||
@import 'components/slide';
|
||||
Reference in New Issue
Block a user