added project 3

This commit is contained in:
Kevin Powell 2022-06-20 13:52:04 -04:00
parent 10d2dba7c1
commit 95b7fcdef2
24 changed files with 1445 additions and 0 deletions

View File

@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

View File

@ -0,0 +1,15 @@
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
<stop stop-color="#41D1FF"/>
<stop offset="1" stop-color="#BD34FE"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFEA83"/>
<stop offset="0.0833333" stop-color="#FFDD35"/>
<stop offset="1" stop-color="#FFA800"/>
</linearGradient>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -0,0 +1,84 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pricing Table</title>
<link rel="stylesheet" href="/sass/main.scss">
</head>
<body>
<h1 class="page-title">Hosting Plans</h1>
<div class="container">
<div class="pricing-plans">
<div class="tier">
<h2 class="tier__title">Free</h2>
<ul class="tier__feature-list">
<li class="tier__list-item">
1 domain
</li>
<li class="tier__list-item">
5gb of bandwidth
</li>
<li class="tier__list-item">
1gb of diskspace
</li>
<li class="tier__list-item">
5,000 monthly uniques
</li>
</ul>
<p class="tier__price">$0<span>/month</span></p>
<button class="button">Get started</button>
</div>
<div class="tier inverted">
<h2 class="tier__title">Tiny</h2>
<ul class="tier__feature-list">
<li class="tier__list-item">
5 domain
</li>
<li class="tier__list-item">
250gb of bandwidth
</li>
<li class="tier__list-item">
5gb of diskspace
</li>
<li class="tier__list-item">
15,000 monthly uniques
</li>
</ul>
<p class="tier__price">$19<span>/month</span></p>
<button class="button">Get started</button>
</div>
<div class="tier">
<h2 class="tier__title">Large</h2>
<ul class="tier__feature-list">
<li class="tier__list-item">
15 domain
</li>
<li class="tier__list-item">
750gb of bandwidth
</li>
<li class="tier__list-item">
20gb of diskspace
</li>
<li class="tier__list-item">
50,000 monthly uniques
</li>
</ul>
<p class="tier__price">$49<span>/month</span></p>
<button class="button">Get started</button>
</div>
</div>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,14 @@
{
"name": "website-starter-template",
"private": true,
"version": "0.0.0",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"sass": "^1.52.3",
"vite": "^2.9.9"
}
}

View File

@ -0,0 +1,5 @@
$breakpoints: (
small: 30em,
medium: 45em,
large: 65em,
);

View File

@ -0,0 +1,12 @@
$colors: (
neutral: (
light: white,
normal: gray,
dark: black,
),
primary: (
light: lightblue,
normal: blue,
dark: darkblue,
),
);

View File

@ -0,0 +1,9 @@
@use "sass:map";
@function clr($color) {
@if map.has-key($colors, $color) {
@return map.get($colors, $color);
} @else {
@error '$colors does not have that color!';
}
}

View File

@ -0,0 +1,6 @@
@forward "breakpoints";
@forward "colors";
@forward "functions";
@forward "mixins";
@forward "sizes";
@forward "typography";

View File

@ -0,0 +1,23 @@
@use "sass:meta";
@use "sass:math";
@use "sass:map";
@use "breakpoints" as *;
@mixin mq($size) {
@if map.has-key($breakpoints, $size) {
$breakpoint: map-get($breakpoints, $size);
@media screen and (min-width: $breakpoint) {
@content;
}
} @else if meta.type-of($size) == number {
@if math.is-unitless($size) {
@error 'when using a number with @mq() make sure to include a unit';
} @else {
@media screen and (min-width: $size) {
@content;
}
}
} @else {
@error 'the keyword #{$size} is not in the $breakpoints map';
}
}

View File

@ -0,0 +1,8 @@
$sizes: (
8: 0.5rem,
12: 0.75rem,
16: 1rem,
20: 1.25rem,
32: 2rem,
36: 2.25rem,
);

View File

@ -0,0 +1,5 @@
$font-sizes: (
300: 1rem,
400: 1.125rem,
500: 1.5rem,
);

View File

@ -0,0 +1,2 @@
@forward "reset";
@forward "general";

View File

@ -0,0 +1,5 @@
@use "base";
@use "components";
@use "layers";
@use "utilities";
@use "vendor";

View File

@ -0,0 +1,12 @@
@use "../abstracts" as *;
@each $color, $shade-map in $colors {
@each $shade, $value in $shade-map {
.clr-#{$color}-#{$shade} {
color: $value;
}
.bg-#{$color}-#{$shade} {
background-color: $value;
}
}
}

View File

@ -0,0 +1,7 @@
@use "../abstracts" as *;
@each $size-name, $size-value in $font-sizes {
.fs-#{$size-name} {
font-size: $size-value;
}
}

View File

@ -0,0 +1,3 @@
@forward "colors";
@forward "font-sizes";
@forward "sizes";

View File

@ -0,0 +1,52 @@
@use "../abstracts" as *;
@each $size-name, $size-value in $sizes {
.margin {
&-#{$size-name} {
margin: $size-value;
&-block-start {
margin-block-start: $size-value;
}
&-block-end {
margin-block-end: $size-value;
}
&-block {
margin-block: $size-value;
}
&-inline-start {
margin-inline-start: $size-value;
}
&-inline-end {
margin-inline-end: $size-value;
}
&-inline {
margin-inline: $size-value;
}
}
}
.padding {
&-#{$size-name} {
padding: $size-value;
&-block-start {
padding-block-start: $size-value;
}
&-block-end {
padding-block-end: $size-value;
}
&-block {
padding-block: $size-value;
}
&-inline-start {
padding-inline-start: $size-value;
}
&-inline-end {
padding-inline-end: $size-value;
}
&-inline {
padding-inline: $size-value;
}
}
}
}