面前 is used with abstract concepts. For example: "in the face of failure". It can also be used with objects to indicate the object’s position in relation to a person.
Scheme
who/what 1
面前
who/what 2
Examples
我面前的女人突然昏倒了
The woman standing in front of me suddenly passed out
wǒ miànqián de nǚrén túrán hūndǎo le
儿童都怕在同伴面前失败
Children are afraid of failing in front of their peers
értóng dōu pà zài tóngbàn miànqián shibài
危险面前我们从不畏缩
We never lose our courage in the face of danger
wéixiǎn miànqián wǒmen cóng bú wèisuō
The preposition 眼前
眼前 is used the same as 面前.
Examples
历史就在我们眼前发生着
The story is taking place before our very eyes
lìshǐ jiù zài wǒmen yǎnqián fāshēngzhe
她俯视展现在眼前的城市
She looked down upon the city sprawling out in front of her
tā fǔshì zhǎnxiàn zài yǎnqián de chéngshì
眼前 can also have the meaning “now” and can be used as a noun.
Examples
眼前的问题是贫困问题
The current problem is poverty
yǎnqián de wèntí shì pínkùn wèntí
不能只顾眼前,不管将来
You can’t think only about the present and neglect the future