@uqds/hero 0.0.5-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # `@uqds/hero`
2
+
3
+ > Hero component
4
+
5
+ ## Usage
6
+
7
+ ### Installation
8
+
9
+ With Yarn:
10
+ ```shell
11
+ yarn add @uqds/hero
12
+ ```
13
+
14
+ With NPM:
15
+ ```shell
16
+ npm i @uqds/hero
17
+ ```
18
+
19
+ ---
20
+
21
+ ## Dependency graph
22
+
23
+ ```shell
24
+ @uqds/hero
25
+ └─ @uqds/core
26
+ ```
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@uqds/hero",
3
+ "version": "0.0.5-alpha.0",
4
+ "description": "Hero component",
5
+ "keywords": [
6
+ "uqds",
7
+ "uq",
8
+ "University of Queensland",
9
+ "design system",
10
+ "scss",
11
+ "sass",
12
+ "css",
13
+ "hero"
14
+ ],
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "author": {
19
+ "name": "University of Queensland",
20
+ "email": "webservices@uq.edu.au",
21
+ "url": "https://uq.edu.au"
22
+ },
23
+ "homepage": "https://github.com/uq-its-ss/design-system#readme",
24
+ "license": "ISC",
25
+ "directories": {
26
+ "lib": "src"
27
+ },
28
+ "files": [
29
+ "src/*"
30
+ ],
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/uq-its-ss/design-system.git"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/uq-its-ss/design-system/issues"
37
+ },
38
+ "dependencies": {
39
+ "@uqds/core": "^0.0.5-alpha.0",
40
+ "@uqds/grid": "^0.0.5-alpha.0"
41
+ },
42
+ "gitHead": "0d2250c3ff44460d2902ea08102e6423b3fcc3aa"
43
+ }
@@ -0,0 +1,141 @@
1
+ @use '@uqds/core/src/scss/global' as core;
2
+ @use '@uqds/grid/src/scss/global' as grid;
3
+
4
+ // Hero
5
+
6
+ .uq-hero {
7
+ position: relative;
8
+ background-color: #51247A;
9
+
10
+ &__content {
11
+ @include grid.layout-containment;
12
+ @include grid.grid-col-padding;
13
+ color: white;
14
+ padding-top: 3rem;
15
+ padding-bottom: 3rem;
16
+ position: relative;
17
+ z-index: 2;
18
+
19
+
20
+ @media #{core.$screen-md-up} {
21
+ padding-top: 6.5rem;
22
+ padding-bottom: 6.5rem;
23
+ }
24
+ }
25
+
26
+ &__text {
27
+
28
+ & .uq-hero__title {
29
+
30
+ color: inherit;
31
+ font-family: core.$montserrat;
32
+ font-size: 2.5rem;
33
+ margin-top: 0;
34
+ margin-bottom: core.$space-s;
35
+
36
+ @media #{core.$screen-md-up} {
37
+ font-size: 3rem;
38
+ }
39
+ }
40
+
41
+ & *:last-child {
42
+ margin-bottom: 0;
43
+ }
44
+ }
45
+
46
+ &__subtext {
47
+ margin-bottom: core.$space-m;
48
+ }
49
+
50
+ &__image {
51
+ position: absolute;
52
+ top: 0;
53
+ left: 0;
54
+ right: 0;
55
+ bottom: 0;
56
+ z-index: 0;
57
+
58
+ & picture,
59
+ & img {
60
+ position: absolute;
61
+ height: 100%;
62
+ width: 100%;
63
+ top: 0;
64
+ left: 0;
65
+ object-fit: cover;
66
+ }
67
+
68
+ &::before {
69
+ content: "";
70
+ display: block;
71
+ position: absolute;
72
+ top: 0;
73
+ left: 0;
74
+ width: 100%;
75
+ height: 100%;
76
+ background: linear-gradient(100deg, rgb(81, 36, 122) 36%, transparent 70%);
77
+ mix-blend-mode: normal;
78
+ opacity: 1;
79
+ z-index: 1;
80
+ }
81
+
82
+ &--small {
83
+ @media #{core.$screen-md-up} {
84
+ display: none;
85
+ }
86
+
87
+ & img {
88
+ position: relative;
89
+ height: auto;
90
+ }
91
+ }
92
+
93
+ &--large {
94
+ display: none;
95
+
96
+ @media #{core.$screen-md-up} {
97
+ display: block;
98
+ }
99
+ }
100
+
101
+ @media #{core.$screen-md-down} {
102
+ position: relative;
103
+ min-height: 6rem;
104
+
105
+ &::before {
106
+ background: linear-gradient(360deg, rgb(81, 36, 122) 3%, transparent 50%);
107
+ }
108
+ }
109
+ }
110
+
111
+ &--feature-image {
112
+
113
+ & .uq-hero__content {
114
+
115
+ padding-top: 0;
116
+
117
+ @media #{core.$screen-md-up} {
118
+ padding-top: 6.5rem;
119
+ }
120
+ }
121
+
122
+ & .hero__text {
123
+ @media #{core.$screen-md-up} {
124
+ width: 50%;
125
+ }
126
+ }
127
+
128
+ }
129
+
130
+ &--large {
131
+
132
+ & .uq-hero__content {
133
+ @media #{core.$screen-md-up} {
134
+ padding-top: core.$space-uuuul;
135
+ padding-bottom: core.$space-uuuul;
136
+ }
137
+ }
138
+
139
+ }
140
+
141
+ }
@@ -0,0 +1,2 @@
1
+ @use '@uqds/core/src/scss/global' as core;
2
+