Skip to content
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

Sass scss 001 #2

Open
wants to merge 2 commits into
base: main
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
Empty file.
23 changes: 23 additions & 0 deletions DemoSass/Scss/abstracts/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@mixin flex-row($gap: 0) {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: $gap;

@media screen and (max-width: 900px) {
flex-wrap: wrap;
}
}

@mixin flex-column($gap: 0) {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
// animation

@mixin transitions($quantity: all, $sec: 0.2s) {
transition: $quantity $sec ease;
}
37 changes: 37 additions & 0 deletions DemoSass/Scss/abstracts/_variable.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// colors
$color-font-base: white;
$color-font-heading: black;

$color-font-grey: rgb(87, 87, 87);

$color-theme-dark: rgb(53, 53, 53);
$color-theme-light: white;

$color-strategy: rgb(113, 174, 231);
$color-analysis: rgb(230, 158, 23);
$color-implementation: rgb(127, 183, 42);

// fonts
$fonts-heading-01: 4rem;
$fonts-heading-02: 2rem;
$fonts-heading-03: 1.4rem;

// width

$width-full-view: 100vw;
$width-full-percent: 100vw;
$height-full: 100vh;

$border-radius-big: 6rem;
$border-radius-medium: 4rem;
$border-radius-small: 2rem;
$border-radius-tiny: 1rem;

$margin-vertical-big: 4rem;
$margin-vertical-medium: 2rem;
$margin-vertical-small: 1.2rem;

$padding-horizontal-big: 6rem;
$padding-horizontal-medium: 4rem;
$padding-horizontal-small: 2rem;
$padding-horizontal-tiny: 1rem;
22 changes: 22 additions & 0 deletions DemoSass/Scss/base/_base.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
@use "../abstracts/mixins" as mxn;
@use "../abstracts/variable" as var;

*,
*::after,
*::before {
margin: 0;
padding: 0;
box-sizing: border-box;
}

html {
font-size: 62.5%;
}

body {
@include mxn.flex-column();
background-color: var.$color-theme-light;
width: var.$width-full-percent;
height: var.$height-full;
font-family: "Courier New", Courier, monospace;
}
4 changes: 4 additions & 0 deletions DemoSass/Scss/base/_typography.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

.features {

}
31 changes: 31 additions & 0 deletions DemoSass/Scss/components/_card.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@use "../abstracts/variable" as var;

.feature {
padding: 2rem;
border-radius: var.$border-radius-small;

&__heading {
font-size: 2rem;
}

&__para {
font-size: 1.5rem;
}

&:hover {
transform: scale(1.1);
transition: all 0.2s ease;
}
}

.strategy {
background-color: var.$color-strategy;
}

.analysis {
background-color: var.$color-analysis;
}

.implementation {
background-color: var.$color-implementation;
}
9 changes: 9 additions & 0 deletions DemoSass/Scss/layout/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@use "../abstracts/mixins" as mxn;
@use "../abstracts/variable" as var;

.footer {
margin-top: var.$margin-vertical-medium;
&__para {
font-size: var.$fonts-heading-03;
}
}
37 changes: 37 additions & 0 deletions DemoSass/Scss/layout/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
@use "../abstracts/variable" as var;
@use "../abstracts/mixins" as mxn;

.header {
@include mxn.flex-column();
width: calc(var.$width-full-percent / 1.5);
padding: 2rem 4rem;
position: relative;

&__btn {
position: absolute;
top: 0;
right: 4rem;
width: 8rem;
color: var.$color-theme-light;
background-color: var.$color-theme-dark;
border: 0.1rem solid var.$color-font-grey;
border-radius: var.$border-radius-small;
padding: calc(var.$padding-horizontal-tiny/2) var.$padding-horizontal-tiny;
@include mxn.transitions(all, 0.2s);
cursor: pointer;

&:active {
transform: translateY(0.3rem);
@include mxn.transitions(all, 0.2s);
@include mxn.transitions(all, 0.2s);
}
}

&__heading {
font-size: var.$fonts-heading-01;
}

&__para {
font-size: var.$fonts-heading-02;
}
}
7 changes: 7 additions & 0 deletions DemoSass/Scss/main.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

@use './base/base' as *;
@use './components/card' as *;
@use './pages/features.scss' as *;
@use './layout/header' as *;
@use './layout/footer' as *;

10 changes: 10 additions & 0 deletions DemoSass/Scss/pages/features.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@use "../abstracts/variable" as var;
@use "../abstracts/mixins" as mxn;

.features {
@include mxn.flex-row(2rem);
width: calc(var.$width-full-percent / 1.5);
background-color: var.$color-theme-dark;
padding: 4rem 8rem;
border-radius: var.$border-radius-tiny;
}
109 changes: 109 additions & 0 deletions DemoSass/Style/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions DemoSass/Style/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions DemoSass/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="Style/style.css" />
<title>Consulting Landing Page</title>
</head>
<body>
<header class="header">
<button class="header__btn">Theme</button>
<h1 class="header__heading">Scss Services</h1>
<p class="header__para">Your Trusted Partner in CSS Solutions</p>
</header>

<main class="features">
<div class="feature strategy">
<h2 class="feature__heading">Strategy</h2>
<p class="feature__para">
Develop effective business strategies to achieve your goals.
</p>
</div>
<div class="feature analysis">
<h2 class="feature__heading">Analysis</h2>
<p class="feature__para">
Thorough analysis of your business to identify areas for improvement.
</p>
</div>
<div class="feature implementation">
<h2 class="feature__heading">Implementation</h2>
<p class="feature__para">
Implement tailored solutions to enhance your business operations.
</p>
</div>
</main>

<!-- <section class="contact" >
<h2 class="feature__heading">Contact Us</h2>
<p class="feature__para">Ready to take your business to the next level? Contact us
today!</p>
<a class="feature__link" href="mailto:[email protected]">[email protected]</a>
</section> -->

<footer class="footer">
<p class="footer__para">
&copy; 2024 Sass Services. All rights reserved.
</p>
</footer>
</body>
</html>
12 changes: 12 additions & 0 deletions DemoSass/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "scss_landing_page",
"version": "1.0.0",
"description": "<div style=\"display:flex\"> <img style=\"flex:1; padding-right:10px\" width=\"400\" height=\"300\" src=\".\\media\\dark_theme.png\">",
"main": "theme-switcher.js",
"scripts": {
"sassComp":"sass --watch Scss/main.scss:Style/style.css"
},
"keywords": [],
"author": "",
"license": "ISC"
}
Binary file added Pdf files /BEM.pdf
Binary file not shown.
Binary file added Pdf files /Collection.pdf
Binary file not shown.
Binary file added Pdf files /Extend.pdf
Binary file not shown.
Binary file added Pdf files /Functions.pdf
Binary file not shown.
Binary file added Pdf files /Installation.pdf
Binary file not shown.
Binary file added Pdf files /Mixins.pdf
Binary file not shown.
Binary file added Pdf files /Partials.pdf
Binary file not shown.
Binary file added Pdf files /Sass 7-1 Pattern.pdf
Binary file not shown.
Binary file added Pdf files /Variable.pdf
Binary file not shown.
Binary file added Pdf files /What is Sass_Scss.pdf
Binary file not shown.
Binary file added Pdf files /if...else.pdf
Binary file not shown.
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# Learning
# This repo is all about Sass/Scss

### What is Sass/Scss?

### How to install and etc?

### To read .jex file:

```
// linux

wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
```

```
// window and other visit this link:

https://joplinapp.org/help/install/
```

### Everything will be inside SassScss.jex file. Or you can just have pdf files.
Binary file added SassScss.jex
Binary file not shown.
Loading