Skip to content

Preprocessing-I Assignment #1291

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 5 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
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Follow these steps for completing your project.
- [ ] Your project manager will count the project as complete by merging the branch back into master.

## Task 2: Set up your preprocessor
* [ ] Verify that you have LESS installed correctly by running `lessc -v` in your terminal, if you don't get a version message back, reach out to your cohort's help channel or your team lead for help.
* [ ] In your project's root folder, run the following command `less-watch-compiler less css index.less`
* [ ] Verify that you have LESS installed correctly by running `lessc -v` in your terminal, if you don't get a version message back, reach out to your project manager for help.
* [ ] Open your terminal and navigate to your preprocessing project by using the `cd` command
* [ ] Once in your project's root folder, run the following command `less-watch-compiler less css index.less`
* [ ] Verify your compiler is working correctly by changing the `background-color` on the `html` selector to `red`
* [ ] Once you see the red screen, you can delete that style and you're ready to start on the next task

Expand All @@ -40,7 +41,7 @@ Follow these steps for completing your project.

## Stretch Goals:
* [ ] Incorporate a google font of your choosing
* [ ] Convert your portfolio project (from last week) CSS into LESS. Introduce variables, mixins, nesting, etc.
* [ ] Convert the great idea CSS into LESS. Introduce variables, mixins, nesting, etc.
* [ ] Create a link to the portfolio page and create a layout that would allow users to see your work. A good idea is to link projects back to their github repos so employers can see your code.


Expand Down
253 changes: 252 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,252 @@
/* Compile your LESS file! */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
display: block;
}
body {
line-height: 1;
}
ol,
ul {
list-style: none;
}
blockquote,
q {
quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content: "";
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
html {
font-family: "Quicksand", sans-serif;
}
.spacing {
text-align: center;
padding-top: 2rem;
font-size: 2.5rem;
}
/* Set every element's box-sizing to border-box */
* {
box-sizing: border-box;
}
html,
body {
height: 100%;
}
header {
width: 100%;
}
header nav {
width: 100%;
display: flex;
justify-content: center;
background-color: black;
}
header a {
margin: 1rem 2rem 1rem 4rem;
text-decoration: none;
color: white;
}
@media (max-width: 500px) {
header a {
margin: 1rem 0.5rem 1rem 0.5rem;
}
}
header a:hover {
color: rgba(194, 255, 220, 0.5);
}
.heading {
width: 100%;
background-color: #1d1d1d;
padding-bottom: 2rem;
}
.heading h2 {
text-align: center;
padding-top: 5rem;
font-size: 3rem;
color: rgba(194, 255, 220, 0.8);
}
@media (max-width: 500px) {
.heading h2 {
padding-top: 2rem;
font-size: 1.5rem;
}
}
.heading h3 {
text-align: center;
padding-top: 2rem;
font-size: 2.5rem;
color: lightcyan;
font-size: 1.5rem;
font-weight: 300;
}
@media (max-width: 500px) {
.heading h3 {
padding-top: 2rem;
font-size: 1rem;
}
}
.bg-canvas {
background-color: rgba(243, 240, 240, 0.9);
width: 100%;
margin: 0 auto;
display: flex;
flex-direction: row;
height: 40rem;
}
@media (max-width: 500px) {
.bg-canvas {
background: white;
flex-direction: column;
align-items: center;
width: 100%;
}
}
.bg-canvas .left-color {
background-color: rgba(194, 255, 220, 0.5);
width: 50%;
height: 40rem;
}
.bg-canvas .left-color .resume {
width: 80%;
flex-wrap: wrap;
align-items: center;
margin: 0 auto;
}
.bg-canvas h2 {
padding: 1rem;
font-weight: bold;
}
.bg-canvas p {
font-weight: 200;
padding: 1rem;
}
.bg-canvas .right-color {
background-color: white;
width: 50%;
z-index: 1;
height: 40rem;
}
.bg-canvas .right-color .resume2 {
width: 80%;
flex-wrap: wrap;
align-items: flex-end;
margin: 0 auto;
}
.bg-canvas .right-color h2 {
padding: 1rem;
font-weight: bold;
}
.bg-canvas .right-color p {
font-weight: 200;
padding: 1rem;
}
70 changes: 60 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,69 @@
<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8">

<title>My Resume</title>
<head>
<meta charset="utf-8">

<link rel="stylesheet" href="css/index.css">
<title>My Resume</title>

<!--[if lt IE 9]>
<link rel="stylesheet" href="css/index.css">
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600&display=swap" rel="stylesheet" <!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv.js"></script>
<![endif]-->
</head>
<![endif]-->
</head>

<body>
<header>
<nav>
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Products</a>
<a href="#">Blog</a>
<a href="#">Contact</a>
</nav>
</header>
<section class="heading">
<h2>Cameron Lares</h2>
<h3>Full Stack Developer</h3>
</section>

<body>
<h1>My Resume</h1>
</body>
<section class="bg-canvas">
<div class="left-color">
<h2>Professional Summary</h2>
<p>Nam mollis purus arcu, vel condimentum purus accumsan suscipit.
Suspendisse viverra nulla accumsan sem convallis tristique. Phasellus
facilisis, libero eu ultricies bibendum, risus felis vulputate lacus,
in euismod lectus tortor non nibh. Sed hendrerit tellus ut est
laoreet, vitae tincidunt enim semper. Aenean ultrices sollicitudin
metus sed laoreet.</p>
<h2>Achievements</h2>
<p>Integer ornare, velit dictum ultricies condimentum, ex arcu tincidunt
turpis, et mattis felis sem vitae libero. Curabitur commodo sem mi, in
aliquam tortor aliquet ac.</p>
<h2>Contact Info</h2>
<p>Ut finibus ornare tempor. Vestibulum ut felis sit amet sapien
eleifend aliquet. Praesent elementum diam id erat aliquet posuere.
Nullam congue mi vel purus tincidunt ullamcorper.</p>
</div>
<!-------Right Section-->
<div class="right-color">
<h2>Employment Background</h2>
<p>Nam mollis purus arcu, vel condimentum purus accumsan suscipit.
Suspendisse viverra nulla accumsan sem convallis tristique. Phasellus
facilisis, libero eu ultricies bibendum, risus felis vulputate lacus,
in euismod lectus tortor non nibh. Sed hendrerit tellus ut est
laoreet, vitae tincidunt enim semper. Aenean ultrices sollicitudin
metus sed laoreet.</p>
<h2>Academic Education</h2>
<p>Integer ornare, velit dictum ultricies condimentum, ex arcu tincidunt
turpis, et mattis felis sem vitae libero. Curabitur commodo sem mi, in
aliquam tortor aliquet ac.</p>
<h2>Core Skills</h2>
<p>Ut finibus ornare tempor. Vestibulum ut felis sit amet sapien
eleifend aliquet. Praesent elementum diam id erat aliquet posuere.
Nullam congue mi vel purus tincidunt ullamcorper.</p>
</div>
</section>
</body>
</html>
Loading