Skip to content
Merged
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
155 changes: 155 additions & 0 deletions study_group/sgXX_070718/answer/answer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
/***********
GENERAL
************/
* {
box-sizing: border-box;
margin: 0;
outline: none;
}

html {
overflow-x: hidden;
}

/***********
Container
************/
.o-container {
transition: all 1000ms ease-out;
padding: 0 15px;
}


@media screen and (min-width: 768px) {
.o-container {
max-width: 750px;
position: relative;
margin: 0 auto;
}
}

@media screen and (min-width: 1024px) {
.o-container {
max-width: 970px;
}
}

@media screen and (min-width: 1440px) {
.o-container {
max-width: 1170px;
}
}

/***********
Newsletter
************/
.c-newsletter__intro {
width: 100%;
height: 325px;
background-color: #7beec7;
position: relative;
}

.c-newsletter__intro_content {
width: 100%;
font-family: 'Lekton', sans-serif;
font-size: 20px;
text-transform: uppercase;
line-height: 2em;
position: relative;
top: 50%;
transform: translateY(-50%);
padding-left: 12%;
}

/*** signin ***/
.c-newsletter__signin {
width: 100%;
height: 325px;
position: relative;
background-image: url(./img/newsletter-bg.jpg);
}

.c-newsletter__signin--inner {
width: calc(100% - 20px);
height: calc(100% - 20px);
background-color: rgba(255,255,255, 0.9);
position: relative;
top: 10px;
margin: 0 auto;
}

.c-newsletter__signin--inner form {
width: 100%;
position: relative;
top: 50%;
transform: translateY(-50%);
padding: 0 12px;
}

.c-newsletter__signin--inner form input,
.c-newsletter__signin--inner form button {
border: none;
text-transform: uppercase;
position: relative;
left: 50%;
transform: translateX(-50%);
}

.c-newsletter__signin--inner form input {
color: #787878;
font-size: 14px;
letter-spacing: 0.1em;
width: 100%;
padding: 18px 10px;
}

.c-newsletter__signin--inner form button {
color: #ffffff;
font-weight: 400;
font-size: 18px;
letter-spacing: 0.15em;
background-color: #7beec7;
padding: 12px 30px;
margin-top: 30px;
border: 2px solid transparent;
transition: all 400ms ease;
}

.c-newsletter__signin--inner form button:hover {
color: #7beec7;
background-color: #ffffff;
border: 2px solid #7beec7;
}

@media screen and (min-width: 768px) {
/*** intro ***/
.c-newsletter__intro_content {
font-size: 28px;
letter-spacing: 0.1em;
line-height: 1.5em;
padding-left: 90px;
}

.c-newsletter__signin--inner {
width: calc(100% - 100px);
height: calc(100% - 100px);
background-color: rgba(255,255,255, 1.0);
top: 50px;
}

.c-newsletter__signin--inner form {
width: 85%;
margin: 0 auto;
}

.c-newsletter__signin--inner form input {
border: 1px solid #eaeaea;
}
}

@media screen and (min-width: 1000px) {
.c-newsletter {
display: flex;
}
}
32 changes: 32 additions & 0 deletions study_group/sgXX_070718/answer/answer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home - Newsletter</title>
<link href="https://fonts.googleapis.com/css?family=Lekton:400,400i,700|Ubuntu:300,300i,400,400i,500,500i,700,700i" rel="stylesheet">
<link rel="stylesheet" href="./answer.css">
</head>
<body>
<section class="o-container">
<div class="c-newsletter">
<div class="c-newsletter__intro">
<div class="c-newsletter__intro_content">
<p>Stay Informed</p>
<p>With Our <strong>Newsletter</strong></p>
</div>
</div> <!-- /c-newsletter__intro -->

<div class="c-newsletter__signin">
<div class="c-newsletter__signin--inner">
<form>
<input type="text" placeholder="Enter Your Email">
<button type="submit">Subscribe</button>
</form>
</div>
</div> <!-- /c-newsletter__signin -->
</div> <!-- /c-newsletter -->
</section>
</body>
</html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions study_group/sgXX_070718/code_reference/4.activity/newsletter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Home - Newsletter</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<section class="o-container">
<div class="c-newsletter">
<div class="c-newsletter__intro">
<div class="c-newsletter__intro_content">
<p>Stay Informed</p>
<p>With Our <strong>Newsletter</strong></p>
</div>
</div> <!-- /c-newsletter__intro -->

<div class="c-newsletter__signin">
<div class="c-newsletter__signin--inner">
<form>
<input type="text" placeholder="Enter Your Email">
<button type="submit">Subscribe</button>
</form>
</div>
</div> <!-- /c-newsletter__signin -->
</div> <!-- /c-newsletter -->
</section>
</body>
</html>
139 changes: 139 additions & 0 deletions study_group/sgXX_070718/code_reference/4.activity/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
/***********
GENERAL
************/
* {
box-sizing: border-box;
margin: 0;
outline: none;
}

html {
overflow-x: hidden;
}

/***********
Container
************/
.o-container {
transition: all 1000ms ease-out;
padding: 0 15px;
}


@media screen and (min-width: 768px) {
.o-container {
max-width: 750px;
position: relative;
margin: 0 auto;
}
}

@media screen and (min-width: 1024px) {
.o-container {
max-width: 970px;
}
}

@media screen and (min-width: 1440px) {
.o-container {
max-width: 1170px;
}
}

/***********
Newsletter
************/
.c-newsletter__intro {
width: 100%;
height: 325px;
background-color: #7beec7;
position: relative;
}

.c-newsletter__intro_content {
width: 100%;
position: relative;
top: 50%;
transform: translateY(-50%);
padding-left: 12%;
}

/*** signin ***/
.c-newsletter__signin {
width: 100%;
height: 325px;
position: relative;
background-image: url(./img/newsletter-bg.jpg);
}

.c-newsletter__signin--inner {
width: calc(100% - 20px);
height: calc(100% - 20px);
background-color: rgba(255,255,255, 0.9);
position: relative;
top: 10px;
margin: 0 auto;
}

.c-newsletter__signin--inner form {
width: 100%;
position: relative;
top: 50%;
transform: translateY(-50%);
padding: 0 12px;
}

.c-newsletter__signin--inner form input,
.c-newsletter__signin--inner form button {
border: none;
position: relative;
left: 50%;
transform: translateX(-50%);
}

.c-newsletter__signin--inner form input {
width: 100%;
padding: 18px 10px;
}

.c-newsletter__signin--inner form button {
background-color: #7beec7;
padding: 12px 30px;
margin-top: 30px;
border: 2px solid transparent;
transition: all 400ms ease;
}

.c-newsletter__signin--inner form button:hover {
background-color: #ffffff;
border: 2px solid #7beec7;
}

@media screen and (min-width: 768px) {
/*** intro ***/
.c-newsletter__intro_content {
padding-left: 90px;
}

.c-newsletter__signin--inner {
width: calc(100% - 100px);
height: calc(100% - 100px);
background-color: rgba(255,255,255, 1.0);
top: 50px;
}

.c-newsletter__signin--inner form {
width: 85%;
margin: 0 auto;
}

.c-newsletter__signin--inner form input {
border: 1px solid #eaeaea;
}
}

@media screen and (min-width: 1000px) {
.c-newsletter {
display: flex;
}
}
19 changes: 0 additions & 19 deletions study_group/sgXX_070718/code_reference/4.styling_texts/index.html

This file was deleted.

Loading