Skip to content

Commit c193a3d

Browse files
committed
Add spotlight section to landing
1 parent a71ee56 commit c193a3d

File tree

11 files changed

+685
-98
lines changed

11 files changed

+685
-98
lines changed

assets/css/main.css

Lines changed: 229 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@
1414
--background-color: #22282b; /* Background color for the entire website, including individual sections */
1515
--default-color: #ffffff; /* Default color used for the majority of the text content across the entire website */
1616
--heading-color: #ffffff; /* Color for headings, subheadings and title throughout the website */
17-
--accent-color: #fd9347; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
17+
--accent-color: #fe9c55; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
1818
--surface-color: #394247; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
1919
--contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
2020
}
2121

2222
/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
2323
:root {
2424
--nav-color: #bcbcbc; /* The default color of the main navmenu links */
25-
--nav-hover-color: #fd9347; /* Applied to main navmenu links when they are hovered over or active */
25+
--nav-hover-color: #fe9c55; /* Applied to main navmenu links when they are hovered over or active */
2626
--nav-mobile-background-color: #394247; /* Used as the background color for mobile navigation menu */
2727
--nav-dropdown-background-color: #394247; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
2828
--nav-dropdown-color: #ffffff; /* Used for navigation links of the dropdown items in the navigation menu. */
29-
--nav-dropdown-hover-color: #fd9347; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
29+
--nav-dropdown-hover-color: #fe9c55; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
3030
}
3131

3232
/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */
@@ -45,10 +45,10 @@
4545
}
4646

4747
.mid-background {
48-
--background-color: #212a2f;
48+
--background-color: #10151c;
4949
--default-color: #ffffff;
5050
--heading-color: #ffffff;
51-
--surface-color: #151f2b;
51+
--surface-color: #222b35;
5252
--contrast-color: #ffffff;
5353
}
5454

@@ -978,45 +978,29 @@ section,
978978
}
979979

980980
.section-title h2 {
981-
font-size: 32px;
981+
font-size: 13px;
982+
letter-spacing: 1px;
982983
font-weight: 700;
983-
position: relative;
984-
}
985-
986-
.section-title h2:before,
987-
.section-title h2:after {
988-
content: "";
989-
width: 50px;
990-
height: 2px;
991-
background: var(--accent-color);
984+
padding: 8px 20px;
985+
margin: 0;
986+
background: color-mix(in srgb, var(--accent-color), transparent 90%);
987+
color: var(--accent-color);
992988
display: inline-block;
989+
text-transform: uppercase;
990+
border-radius: 50px;
991+
font-family: var(--default-font);
993992
}
994993

995-
.section-title h2:before {
996-
margin: 0 15px 10px 0;
997-
}
998-
999-
.section-title h2:after {
1000-
margin: 0 0 10px 15px;
1001-
}
1002-
1003-
.section-title p {
1004-
margin-bottom: 0;
994+
.section-title div {
995+
color: var(--heading-color);
996+
margin: 10px 0 0 0;
997+
font-size: 32px;
998+
font-weight: 700;
999+
font-family: var(--heading-font);
10051000
}
10061001

1007-
@media (max-width: 768px) {
1008-
.section-title h2 {
1009-
font-size: 20px;
1010-
}
1011-
1012-
.section-title h2:before,
1013-
.section-title h2:after {
1014-
content: "";
1015-
width: 20px;
1016-
height: 2px;
1017-
background: var(--accent-color);
1018-
display: inline-block;
1019-
}
1002+
.section-title div .description-title {
1003+
color: var(--accent-color);
10201004
}
10211005

10221006
/*--------------------------------------------------------------
@@ -1274,15 +1258,15 @@ section,
12741258
}
12751259

12761260
/*--------------------------------------------------------------
1277-
# Call To Action Section
1261+
# Info Section
12781262
--------------------------------------------------------------*/
1279-
.call-to-action {
1263+
.info {
12801264
padding: 80px 0;
12811265
position: relative;
12821266
clip-path: inset(0);
12831267
}
12841268

1285-
.call-to-action img {
1269+
.info img {
12861270
position: fixed;
12871271
top: 0;
12881272
left: 0;
@@ -1293,30 +1277,30 @@ section,
12931277
z-index: 1;
12941278
}
12951279

1296-
.call-to-action:before {
1280+
.info:before {
12971281
content: "";
12981282
background: color-mix(in srgb, var(--background-color), transparent 30%);
12991283
position: absolute;
13001284
inset: 0;
13011285
z-index: 2;
13021286
}
13031287

1304-
.call-to-action .container {
1288+
.info .container {
13051289
position: relative;
13061290
z-index: 3;
13071291
}
13081292

1309-
.call-to-action h3 {
1293+
.info h3 {
13101294
font-size: 28px;
13111295
font-weight: 700;
13121296
color: var(--default-color);
13131297
}
13141298

1315-
.call-to-action p {
1299+
.info p {
13161300
color: var(--default-color);
13171301
}
13181302

1319-
.call-to-action .cta-btn {
1303+
.info .cta-btn {
13201304
font-family: var(--heading-font);
13211305
font-weight: 500;
13221306
font-size: 16px;
@@ -1331,7 +1315,7 @@ section,
13311315
color: var(--default-color);
13321316
}
13331317

1334-
.call-to-action .cta-btn:hover {
1318+
.info .cta-btn:hover {
13351319
background: var(--accent-color);
13361320
color: var(--contrast-color);
13371321
border: 2px solid var(--accent-color);
@@ -1341,7 +1325,6 @@ section,
13411325
# About Section
13421326
--------------------------------------------------------------*/
13431327
.about {
1344-
--background-color: #10151c;
13451328
padding-top: 100px;
13461329
position: relative;
13471330
overflow: hidden;
@@ -1513,4 +1496,202 @@ section,
15131496
.about .scribble {
15141497
transform: scale(0.7);
15151498
}
1499+
}
1500+
1501+
/*--------------------------------------------------------------
1502+
# Spotlight Section
1503+
--------------------------------------------------------------*/
1504+
.spotlight .service-card {
1505+
background-color: var(--surface-color);
1506+
border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
1507+
border-radius: 15px;
1508+
overflow: hidden;
1509+
height: 100%;
1510+
transition: all 0.4s ease;
1511+
position: relative;
1512+
}
1513+
1514+
.spotlight .service-card::before {
1515+
content: "";
1516+
position: absolute;
1517+
top: 0;
1518+
left: 0;
1519+
width: 100%;
1520+
height: 4px;
1521+
background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 30%));
1522+
transform: scaleX(0);
1523+
transition: transform 0.4s ease;
1524+
}
1525+
1526+
.spotlight .service-card:hover::before {
1527+
transform: scaleX(1);
1528+
}
1529+
1530+
.spotlight .service-card.featured {
1531+
border-color: var(--accent-color);
1532+
box-shadow: 0 10px 30px color-mix(in srgb, var(--accent-color), transparent 85%);
1533+
}
1534+
1535+
.spotlight .service-card.featured::before {
1536+
transform: scaleX(1);
1537+
}
1538+
1539+
.spotlight .service-card.featured .icon-box {
1540+
background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 20%));
1541+
color: var(--contrast-color);
1542+
}
1543+
1544+
.spotlight .service-card:hover {
1545+
transform: translateY(-8px);
1546+
box-shadow: 0 15px 40px color-mix(in srgb, var(--default-color), transparent 85%);
1547+
border-color: var(--accent-color);
1548+
}
1549+
1550+
.spotlight .service-card .card-header {
1551+
padding: 25px 25px 15px;
1552+
text-align: center;
1553+
}
1554+
1555+
.spotlight .service-card .card-header .icon-box {
1556+
width: 70px;
1557+
height: 70px;
1558+
margin: 0 auto 20px;
1559+
background: color-mix(in srgb, var(--accent-color), transparent 90%);
1560+
border-radius: 50%;
1561+
display: flex;
1562+
align-items: center;
1563+
justify-content: center;
1564+
color: var(--accent-color);
1565+
font-size: 32px;
1566+
transition: all 0.3s ease;
1567+
}
1568+
1569+
.spotlight .service-card .card-header h4 {
1570+
font-size: 18px;
1571+
font-weight: 600;
1572+
margin: 0;
1573+
color: var(--heading-color);
1574+
}
1575+
1576+
.spotlight .service-card .card-body {
1577+
padding: 0 25px 15px;
1578+
}
1579+
1580+
.spotlight .service-card .card-body p {
1581+
font-size: 14px;
1582+
line-height: 1.6;
1583+
color: color-mix(in srgb, var(--default-color), transparent 20%);
1584+
margin-bottom: 20px;
1585+
text-align: center;
1586+
}
1587+
1588+
.spotlight .service-card .card-body .feature-image {
1589+
width: 100%;
1590+
height: 160px;
1591+
border-radius: 8px;
1592+
overflow: hidden;
1593+
position: relative;
1594+
}
1595+
1596+
.spotlight .service-card .card-body .feature-image::before {
1597+
content: "";
1598+
position: absolute;
1599+
top: 0;
1600+
left: 0;
1601+
right: 0;
1602+
bottom: 0;
1603+
background: linear-gradient(45deg, color-mix(in srgb, var(--accent-color), transparent 80%), transparent);
1604+
opacity: 0;
1605+
transition: opacity 0.3s ease;
1606+
}
1607+
1608+
.spotlight .service-card .card-body .feature-image img {
1609+
width: 100%;
1610+
height: 100%;
1611+
object-fit: cover;
1612+
transition: transform 0.4s ease;
1613+
}
1614+
1615+
.spotlight .service-card:hover .feature-image::before {
1616+
opacity: 1;
1617+
}
1618+
1619+
.spotlight .service-card:hover .feature-image img {
1620+
transform: scale(1.1);
1621+
}
1622+
1623+
.spotlight .service-card .card-footer {
1624+
padding: 15px 25px 25px;
1625+
}
1626+
1627+
.spotlight .service-card .card-footer .btn-explore {
1628+
display: inline-flex;
1629+
align-items: center;
1630+
justify-content: center;
1631+
width: 100%;
1632+
padding: 12px 20px;
1633+
background: transparent;
1634+
border: 2px solid color-mix(in srgb, var(--accent-color), transparent 70%);
1635+
border-radius: 8px;
1636+
color: var(--accent-color);
1637+
font-weight: 600;
1638+
font-size: 14px;
1639+
text-decoration: none;
1640+
transition: all 0.3s ease;
1641+
}
1642+
1643+
.spotlight .service-card .card-footer .btn-explore i {
1644+
margin-left: 8px;
1645+
font-size: 16px;
1646+
transition: transform 0.3s ease;
1647+
}
1648+
1649+
.spotlight .service-card .card-footer .btn-explore:hover {
1650+
background: color-mix(in srgb, var(--accent-color), transparent 80%);
1651+
color: var(--contrast-color);
1652+
border-color: var(--accent-color);
1653+
}
1654+
1655+
.spotlight .service-card .card-footer .btn-explore:hover i {
1656+
transform: translate(3px, -3px);
1657+
}
1658+
1659+
.spotlight .service-card.featured .btn-explore {
1660+
background: var(--accent-color);
1661+
color: var(--contrast-color);
1662+
border-color: var(--accent-color);
1663+
}
1664+
1665+
.spotlight .service-card.featured .btn-explore:hover {
1666+
background: color-mix(in srgb, var(--accent-color), var(--heading-color) 20%);
1667+
border-color: color-mix(in srgb, var(--accent-color), var(--heading-color) 20%);
1668+
}
1669+
1670+
@media (max-width: 768px) {
1671+
.spotlight .service-card .card-header {
1672+
padding: 20px 20px 10px;
1673+
}
1674+
1675+
.spotlight .service-card .card-header .icon-box {
1676+
width: 60px;
1677+
height: 60px;
1678+
font-size: 28px;
1679+
margin-bottom: 15px;
1680+
}
1681+
1682+
.spotlight .service-card .card-header h4 {
1683+
font-size: 16px;
1684+
}
1685+
1686+
.spotlight .service-card .card-body {
1687+
padding: 0 20px 10px;
1688+
}
1689+
1690+
.spotlight .service-card .card-body .feature-image {
1691+
height: 140px;
1692+
}
1693+
1694+
.spotlight .service-card .card-footer {
1695+
padding: 10px 20px 20px;
1696+
}
15161697
}

0 commit comments

Comments
 (0)