Skip to content

Commit c64001b

Browse files
committed
rockin gradient
1 parent ce3b4c9 commit c64001b

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

css/main.css

+14-3
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,31 @@ h2 {
178178
layout & backgrounds
179179
===================================================================*/
180180
body {
181-
background: var(--color-primary);
182-
border: 2rem solid var(--color-primary);
183181
min-height: 100vh;
184182
text-align: center;
185183
display: grid;
186184
justify-content: center;
187185
align-content: center;
188186
}
189-
187+
.background-decor {
188+
background: var(--color-primary);
189+
/* background: conic-gradient(from 0deg at 0% 0%, blue, green, yellow 180deg); */
190+
background: radial-gradient(
191+
circle at top right,
192+
193+
var(--color-bright) ,
194+
var(--color-highlight1),
195+
var(--color-highlight2) 97%
196+
/* var(--color-highlight2) */
197+
);;
198+
/* border: 2rem solid var(--color-primary); */
199+
}
190200
.main-content-container {
191201
/* for better visual vertical centering */
192202
margin-bottom: 8vh;
193203
background: var(--color-light);
194204
padding: 4vw;
205+
border: 4px solid var(--color-highlight1);
195206
}
196207

197208
@media screen and (min-width: 40em) {

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<link rel="stylesheet" href="css/main.css">
4949
</head>
5050

51-
<body>
51+
<body class="background-decor">
5252
<main class="main-content-container">
5353
<svg class="logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 468" aria-hidden="true">
5454
<!-- <title id="logoTitle" class="visuallyhidden">Head to homepage</title> -->

0 commit comments

Comments
 (0)